Parser library for WKB/EWKB spatial object data.
Pass value to be parsed in the constructor, then call parse() on the created object.
$parser = new Parser($input);
$value = $parser->parse();The parser will return an array with the keys srid, type, and value.
sridis the SRID if EWKT was passed in the constructor, null otherwise.typeis the spatial object type.valuewill contain an array with 2 numeric values, or nested arrays containing these depending on the spatial object type.