featureCollection === null) { return null; } return $this->featureCollection->toGeoJSON(); } /** * Shortcut for GeoJSON conversion * * @return String * @param $geoJson String */ public static function geoJsonToGml ($geoJson) { $gmlFactory = new UniversalGmlFactory(); $myGmlObj = $gmlFactory->createFromGeoJson($geoJson); return $myGmlObj->toGml(); } } ?>