[mapserver-users] Show WFS layer

Rahkonen Jukka Jukka.Rahkonen at mmmtike.fi
Tue Jan 13 06:18:11 PST 2009


Hi,

I am not sure how strict uDig is with the getCapabilities response, but if uDig is trying to utilise the information it is reading from the document then I suppose it will fail. Your server is advertising the following as getMap onlineResource:

<GetFeature>
...
<Get onlineResource="http://localhost/cgi-bin/mapserv.exe?map=test3.map&"/>

Try to edit onlineResource to be something like
<Get onlineResource="http://localhost/cgi-bin/mapserv.exe?service=WFS&version=1.0.0&request=getFeature&map=test3.map&"/>

-Jukka Rahkonen-
 

> -----Alkuperäinen viesti-----
> Lähettäjä: mapserver-users-bounces at lists.osgeo.org 
> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Peesjee
> Lähetetty: 13. tammikuuta 2009 13:07
> Vastaanottaja: mapserver-users at lists.osgeo.org
> Aihe: [mapserver-users] Show WFS layer
> 
> 
> Hi,
> 
> i'm new to Mapserver, i succesfully added a WMS layer from a 
> shapefile, but now i want to add a WFS layer that connects to 
> my Sybase (via ODBC). I followed the doc on "Virtual Spatial 
> data". This connection works well (tested with ogrinfo). The 
> shp2img tool gives me a map image, with my features on, so 
> far so good...
> 
> I can do a "getcapabilities" and a "getfeature". The last one 
> return my two test records nicely. But here i'm stuck, now i 
> want to display this data.
> 
> I tried the following:
>   - I added this WFS layer with OpenLayers (which i also used 
> for my WMS layer), nothing shows...
>   - i used uDig to open this WFS layer, the layer opens, but 
> i get an RenderingError (and saying 0 features)
> 
> These are my "getcapabilities" and a "getfeature". I also 
> added my Map-file.
> I've been stuck since two days on this, so some properties 
> maybe just there for testing...
> 
> http://n2.nabble.com/file/n2150639/getcapabilities.xml 
> getcapabilities.xml 
> http://n2.nabble.com/file/n2150639/getfeature.xml 
> getfeature.xml http://n2.nabble.com/file/n2150639/test3.map test3.map 
> 
> So whats my next step? I don't know what i can do here...
> 
> Greetz
> Peesjee
> --
> View this message in context: 
> http://n2.nabble.com/Show-WFS-layer-tp2150639p2150639.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> 
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 



More information about the MapServer-users mailing list