Skip to content

geos.GEOSGeoJSONReader_create_r ⇒ GEOSGeoJSONReader

Allocate a new GEOSGeoJSONReader.

Kind: global property of geos
Returns: GEOSGeoJSONReader - a new reader. Caller must free with GEOSGeoJSONReader_destroy()

ParamTypeDescription
handleGEOSContextHandle_t-

geos.GEOSGeoJSONReader_destroy ⇒ null

Free the memory associated with a GEOSGeoJSONReader.

Kind: global property of geos
Returns: null - void

ParamTypeDescription
readerGEOSGeoJSONReaderThe reader to destroy.

geos.GEOSGeoJSONReader_destroy_r ⇒ null

Free the memory associated with a GEOSGeoJSONReader.

Kind: global property of geos
Returns: null - void

ParamTypeDescription
handleGEOSContextHandle_t-
readerGEOSGeoJSONReaderThe reader to destroy.

geos.GEOSGeoJSONReader_readGeometry ⇒ GEOSGeometry

Use a reader to parse a GeoJSON string. A single geometry or Feature is parsed as a geometry. A FeatureCollection is parsed as a GeometryCollection. Feature properties are not read.

Kind: global property of geos
Returns: GEOSGeometry - A GEOSGeometry, caller to free with GEOSGeom_destroy())

ParamTypeDescription
readerGEOSGeoJSONReaderA GeoJSON reader object, caller retains ownership
geojsonStringPointerThe json string to parse, caller retains ownership

geos.GEOSGeoJSONReader_readGeometry_r ⇒ GEOSGeometry

Kind: global property of geos
Returns: GEOSGeometry - GEOSGeometry*

ParamTypeDescription
handleGEOSContextHandle_t-
readerGEOSGeoJSONReader-
geojsonStringPointer-