/** * Generate WKT */ public function toWKT() { if (isset($this->feature)) { if ($this->feature instanceof Container) { return sprintf("GEOMETRYCOLLECTION(%s)", $this->feature->toWKT()); } else { return $this->feature->toWKT(); } } return ''; }
/** * Generate WKT */ public function toWKT() { if (isset($this->feature)) { if ($this->feature instanceof Container) { return sprintf("GEOMETRYCOLLECTION(%s)", $this->feature->toWKT()); } else { return $this->feature->toWKT(); } } return ''; }