Skip to content

popinc/wkb-parser

 
 

Repository files navigation

Geo I/O WKB Parser

Build Status Coverage Status

A parser which transforms Well-known binary (WKB) representations into geometric objects.

class MyFactory implements GeoIO\Factory
{
    public function createPoint($dimension, array $coordinates, $srid = null)
    {
        return MyPoint($coordinates['x'], $coordinates['y']);
    }

    // ...
}

$factory = MyFactory();
$parser = new GeoIO\WKB\Parser\Parser($factory);

$myPoint = $parser->parse('000000000140000000000000004010000000000000'); // POINT(2.0 4.0)

Installation

Install through composer. Check the packagist page for all available versions.

composer require geo-io/wkb-parser

License

Geo I/O WKB Parser is released under the MIT License.

About

Well-known binary (WKB) Parser.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%