Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function isMeasured()
 {
     if ($this->proxyGeometry === null) {
         $this->load();
     }
     return $this->proxyGeometry->isMeasured();
 }
Exemplo n.º 2
0
 /**
  * @param Point   $point
  * @param boolean $is3D
  * @param boolean $isMeasured
  * @param integer $srid
  */
 private function assertPointEmptyFactoryMethod(Point $point, $is3D, $isMeasured, $srid)
 {
     $this->assertTrue($point->isEmpty());
     $this->assertNull($point->x());
     $this->assertNull($point->y());
     $this->assertNull($point->z());
     $this->assertNull($point->m());
     $this->assertSame($is3D, $point->is3D());
     $this->assertSame($isMeasured, $point->isMeasured());
     $this->assertSame($srid, $point->SRID());
 }
Exemplo n.º 3
0
 /**
  * @param array   $coords     The expected coordinates of the Point as returned by toArray().
  * @param boolean $is3D       Whether the Point is expected to contain a Z coordinate.
  * @param boolean $isMeasured Whether the Point is expected to contain a M coordinate.
  * @param integer $srid       The expected SRID.
  * @param Point   $point      The Point to test.
  */
 protected final function assertPointEquals(array $coords, $is3D, $isMeasured, $srid, Point $point)
 {
     $this->castToFloat($coords);
     $this->assertSame($coords, $point->toArray());
     $this->assertSame($is3D, $point->is3D());
     $this->assertSame($isMeasured, $point->isMeasured());
     $this->assertSame($srid, $point->SRID());
 }