Skip to content
On this page

geos.GEOSGeoJSONWriter_create ⇒ number

Creates a GeoJSON writer object.

Kind: Exported member
Returns: number - A pointer to a GEOSGeoJSONWriter object, or NULL on error.
See: GEOS C header file


geos.GEOSGeoJSONWriter_create_r ⇒ number

Creates a GeoJSON writer object.

Kind: Exported member
Returns: number - A pointer to a GEOS GeoJSON writer object, or NULL on error.
See: GEOS C header file

ParamTypeDescription
handlenumberA pointer to a GEOS context handle.

geos.GEOSGeoJSONWriter_destroy ⇒ void

Destroys a GeoJSON writer object and releases any allocated resources.

Kind: Exported member
See: https://libgeos.org/doxygen/geos__c_8h.html#a2f0a7c9f0a4a6b3e1f5d6d8c7a3e1b4c

ParamTypeDescription
writernumberA pointer to a GEOS GeoJSON writer object.

geos.GEOSGeoJSONWriter_destroy_r ⇒ void

Destroys a GEOSGeoJSONWriter object and releases the memory associated with it.

Kind: Exported member
Returns: void - No return value.
See: https://libgeos.org/doxygen/geos__c_8h.html#a3f0f5c2b0a6d1a9e7f9a4b6b1c4f3d5a

ParamTypeDescription
ctxnumberA pointer to a GEOS context handle.
writernumberA pointer to a GEOSGeoJSONWriter object.

geos.GEOSGeoJSONWriter_writeGeometry ⇒ string

Writes a geometry object to a GeoJSON string.

Kind: Exported member
Returns: string - A GeoJSON string representation of the geometry, or NULL on error.
See: https://libgeos.org/doxygen/geos__c_8h.html#a0a3f1f6b2a1f7d0b5a9c4d2c6b7e9e0a

ParamTypeDescription
writernumberA pointer to a GEOSGeoJSONWriter object.
gnumberA pointer to a GEOS geometry object.

geos.GEOSGeoJSONWriter_writeGeometry_r ⇒ string

Writes a geometry to a GeoJSON string.

Kind: Exported member
Returns: string - A GeoJSON string representation of the geometry, or NULL on error.
See: https://libgeos.org/doxygen/geos__c_8h.html#a9a6f9f0b3a4c1a2e7c1d0e4e1b3a2c5d

ParamTypeDescription
ctxnumberA GEOS context handle.
writernumberA pointer to a GEOSGeoJSONWriter object.
geomnumberA pointer to a GEOS geometry object.