mirror of
https://0xacab.org/radar/radar-wp.git
synced 2024-12-25 01:56:28 +01:00
21 lines
382 B
PHP
21 lines
382 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;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|