Subversion Repositories eFlore/Applications.moissonnage

Rev

Rev 34 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?php echo '<?xml version="1.0" encoding="UTF-8"?>'."\n"; ?>
<wfs:FeatureCollection
        xmlns:ms="http://mapserver.gis.umn.edu/mapserver"
        xmlns:gml="http://www.opengis.net/gml"
        xmlns:wfs="http://www.opengis.net/wfs"
        xmlns:ogc="http://www.opengis.net/ogc"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://mapserver.gis.umn.edu/mapserver <?php echo Config::get('url_service_base'); ?>wfs?service=wfs&amp;version=1.1.0&amp;request=DescribeFeatureType&amp;typename=<?php echo $listeSources; ?> http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd">
        <gml:boundedBy>
                <gml:Box srsName="EPSG:4326">
                        <gml:coordinates decimal="." cs="," ts=" "><?=$enveloppe['ouest']?>,<?=$enveloppe['sud']?>,<?=$enveloppe['est']?>,<?=$enveloppe['nord']?></gml:coordinates>
                </gml:Box>
        </gml:boundedBy>
<?php foreach ($stations as $station) { ?>
        <gml:featureMember>
                <ms:<?=$station['source']?>>
                        <ms:coordonnees>
                                <gml:Point srsName="EPSG:4326">
                                        <gml:coordinates decimal="." cs="," ts=" "><?=$station['longitude']?>,<?=$station['latitude']?></gml:coordinates>
                                </gml:Point>
                        </ms:coordonnees>
                        <ms:nomStation><?=$station['nom_station']?></ms:nomStation>
                        <ms:precision><?=$station['type_site']?></ms:precision>
                        <ms:codeInsee><?=$station['code_insee']?></ms:codeInsee>
                        <ms:departement><?=$station['departement']?></ms:departement>
                        <ms:taxons><?=$station['taxons']?></ms:taxons>
                        <ms:auteurs><?=$station['auteurs']?></ms:auteurs>
                </ms:<?=$station['source']?>>
        </gml:featureMember>    
<?php } ?>
</wfs:FeatureCollection>