Example #1
0
 public function testSimpleLine()
 {
     $sut = new LineString([13.9, 10.3], new Point(14.2, 15));
     $coordinates = [[13.9, 10.3], [14.2, 15]];
     $this->assertEquals($coordinates, $sut->getCoordinates());
     /** GeoJson Interface */
     $this->assertEquals(json_encode($this->generateGeoJSON($coordinates)), json_encode($sut));
 }