1
0
Fork 0
forked from lino/radar-wp
radar-wp-custom/vendor/phayes/geophp/lib/geometry/MultiLineString.class.php

21 lines
382 B
PHP
Raw Normal View History

2015-02-24 16:25:12 +01:00
<?php
/**
* MultiLineString: A collection of LineStrings
*/
class MultiLineString extends Collection
{
protected $geom_type = 'MultiLineString';
// MultiLineString is closed if all it's components are closed
public function isClosed() {
foreach ($this->components as $line) {
if (!$line->isClosed()) {
return FALSE;
}
}
return TRUE;
}
}