Function geoJSONToWkt

  • Stringify GeoJSON as WKT. There are no options to this conversion. Some finer notes on the conversion:

    • GeoJSON does not support alternative projections, so the output of this method is always WKT, never EWKT.
    • GeoJSON technically supports geometries with mixed coordinates: some coordinates can have a Z element for altitude, some will not. WKT does not: the Z (or M) element is part of the geometry's name.
    • Geometries with empty coordinates arrays will be stringified as "EMPTY" WKT geometries. This is technically valid, but rare, for GeoJSON.

    Parameters

    • geometry: Geometry

    Returns string

Generated using TypeDoc