Skip to content

geos.GEOSWKTReader_create_r ⇒ GEOSWKTReader

Allocate a new GEOSWKTReader.

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

ParamTypeDescription
handleGEOSContextHandle_t-

geos.GEOSWKTReader_destroy ⇒ null

Free the memory associated with a GEOSWKTReader.

Kind: global property of geos
Returns: null - void

ParamTypeDescription
readerGEOSWKTReaderThe reader to destroy.

geos.GEOSWKTReader_destroy_r ⇒ null

Free the memory associated with a GEOSWKTReader.

Kind: global property of geos
Returns: null - void

ParamTypeDescription
handleGEOSContextHandle_t-
readerGEOSWKTReaderThe reader to destroy.

geos.GEOSWKTReader_read ⇒ GEOSGeometry

Use a reader to parse the well-known text representation of a geometry, and return an allocated geometry.

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

ParamTypeDescription
readerGEOSWKTReaderA WKT reader object, caller retains ownership
wktStringPointerThe WKT string to parse, caller retains ownership

geos.GEOSWKTReader_read_r ⇒ GEOSGeometry

Use a reader to parse the well-known text representation of a geometry, and return an allocated geometry.

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

ParamTypeDescription
handleGEOSContextHandle_t-
readerGEOSWKTReaderA WKT reader object, caller retains ownership
wktStringPointerThe WKT string to parse, caller retains ownership

geos.GEOSWKTReader_setFixStructure ⇒ null

Set the reader to automatically repair structural errors in the input (currently just unclosed rings) while reading.

Kind: global property of geos
Returns: null - void

ParamTypeDescription
readerGEOSWKTReaderA WKT reader object, caller retains ownership
doFixnumberSet to 1 to repair, 0 for no repair (default).

geos.GEOSWKTReader_setFixStructure_r ⇒ null

Set the reader to automatically repair structural errors in the input (currently just unclosed rings) while reading.

Kind: global property of geos
Returns: null - void

ParamTypeDescription
handleGEOSContextHandle_t-
readerGEOSWKTReaderA WKT reader object, caller retains ownership
doFixnumberSet to 1 to repair, 0 for no repair (default).