You are here

private function GeoJSON::arrayToMultiPolygon in geoPHP 7

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

File

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

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);
}