Beispiel #1
0
 /**
  * Loads the underlying geometry.
  *
  * @return void
  *
  * @throws GeometryIOException         If the proxy data is not valid.
  * @throws CoordinateSystemException   If the resulting geometry contains mixed coordinate systems.
  * @throws InvalidGeometryException    If the resulting geometry is not valid.
  * @throws UnexpectedGeometryException If the resulting geometry is not an instance of the proxied class.
  */
 private function load()
 {
     $this->proxyGeometry = $this->proxyIsBinary ? MultiCurve::fromBinary($this->proxyData, $this->proxySRID) : MultiCurve::fromText($this->proxyData, $this->proxySRID);
 }
Beispiel #2
0
 /**
  * @dataProvider providerInvalidFromBinary
  * @expectedException \Brick\Geo\Exception\UnexpectedGeometryException
  *
  * @param string $wkb A valid HEX WKB, for a non-multicurve geometry.
  */
 public function testInvalidFromBinary($wkb)
 {
     MultiCurve::fromBinary(hex2bin($wkb));
 }