@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | if (preg_match(self::EWKT_PATTERN, $this->value, $matches)) { |
135 | 135 | $geometries = preg_split('/,(?=[a-zA-Z])/', substr($matches[4], 1, -1)); |
136 | 136 | $srid = $this->srid; |
137 | - return array_map(function ($geometry) use ($srid) { |
|
137 | + return array_map(function($geometry) use ($srid) { |
|
138 | 138 | return GIS::create('SRID=' . $srid . ';' . $geometry); |
139 | 139 | }, $geometries); |
140 | 140 | } |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | |
240 | 240 | protected static function reproject_array($coordinates, $fromProj, $toProj) |
241 | 241 | { |
242 | - return self::each($coordinates, function ($coordinate) use ($fromProj, $toProj) { |
|
242 | + return self::each($coordinates, function($coordinate) use ($fromProj, $toProj) { |
|
243 | 243 | return array_slice(self::$proj4->transform($toProj, new Point($coordinate[0], $coordinate[1], $fromProj))->toArray(), 0, 2); |
244 | 244 | }); |
245 | 245 | } |
@@ -70,9 +70,9 @@ |
||
70 | 70 | 'coordinates' => $geometry->coordinates, |
71 | 71 | ]; |
72 | 72 | } |
73 | - $feature['geometry']['geometries'] = $geometries; |
|
73 | + $feature['geometry']['geometries'] = $geometries; |
|
74 | 74 | } else { |
75 | - $feature['geometry']['coordinates'] = $geo->coordinates; |
|
75 | + $feature['geometry']['coordinates'] = $geo->coordinates; |
|
76 | 76 | } |
77 | 77 | echo json_encode($feature); |
78 | 78 | } |