UDig & Mapserver WFS

Paul Ramsey pramsey at REFRACTIONS.NET
Wed Jul 26 11:52:25 PDT 2006


This is a uDig problem. We are known to work with earlier mapserver 
versions, but later ones changed geometry representations a bit and 
confused us.
We are working on WFS support now against Ionic servers, and hopefully 
those fixes will also fix the later versions of mapserver.
P

Ryan Ollerenshaw wrote:
> I have also been having a problem with uDIG and WFS which is the GML returned
> from my WFS seems to be good (all the data is present), but uDIG does not
> output any data about my features when using the Information tool.
> 
> here is part of the XML returned using the HTTP request:
> http://neuron/cgi-bin/mapserv?map=../html/mapserver/htdocs/webservices.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=hrsc_nd&
> 
> <wfs:FeatureCollection xsi:schemaLocation="http://www.opengis.net/wfs
> http://schemas.opengeospatial.net/wfs/1.0.0/WFS-basic.xsd                      
>   http://mapserver.gis.umn.edu/mapserver
> http://neuron/cgi-bin/mapserv?map=../html/mapserver/htdocs/webservices.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=hrsc_nd&OUTPUTFORMAT=XMLSCHEMA">
> <gml:boundedBy>
> <gml:Box srsName="EPSG:4326">
> <gml:coordinates>-180.000000,-79.029000 180.000000,83.969300</gml:coordinates>
> </gml:Box>
> </gml:boundedBy>
> <gml:featureMember>
> <ms:hrsc_nd>
> <gml:boundedBy>
> <gml:Box srsName="EPSG:4326">
> <gml:coordinates>87.715900,-48.050500 92.044000,-31.895800</gml:coordinates>
> </gml:Box>
> </gml:boundedBy>
> <ms:msGeometry>
> <gml:Polygon srsName="EPSG:4326">
> <gml:outerBoundaryIs>
> <gml:LinearRing>
> <gml:coordinates>
> 87.715900,-47.952400 87.748000,-47.752900 87.809800,-47.356500
>   ....
>   ...
> 91.455800,-34.774400 91.461900,-34.915400 87.715900,-47.952400
> </gml:coordinates>
> </gml:LinearRing>
> </gml:outerBoundaryIs>
> </gml:Polygon>
> </ms:msGeometry>
> <ms:gid>1</ms:gid>
> <ms:id>4</ms:id>
> <ms:filename>h0010_0000_nd2.img</ms:filename>
> <ms:detec_id>MEX_HRSC_NADIR</ms:detec_id>
> <ms:releas_i>0001</ms:releas_i>
> <ms:revis_id>0000</ms:revis_id>
> <ms:start_ti>2004-01-10T13:51:51.460Z</ms:start_ti>
> <ms:max_res_>19.8</ms:max_res_>
>   ...
>   ...
> </wfs:FeatureCollection>
> 
> Quoting "Bart van den Eijnden (OSGIS)" <bartvde at XS4ALL.NL>:
> 
>> I think your problem is with the schema (DescribeFeatureType refererence
>> in the GML response).
>>
>> If I use:
>>
> http://ogc.midwestsurveys.com/geoserve/ms?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=capitals&OUTPUTFORMAT=XMLSCHEMA
>> I don't get back the schema.
>>
>> capitals should be Capitals then it works.
>>
>> uDIG is very sensitive to such things.
>>
>> Best regards,
>> Bart
>>
>> Angus Dickey wrote:
>>
>>> Hey List,
>>>
>>> Has anybody tried using UDig as a client for a WFS service from Mapserver? I
>> have mapserver running a WFS service that seems to produce fine GML, some
>> other clients can connect correctly, but UDig always errors out.
>>> I will post the actual error to the UDig list, but was hoping somebody might
>> have some insight into whether this is a UDig or Mapserver problem.
>>> For a sample mapserver response try this:
>>>
>> http://ogc.midwestsurveys.com/geoserve/ms?SERVICE=WFS&version=1.0.0&request=getfeature&TYPENAME=capitals&OUTPUTFORMAT=gml2
>>> Thanks,
>>>
>>> ~Angus
>>>
>>>
>>>
>>>
>>>
>>
>> --
>> Bart van den Eijnden
>> OSGIS, Open Source GIS
>> http://www.osgis.nl
>>



More information about the MapServer-users mailing list