0) { $report = "

Total features : $featureCount | Name of the layer: $datasetId

Download the dataset in:

"; } else { $report = "No results."; } return $report; } function processXMLReport ($datasetId,$featureCount,$geoserverExternalOWSUrl) { $report = " $datasetId $featureCount $geoserverExternalOWSUrl {$geoserverExternalOWSUrl}".xmlentities("wfs?version=1.0.0&request=GetFeature&service=WFS&typename=$datasetId&outputformat=GML2")." {$geoserverExternalOWSUrl}".xmlentities("wms?bbox=-180,-90,180,90&styles=poi&Format=kml&request=GetMap&layers=$datasetId&width=550&height=250&srs=EPSG:4326")." {$geoserverExternalOWSUrl}".xmlentities("wfs?version=1.0.0&request=GetFeature&service=WFS&typename=$datasetId&outputformat=SHAPE-ZIP")." {$geoserverExternalOWSUrl}".xmlentities("wms?bbox=-180,-90,180,90&SLD=http%3A%2F%2Fsynthesys.csic.es%2FDPS%2Fsld%2Fdps_sld.xml.php%3Fid%3D$datasetId&Format=application/pdf&request=GetMap&layers=world_base,world_lb,world_adm0,$datasetId&width=1100&height=500&srs=EPSG:4326")." {$geoserverExternalOWSUrl}".xmlentities("wfs?request=GetCapabilities")." {$geoserverExternalOWSUrl}".xmlentities("wms?request=GetCapabilities")." {$geoserverExternalOWSUrl}".xmlentities("wms?bbox=-180,-90,180,90&SLD=http%3A%2F%2Fsynthesys.csic.es%2FDPS%2Fsld%2Fdps_sld.xml.php%3Fid%3D$datasetId&Format=image/png&request=GetMap&layers=world_base,world_lb,world_adm0,$datasetId&width=550&height=250&srs=EPSG:4326")." "; return $report; } function xmlentities($string) { //Recive el string y le quita los entities y en funcion de params cambia los brs y el markup $resultado=$string; $resultado=str_replace ( array ( '&', '"', "'", '<', '>' ), array ( '&' , '"', ''' , '<' , '>' ), $resultado ); return $resultado; } ?>