public function Collection::dimension in geoPHP 7
Same name and namespace in other branches
- 8 geoPHP/lib/geometry/Collection.class.php \Collection::dimension()
Overrides Geometry::dimension
2 methods override Collection::dimension()
- LineString::dimension in geoPHP/
lib/ geometry/ LineString.class.php - Polygon::dimension in geoPHP/
lib/ geometry/ Polygon.class.php
File
- geoPHP/
lib/ geometry/ Collection.class.php, line 182
Class
- Collection
- Collection: Abstract class for compound geometries
Code
public function dimension() {
$dimension = 0;
foreach ($this->components as $component) {
if ($component
->dimension() > $dimension) {
$dimension = $component
->dimension();
}
}
return $dimension;
}