WFS Client Problems
Jeffrey Johnson
ortelius at GMAIL.COM
Fri Apr 29 08:46:44 PDT 2005
Not sure what you mean by 'other than for a feature query'. Isn't that
what I want to do here.
http://webservices.ionicsoft.com/unData/wfs/UN?request=GetFeature&service=WFS&typeName=wfs:COUNTRY
Returns properly formatted GML (as far as I can tell).
I'm just coming up to speed on these OGC interfaces, so maybe I am
missing something.
In any case, can someone direct me to another WFS server that serves
up basic stuff like country, state, county bndrys etc.
Thanks,
Jeff
On 4/28/05, Tyler Mitchell <tylermitchell at shaw.ca> wrote:
> Hi Jeffrey,
> The bad news is that it isn't really a WFS server! Unless I'm seriously
> missing something - this server is lying saying that it is WFS (repeatedly
> used in the capabilities document). Looking its capabilities document:
> http://webservices.ionicsoft.com/unData/wfs/UN?request=capabilities
> doesn't show any sign of really being a WFS, but only a WMS (although the
> acronym is used there a lot).
>
> If you know the people that put this together (anyone on this list!?), direct
> them our way so we can help fix them up. Can you show us how you got it to
> return GML properly, other than for a feature query?
>
> The good news is, it is a WMS and works. Here is the layer definition that
> should work for you.
>
> LAYER
> NAME country
> TYPE RASTER
> STATUS DEFAULT
> CONNECTIONTYPE WMS
> CONNECTION "http://webservices.ionicsoft.com/unData/wfs/UN?"
> METADATA
> "wms_server_version" "1.0.0"
> "wms_name" "COUNTRY"
> "wms_format" "PNG"
> END
> PROJECTION
> "init=epsg:4326"
> END
> END
>
> You won't be able to style the layers or change colours, but they've done a
> good job making things look alright.
>
> Let me know if you need more help. Please cc: me directly to get my
> attention.
>
> Tyler
>
>
> On April 28, 2005 02:57 pm, Jeffrey Johnson wrote:
> > Hello list,
> >
> > I am having trouble getting mapserver to properly retrieve and display
> > data via wfs, and wanted to see if anyone can help. Mapserver is
> > compiled with wfs and wms client support and the wms client works
> > fine.
> >
> > Ok, here is the layer definition in my map file.
> >
> > LAYER
> > NAME countries
> > TYPE POLYGON
> > STATUS ON
> > CONNECTIONTYPE WFS
> > CONNECTION
> > "http://webservices.ionicsoft.com/unData/wfs/UN?" METADATA
> > "wfs_service" "WFS"
> > "wfs_typename" "wfs:COUNTRY"
> > "wfs_version" "1.0.0"
> > END
> > PROJECTION
> > "init=epsg:4326"
> > END
> > CLASS
> > TEMPLATE "dummy.html"
> > OUTLINECOLOR 0 0 0
> > END
> > END
> >
> > Note: dummy.html doesn't actually exist, but I dont think it has to???
> >
> > There are no errors returned with this layer is activated, but the
> > output in the IMAGEPATH dir looks like this, and nothing is drawn.
> >
> > <?xml version='1.0' encoding='utf-8' ?> <ogcwfs:FeatureCollection
> > xsi:schemaLocation="http://www.ionicsoft.com/wfs
> > http://webservices.ionicsoft.com/unData/wfs/UN?REQUEST=DescribeAllFeatureTy
> >pe&SERVICE=WFS http://www.opengis.net/wfs
> > http://webservices.ionicsoft.com/unData/wfs/UN/REQUEST/get/DATA/LPR/wfs/bas
> >ic.xsd" xmlns:gml="http://www.opengis.net/gml"
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > xmlns:xlink="http://www.w3.org/1999/xlink"
> > xmlns:ogcwfs="http://www.opengis.net/wfs">
> > <gml:boundedBy> <gml:null>inapplicable</gml:null>
> > </gml:boundedBy>
> > </ogcwfs:FeatureCollection>
> >
> > I assume that this means Mapserver made a request to the wfs server,
> > but no results were returned. First of all, how do I find out the
> > exact URL request made to the WFS server? I suppose that I may be able
> > to debug it this way. I can construct a url myself and the server
> > returns GML correctly.
> >
> > Thanks in advance,
> >
> > Jeff
>
More information about the MapServer-users
mailing list