You are here

private function GeoJSON::arrayToMultiLineString in geoPHP 8

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

File

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

Class

GeoJSON
GeoJSON class : a geojson reader/writer.

Code

private function arrayToMultiLineString($array) {
  $lines = array();
  foreach ($array as $comp_array) {
    $lines[] = $this
      ->arrayToLineString($comp_array);
  }
  return new MultiLineString($lines);
}