/** * 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); }
/** * @dataProvider providerWriteEmptyPointThrowsException * @expectedException \Brick\Geo\Exception\GeometryIOException * * @param Point $point */ public function testWriteEmptyPointThrowsException(Point $point) { $writer = new WKBWriter(); $writer->write($point); }