wfs GetFeature problem

Henry Han hhan at GEOTANGO.COM
Tue Dec 21 15:53:41 EST 2004


Hi,

I put a world rivers.shp layer from ESRI demo data in MapServer 4.4 WFS. This is
my getFeature request (click to see the GML return):
http://130.63.110.128/scripts/mapserv.exe?map=d:\data\wfs\gsn_wfs.map&request=ge
tfeature&service=wfs&typename=rivers&version=1.0.0

But the format of the generated GML does not look right. Each pair of x andy
coordinates of some MultiLineString features is NOT seperated by a delimiter
such as " ". As a result, the XML parser can not parse them.  Below is one
GML-based MultiLineString feature.

<gml:featureMember>
         <rivers>
         <gml:boundedBy>
         <gml:Box srsName="EPSG:4326">
          <gml:coordinates>32.485130,9.841940
38.513878,15.629726</gml:coordinates>
          </gml:Box>
          </gml:boundedBy>
         <gml:lineStringProperty>
         <gml:MultiLineString srsName="EPSG:4326">
         <gml:LineString>
<gml:coordinates>32.485130,15.62972632.576096,15.62027232.794991,15.34721633.014
709,15.28138533.178596,15.
11777133.218040,14.93833033.647484,14.19221933.633324,13.97027233.618042,13.9072
1933.603600,13.85194033.54
1931,13.84138533.623039,13.75943933.552208,......</gml:coordinates>
            </gml:LineString>

                <gml:LineString>
                .......
        </gml:LineString>
          </gml:MultiLineString>
  </gml:lineStringProperty>
          <NAME>Blue Nile</NAME>
          <SYSTEM>Nile</SYSTEM>
  </rivers>
<gml:featureMember>

I also tried a canada rivers.shp layer from ESRI demo data, some of
MultiLineString have such a problem as well. Is this a bug or I forget something
in .map.

Thanks a lot

Henry



More information about the mapserver-users mailing list