geos.GEOSWKBReader_create ⇒ number
⏏
Create a new GEOSWKBReader object.
Kind: Exported member
Returns: number
- A pointer to a newly allocated GEOSWKBReader object.
See: https://github.com/libgeos/geos/blob/main/capi/geos_c.h.in
geos.GEOSWKBReader_create_r ⇒ number
⏏
Creates a new WKB reader object.
Kind: Exported member
Returns: number
- - The pointer to the WKB reader object.
Param | Type | Description |
---|---|---|
handle | number | The GEOS context pointer handle. |
geos.GEOSWKBReader_destroy ⏏
Destroys a WKB reader object.
Kind: Exported member
Param | Type | Description |
---|---|---|
reader | number | The pointer to the WKB reader object. |
geos.GEOSWKBReader_destroy_r ⏏
Destroys a WKB reader object using a context handle.
Kind: Exported member
Param | Type | Description |
---|---|---|
handle | number | The GEOS context pointer handle. |
reader | number | The pointer to the WKB reader object. |
geos.GEOSWKBReader_read ⇒ number
⏏
Reads a geometry from a WKB byte buffer.
Kind: Exported member
Returns: number
- - The pointer to the geometry object, or null if an error occurred.
Param | Type | Description |
---|---|---|
reader | number | The pointer to the WKB reader object. |
wkb | string | The WKB byte buffer as a hex string. |
size | number | The size of the WKB byte buffer in bytes. |
geos.GEOSWKBReader_readHEX ⇒ number
⏏
Reads a geometry from a hexadecimal WKB representation.
Kind: Exported member
Returns: number
- A pointer to a GEOSGeometry object, or null on error.
Param | Type | Description |
---|---|---|
reader | number | A pointer to a GEOSWKBReader object. |
hex | string | A hexadecimal string representing the WKB of the geometry. |
size | number | The length of the hexadecimal string. |
geos.GEOSWKBReader_readHEX_r ⇒ number
⏏
Reads a geometry from a hexadecimal WKB representation with a context handle.
Kind: Exported member
Returns: number
- A pointer to a GEOSGeometry object, or null on error.
Param | Type | Description |
---|---|---|
handle | number | A GEOSContextHandle_t object. |
reader | number | A pointer to a GEOSWKBReader object. |
hex | string | A hexadecimal string representing the WKB of the geometry. |
size | number | The length of the hexadecimal string. |
geos.GEOSWKBReader_read_r ⇒ number
⏏
Reads a geometry from a WKB byte buffer using a context handle.
Kind: Exported member
Returns: number
- - The pointer to the geometry object, or null if an error occurred.
Param | Type | Description |
---|---|---|
handle | number | The GEOS context pointer handle. |
reader | number | The pointer to the WKB reader object. |
wkb | string | The WKB byte buffer as a hex string. |
size | number | The size of the WKB byte buffer in bytes. |