示例#1
0
 /**
  * {@inheritdoc}
  */
 public function is3D()
 {
     if ($this->proxyGeometry === null) {
         $this->load();
     }
     return $this->proxyGeometry->is3D();
 }
示例#2
0
 /**
  * @param array      $coords     The expected coordinates of the MultiPoint as returned by toArray().
  * @param boolean    $is3D       Whether the MultiPoint is expected to contain Z coordinates.
  * @param boolean    $isMeasured Whether the MultiPoint is expected to contain M coordinates.
  * @param MultiPoint $multiPoint The MultiPoint to test.
  */
 protected final function assertMultiPointEquals(array $coords, $is3D, $isMeasured, MultiPoint $multiPoint)
 {
     $this->castToFloat($coords);
     $this->assertSame($coords, $multiPoint->toArray());
     $this->assertSame($is3D, $multiPoint->is3D());
     $this->assertSame($isMeasured, $multiPoint->isMeasured());
 }