Beispiel #1
0
 /**
  * {@inheritdoc}
  */
 public function coordinateSystem()
 {
     if ($this->proxyGeometry === null) {
         $this->load();
     }
     return $this->proxyGeometry->coordinateSystem();
 }
Beispiel #2
0
 public function testCreate()
 {
     $triangle1 = Triangle::fromText('TRIANGLE ((1 1, 1 2, 2 2, 1 1))');
     $triangle2 = Triangle::fromText('TRIANGLE ((1 1, 2 2, 2 1, 1 1))');
     $tin = TIN::of($triangle1, $triangle2);
     $this->assertWktEquals($tin, 'TIN (((1 1, 1 2, 2 2, 1 1)), ((1 1, 2 2, 2 1, 1 1)))');
 }
Beispiel #3
0
 /**
  * @expectedException \Brick\Geo\Exception\InvalidGeometryException
  */
 public function testCreateWithInteriorRings()
 {
     $exteriorRing = LineString::fromText('LINESTRING (0 0, 0 3, 3 3, 0 0)');
     $interiorRing = LineString::fromText('LINESTRING (1 1, 1 2, 2 2, 1 1)');
     Triangle::of($exteriorRing, $interiorRing);
 }