geos.GEOSWKBReader_create_r ⇒ GEOSWKBReader ⏏
Allocate a new GEOSWKBReader.
Kind: global property of geos
Returns: GEOSWKBReader - a new reader. Caller must free with GEOSWKBReader_destroy()
| Param | Type | Description |
|---|---|---|
| handle | GEOSContextHandle_t | - |
geos.GEOSWKBReader_destroy ⇒ null ⏏
Free the memory associated with a GEOSWKBReader.
Kind: global property of geos
Returns: null - void
| Param | Type | Description |
|---|---|---|
| reader | GEOSWKBReader | The reader to destroy. |
geos.GEOSWKBReader_destroy_r ⇒ null ⏏
Free the memory associated with a GEOSWKBReader.
Kind: global property of geos
Returns: null - void
| Param | Type | Description |
|---|---|---|
| handle | GEOSContextHandle_t | - |
| reader | GEOSWKBReader | The reader to destroy. |
geos.GEOSWKBReader_read ⇒ GEOSGeometry ⏏
Read a geometry from a well-known binary buffer.
Kind: global property of geos
Returns: GEOSGeometry - A GEOSGeometry built from the WKB, or NULL on exception.
| Param | Type | Description |
|---|---|---|
| reader | GEOSWKBReader | A GEOSWKBReader |
| wkb | Pointer | A pointer to the buffer to read from |
| size | number | The number of bytes of data in the buffer |
geos.GEOSWKBReader_readHEX ⇒ GEOSGeometry ⏏
Read a geometry from a hex encoded well-known binary buffer.
Kind: global property of geos
Returns: GEOSGeometry - A GEOSGeometry built from the HEX WKB, or NULL on exception.
| Param | Type | Description |
|---|---|---|
| reader | GEOSWKBReader | A GEOSWKBReader |
| hex | Pointer | A pointer to the buffer to read from |
| size | number | The number of bytes of data in the buffer |
geos.GEOSWKBReader_readHEX_r ⇒ GEOSGeometry ⏏
Read a geometry from a hex encoded well-known binary buffer.
Kind: global property of geos
Returns: GEOSGeometry - A GEOSGeometry built from the HEX WKB, or NULL on exception.
| Param | Type | Description |
|---|---|---|
| handle | GEOSContextHandle_t | - |
| reader | GEOSWKBReader | A GEOSWKBReader |
| hex | Pointer | A pointer to the buffer to read from |
| size | number | The number of bytes of data in the buffer |
geos.GEOSWKBReader_read_r ⇒ GEOSGeometry ⏏
Read a geometry from a well-known binary buffer.
Kind: global property of geos
Returns: GEOSGeometry - A GEOSGeometry built from the WKB, or NULL on exception.
| Param | Type | Description |
|---|---|---|
| handle | GEOSContextHandle_t | - |
| reader | GEOSWKBReader | A GEOSWKBReader |
| wkb | Pointer | A pointer to the buffer to read from |
| size | number | The number of bytes of data in the buffer |
geos.GEOSWKBReader_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 | GEOSWKBReader | A WKB reader object, caller retains ownership |
| doFix | number | Set to 1 to repair, 0 for no repair (default). |
geos.GEOSWKBReader_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 | GEOSWKBReader | A WKB reader object, caller retains ownership |
| doFix | number | Set to 1 to repair, 0 for no repair (default). |