Home
last modified time | relevance | path

Searched refs:wkb (Results 1 – 4 of 4) sorted by relevance

/plugin/geophp/vendor/funiq/geophp/src/Adapter/
DWKB.php76 * @param string $wkb Well-known-binary string
83 public function read($wkb, $isHexString = false) argument
86 $wkb = pack('H*', $wkb);
89 if (empty($wkb)) {
90 throw new \Exception('Cannot read empty WKB geometry. Found ' . gettype($wkb));
93 $this->reader = new BinaryReader($wkb);
278 $wkb = $this->writeGeometry($geometry);
280 return $writeAsHex ? current(unpack('H*', $wkb)) : $wkb;
292 … $wkb = $this->writer->writeSInt8($this->writer->isBigEndian() ? self::WKB_NDR : self::WKB_XDR);
293 $wkb .= $this->writeType($geometry);
[all …]
/plugin/geophp/vendor/funiq/geophp/
DREADME.md58 geoPHP (can be wkt or wkb, but must be the same as how you extracted it from your database):
106 $wkb = pg_unescape_bytea($item['geom']); // Make sure to unescape the hex blob
107 $geom = geoPHP::load($wkb, 'ewkb'); // We now a full geoPHP Geometry object
117 $wkb = pack('H*',$item['geom']); // Unpacking the hex blob
118 $geom = geoPHP::load($wkb, 'ewkb'); // We now have a geoPHP Geometry
/plugin/geophp/vendor/funiq/geophp/src/
DgeoPHP.php169 $wkb = $wkbWriter->writeHEX($geos);
170 $geometry = geoPHP::load($wkb, 'wkb', true);
/plugin/geophp/
Dcomposer.lock70 "wkb",