fid."\", \"crs\":"; if (!$this->geometry || !$this->geometry->srs) { $str .= "null, "; } else { $str .= "{\"type\":\"name\", \"properties\":{\"name\":\"" . $this->geometry->srs . "\"}}, "; } $str .= "\"geometry\": "; if ($this->geometry) { $str .= $this->geometry->toGeoJSON(); } else { $str .= "\"\""; } $prop = array(); $str .= ", \"properties\": "; $cnt = 0; foreach ($this->properties as $key => $value) { $prop[$key] = preg_replace('/\r\n|\r|\n/', '\\n', $value); $cnt ++; } $json = new Mapbender_JSON(); $str .= $json->encode($prop); $str .= "}"; return $str; } } ?>