wasm-spatial-core
    Preparing search index...

    Function countGeoJsonByProperty

    • Count GeoJSON features by property value (COUNT ... GROUP BY).

      Returns a JSON object mapping property values to their counts.

      Arguments

      • input — GeoJSON string
      • key — Property name to count by

      Returns

      JSON string like {"value1": 5, "value2": 3}.

      Parameters

      • input: string
      • key: string

      Returns string