wasm-spatial-core
    Preparing search index...

    Function parseGeoJsonProperties

    • Extract all feature properties from a GeoJSON string as a JSON string.

      Returns a JSON array of property objects. Features without properties are represented as null entries.

      Example

      const props = JSON.parse(core.parseGeoJsonProperties(geojsonStr));
      // props = [{ name: "Beijing", population: 21540000 }, { ... }]

      Errors

      Returns a SpatialErrorDetail if the input is not valid GeoJSON.

      Parameters

      • input: string

      Returns string