public function Collection::asArray in geoPHP 7
Same name and namespace in other branches
- 8 geoPHP/lib/geometry/Collection.class.php \Collection::asArray()
Overrides Geometry::asArray
1 method overrides Collection::asArray()
- GeometryCollection::asArray in geoPHP/
lib/ geometry/ GeometryCollection.class.php
File
- geoPHP/
lib/ geometry/ Collection.class.php, line 108
Class
- Collection
- Collection: Abstract class for compound geometries
Code
public function asArray() {
$array = array();
foreach ($this->components as $component) {
$array[] = $component
->asArray();
}
return $array;
}