Exemplo n.º 1
0
 /**
  * @dataProvider providerPrettyPrint
  *
  * @param boolean $prettyPrint Whether to set the prettyPrint parameter.
  * @param string  $ewkt        The expected result EWKT.
  */
 public function testPrettyPrint($prettyPrint, $ewkt)
 {
     $writer = new EWKTWriter();
     $writer->setPrettyPrint($prettyPrint);
     $lineString = $this->createLineString([[1, 2, 3, 4], [5, 6, 7, 8]], CoordinateSystem::xyzm(4326));
     $this->assertSame($ewkt, $writer->write($lineString));
 }
Exemplo n.º 2
0
Arquivo: Point.php Projeto: brick/geo
 /**
  * Creates an empty Point with XYZM dimensionality.
  *
  * @param integer $srid An optional SRID.
  *
  * @return Point
  */
 public static function xyzmEmpty($srid = 0)
 {
     return new Point(CoordinateSystem::xyzm($srid));
 }