Пример #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 ? MultiSurface::fromBinary($this->proxyData, $this->proxySRID) : MultiSurface::fromText($this->proxyData, $this->proxySRID);
 }
Пример #2
0
 /**
  * @dataProvider providerInvalidFromBinary
  * @expectedException \Brick\Geo\Exception\UnexpectedGeometryException
  *
  * @param string $wkb A valid HEX WKB, for a non-multisurface geometry.
  */
 public function testInvalidFromBinary($wkb)
 {
     MultiSurface::fromBinary(hex2bin($wkb));
 }