private function GeoJSON::arrayToPolygon in geoPHP 7
Same name and namespace in other branches
- 8 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 74
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);
}