コード例 #1
0
ファイル: GeometryProxy.php プロジェクト: brick/geo
 /**
  * {@inheritdoc}
  */
 public function isMeasured()
 {
     if ($this->proxyGeometry === null) {
         $this->load();
     }
     return $this->proxyGeometry->isMeasured();
 }
コード例 #2
0
ファイル: AbstractTestCase.php プロジェクト: brick/geo
 /**
  * @param Geometry $g      The Geometry to test.
  * @param array    $coords The expected raw coordinates of the geometry.
  * @param boolean  $hasZ   Whether the geometry is expected to contain Z coordinates.
  * @param boolean  $hasM   Whether the geometry is expected to contain M coordinates.
  * @param integer  $srid   The expected SRID of the geometry.
  */
 protected final function assertGeometryContents(Geometry $g, array $coords, $hasZ = false, $hasM = false, $srid = 0)
 {
     $this->castToFloat($coords);
     $this->assertSame($coords, $g->toArray());
     $this->assertSame($hasZ, $g->is3D());
     $this->assertSame($hasM, $g->isMeasured());
     $this->assertSame($srid, $g->SRID());
 }