You are here

private function GeoJSON::arrayToMultiPoint in geoPHP 8

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

File

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

Class

GeoJSON
GeoJSON class : a geojson reader/writer.

Code

private function arrayToMultiPoint($array) {
  $points = array();
  foreach ($array as $comp_array) {
    $points[] = $this
      ->arrayToPoint($comp_array);
  }
  return new MultiPoint($points);
}