You are here

private function GeoJSON::arrayToMultiPolygon in geoPHP 8

Same name and namespace in other branches
  1. 7 geoPHP/lib/adapters/GeoJSON.class.php \GeoJSON::arrayToMultiPolygon()

File

geoPHP/lib/adapters/GeoJSON.class.php, line 93

Class

GeoJSON
GeoJSON class : a geojson reader/writer.

Code

private function arrayToMultiPolygon($array) {
  $polys = array();
  foreach ($array as $comp_array) {
    $polys[] = $this
      ->arrayToPolygon($comp_array);
  }
  return new MultiPolygon($polys);
}