public function toWKT() { if (isset($this->geometry)) { return $this->geometry->toWKT(); } else { return ''; } }