wasm-spatial-core
    Preparing search index...

    Function parseGeoJsonCoords

    • Parse a GeoJSON string and return all coordinate pairs as a flat Float64Array[lng0, lat0, lng1, lat1, …].

      This is designed for bulk ingestion of large datasets; the flat layout allows direct upload to a GPU vertex buffer with no further processing.

      Errors

      Returns a SpatialErrorDetail if the input is not valid GeoJSON.

      Parameters

      • input: string

      Returns Float64Array