Skip to main content

Errors

GEOSError

edit

Base error class for all geos.js errors.

Errors that originate from C/C++/Wasm code are thrown as instances of this class. More specific errors are thrown as instances of one of the subclasses of this class.

GEOSError is a subclass of Error.

InvalidGeoJSONError

edit

InvalidGeoJSONError is a subclass of GEOSError.

TopologyValidationError

edit

TopologyValidationError is a subclass of GEOSError.

Properties

location

[ number, number ]

Array with X and Y coordinates of the point at which the error occurred.