Skip to content
On this page

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.

ParamTypeDescription
handlenumberThe GEOS context pointer handle.

geos.GEOSWKBReader_destroy ⏏

Destroys a WKB reader object.

Kind: Exported member

ParamTypeDescription
readernumberThe pointer to the WKB reader object.

geos.GEOSWKBReader_destroy_r ⏏

Destroys a WKB reader object using a context handle.

Kind: Exported member

ParamTypeDescription
handlenumberThe GEOS context pointer handle.
readernumberThe 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.

ParamTypeDescription
readernumberThe pointer to the WKB reader object.
wkbstringThe WKB byte buffer as a hex string.
sizenumberThe 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.

ParamTypeDescription
readernumberA pointer to a GEOSWKBReader object.
hexstringA hexadecimal string representing the WKB of the geometry.
sizenumberThe 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.

ParamTypeDescription
handlenumberA GEOSContextHandle_t object.
readernumberA pointer to a GEOSWKBReader object.
hexstringA hexadecimal string representing the WKB of the geometry.
sizenumberThe 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.

ParamTypeDescription
handlenumberThe GEOS context pointer handle.
readernumberThe pointer to the WKB reader object.
wkbstringThe WKB byte buffer as a hex string.
sizenumberThe size of the WKB byte buffer in bytes.