Esempio n. 1
0
 /**
  * Returns the WKB representation of this geometry.
  *
  * @noproxy
  *
  * @return string
  */
 public function asBinary()
 {
     static $wkbWriter;
     if ($wkbWriter === null) {
         $wkbWriter = new WKBWriter();
     }
     return $wkbWriter->write($this);
 }
Esempio n. 2
0
 /**
  * @dataProvider providerWriteEmptyPointThrowsException
  * @expectedException \Brick\Geo\Exception\GeometryIOException
  *
  * @param Point $point
  */
 public function testWriteEmptyPointThrowsException(Point $point)
 {
     $writer = new WKBWriter();
     $writer->write($point);
 }