private function GeoJSON::arrayToPolygon in geoPHP 8
Same name and namespace in other branches
- 7 geoPHP/lib/adapters/GeoJSON.class.php \GeoJSON::arrayToPolygon()
1 call to GeoJSON::arrayToPolygon()
- GeoJSON::arrayToMultiPolygon in geoPHP/
lib/ adapters/ GeoJSON.class.php
File
- geoPHP/
lib/ adapters/ GeoJSON.class.php, line 69
Class
- GeoJSON
- GeoJSON class : a geojson reader/writer.
Code
private function arrayToPolygon($array) {
$lines = array();
foreach ($array as $comp_array) {
$lines[] = $this
->arrayToLineString($comp_array);
}
return new Polygon($lines);
}