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()
Param | Type | Description |
---|---|---|
handle | GEOSContextHandle_t | - |
geos.GEOSWKTReader_destroy ⇒ null
⏏
Free the memory associated with a GEOSWKTReader.
Kind: global property of geos
Returns: null
- void
Param | Type | Description |
---|---|---|
reader | GEOSWKTReader | The reader to destroy. |
geos.GEOSWKTReader_destroy_r ⇒ null
⏏
Free the memory associated with a GEOSWKTReader.
Kind: global property of geos
Returns: null
- void
Param | Type | Description |
---|---|---|
handle | GEOSContextHandle_t | - |
reader | GEOSWKTReader | The 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())
Param | Type | Description |
---|---|---|
reader | GEOSWKTReader | A WKT reader object, caller retains ownership |
wkt | StringPointer | The 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())
Param | Type | Description |
---|---|---|
handle | GEOSContextHandle_t | - |
reader | GEOSWKTReader | A WKT reader object, caller retains ownership |
wkt | StringPointer | The 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
Param | Type | Description |
---|---|---|
reader | GEOSWKTReader | A WKT reader object, caller retains ownership |
doFix | number | Set 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
Param | Type | Description |
---|---|---|
handle | GEOSContextHandle_t | - |
reader | GEOSWKTReader | A WKT reader object, caller retains ownership |
doFix | number | Set to 1 to repair, 0 for no repair (default). |