/** * {@inheritdoc} */ public function coordinateSystem() { if ($this->proxyGeometry === null) { $this->load(); } return $this->proxyGeometry->coordinateSystem(); }
/** * {@inheritdoc} */ function load(ObjectManager $manager) { $point1 = Point::xy(0, 0); $point2 = Point::xy(1, 0); $point3 = Point::xy(1, 1); $multiPoint1 = new MultiPointEntity(); $multiPoint1->setMultiPoint(MultiPoint::of($point1, $point2, $point3)); $manager->persist($multiPoint1); $manager->flush(); }
/** * @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()); }