You are here

MultiLineString.class.php in geoPHP 8

Same filename and directory in other branches
  1. 7 geoPHP/lib/geometry/MultiLineString.class.php

File

geoPHP/lib/geometry/MultiLineString.class.php
View source
<?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;
  }

}

Classes

Namesort descending Description
MultiLineString MultiLineString: A collection of LineStrings