public function LineString::isRing in geoPHP 8
Same name and namespace in other branches
- 7 geoPHP/lib/geometry/LineString.class.php \LineString::isRing()
Overrides Collection::isRing
File
- geoPHP/
lib/ geometry/ LineString.class.php, line 43
Class
- LineString
- LineString. A collection of Points representing a line. A line can have more than one segment.
Code
public function isRing() {
return $this
->isClosed() && $this
->isSimple();
}