Skip to content
On this page

geos.GEOSWKTReader_create ⇒ number

Creates a new GEOSWKTReader object.

Kind: Exported member
Returns: number - A pointer to a GEOSWKTReader object, or NULL on error.
See: https://libgeos.org/doxygen/geos__c_8h.html


geos.GEOSWKTReader_create_r ⇒ number

Creates a new GEOSWKTReader object. Thread-safe version.

Kind: Exported member
Returns: number - A pointer to a GEOSWKTReader object, or NULL on error.
See: https://libgeos.org/doxygen/geos__c_8h.html

ParamTypeDescription
handlenumberA pointer to a GEOSContextHandle object.

geos.GEOSWKTReader_destroy ⏏

Destroys a GEOSWKTReader object and releases its memory.

Kind: Exported member

ParamTypeDescription
readernumberA pointer to a GEOSWKTReader object.

geos.GEOSWKTReader_destroy_r ⇒ null

Destroys a GEOSWKTReader object.

Kind: Exported member
See: GEOSWKTReader_destroy_r

ParamTypeDescription
handlenumberA pointer to the GEOS context handle.
readernumberThe pointer to the GEOSWKTReader object.

geos.GEOSWKTReader_read ⇒ number

Reads a WKT string and returns a GEOSGeometry object.

Kind: Exported member
Returns: number - The pointer to the GEOSGeometry object or null if an error occurred.
Throws:

  • ParseError If the WKT string is invalid or cannot be parsed.

See: GEOSWKTReader_read_r

ParamTypeDescription
readernumberThe pointer to the GEOSWKTReader object.
wktnumberThe WKT string pointer to read.

geos.GEOSWKTReader_read_r ⇒ number

Reads a WKT string and returns a GEOSGeometry object.

Kind: Exported member
Returns: number - The pointer to the GEOSGeometry object or null if an error occurred.
Throws:

  • ParseError If the WKT string is invalid or cannot be parsed.

See: GEOSWKTReader_read_r

ParamTypeDescription
handlenumberA pointer to the GEOS context handle.
readernumberThe pointer to the GEOSWKTReader object.
wktnumberThe WKT string pointer to read.