wasm-spatial-core
    Preparing search index...

    Function batchWgs84ToGcj02InPlace

    • [Zero-Copy] In-place WGS-84 → GCJ-02.

      Mutates the input [lng, lat, …] buffer directly in WASM linear memory.

      const buf = new Float64Array(wasmMemory.buffer, ptr, len);
      wasm.batchWgs84ToGcj02InPlace(buf);
      // buf is now in GCJ-02 — no copy occurred

      Parameters

      • coords: Float64Array

      Returns void