mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
20 lines
361 B
PHP
20 lines
361 B
PHP
|
|
<?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;
|
||
|
|
}
|
||
|
|
}
|