MapServer / MapServer-import

3 stars 2 forks source link

use element namespaces instead of element tag prefixes #1439

Open tbonfort opened 12 years ago

tbonfort commented 12 years ago

Reporter: sgillies@frii.com Date: 2005/08/11 - 23:03

The following is a legitimate WFS response, and usable with uDig (GeoTools)

<?xml version="1.0" ?>
<ns0:FeatureCollection xsi:schemaLocation="http://www.zcologia.com
    http://lenny:9001/mapserver/members/description.rpy http://www.opengis.net/wfs
    http://lenny:9001/schemas/wfs/1.0.0/WFS-basic.xsd"
xmlns:ns0="http://www.opengis.net/wfs"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <ns2:boundedBy xmlns:ns2="http://www.opengis.net/gml">
        <ns2:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
            <ns2:coordinates cs="," decimal="." ts=" ">-180.0,-90.0
180.0,90.0</ns2:coordinates>
        </ns2:Box>
    </ns2:boundedBy>
    <ns2:featureMember xmlns:ns2="http://www.opengis.net/gml">
        <ns3:users fid="user.41090800" xmlns:ns3="http://www.zcologia.com">
            <ns3:mid>hobu2</ns3:mid>
            <ns3:fullname>Howard Butler</ns3:fullname>
            <ns3:the_geom>
                <ns2:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
                    <ns2:coordinates cs="," decimal="." ts=" "
                    >-93.000000,42.000000</ns2:coordinates>
                </ns2:Point>
            </ns3:the_geom>
        </ns3:users>
    </ns2:featureMember>
    <ns2:featureMember xmlns:ns2="http://www.opengis.net/gml">
        <ns3:users fid="user.57330048" xmlns:ns3="http://www.zcologia.com">
            <ns3:mid>sgillies</ns3:mid>
            <ns3:fullname>Sean Gillies</ns3:fullname>
            <ns3:the_geom>
                <ns2:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
                    <ns2:coordinates cs="," decimal="." ts=" "
                    >-105.070000,40.540000</ns2:coordinates>
                </ns2:Point>
            </ns3:the_geom>
        </ns3:users>
    </ns2:featureMember>
</ns0:FeatureCollection>

but can't be handled by MapServer, which seems to be looking not at the element
namespaces, but at the tag prefixes.
tbonfort commented 12 years ago

Author: fwarmerdam Date: 2005/08/16 - 16:44

This file seems to work OK with GDAL/OGR 1.3.0.