protected function GeoRSS::geometryToGeoRSS in geoPHP 7
Same name and namespace in other branches
- 8 geoPHP/lib/adapters/GeoRSS.class.php \GeoRSS::geometryToGeoRSS()
2 calls to GeoRSS::geometryToGeoRSS()
- GeoRSS::collectionToGeoRSS in geoPHP/
lib/ adapters/ GeoRSS.class.php - GeoRSS::write in geoPHP/
lib/ adapters/ GeoRSS.class.php - Serialize geometries into a GeoRSS string.
File
- geoPHP/
lib/ adapters/ GeoRSS.class.php, line 180
Class
- GeoRSS
- PHP Geometry/GeoRSS encoder/decoder
Code
protected function geometryToGeoRSS($geom) {
$type = strtolower($geom
->getGeomType());
switch ($type) {
case 'point':
return $this
->pointToGeoRSS($geom);
break;
case 'linestring':
return $this
->linestringToGeoRSS($geom);
break;
case 'polygon':
return $this
->PolygonToGeoRSS($geom);
break;
case 'multipoint':
case 'multilinestring':
case 'multipolygon':
case 'geometrycollection':
return $this
->collectionToGeoRSS($geom);
break;
}
return $output;
}