[mapserver-users] WFS GetFeature Help...

Rahkonen Jukka Jukka.Rahkonen at mmmtike.fi
Sun Dec 5 03:00:27 PST 2010


Hi,

The link seems to work and it gives me XML back.  However, Saha made a non-standard request with WFS 1.0.0. and outputformat=gml3. Mapserver sends back data with geometries using GML3, but I am not sure if the output is totally valid.
A snippet from the output shows that the schemaLocation in this GML3 file points to WFS 1.0.0 schema

<ms:msFeatureCollection version="1.0.0" xsi:schemaLocation="http://mapserver.gis.umn.edu/mapserver http://www.dharmawan.web.id/cgi-bin/mapserv?map=/home/dharmawa/www/map_file/fix.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=kecamatan&OUTPUTFORMAT=SFE_XMLSCHEMA">

Doing DescribeFeatureType by using that URL gives:
<import namespace="http://www.opengis.net/gml" schemaLocation="http://schemas.opengis.net/gml/2.1.2/feature.xsd"/>

However, gml in the GetFeature is not of that version. I guess that clients which are doing schema validation may fail because of that and namespace for gml should poit to 
<import namespace="http://www.opengis.net/gml" schemaLocation="http://schemas.opengis.net/gml/3.1.1/base/gml.xsd"/>

Anyway, perhaps it would more reliable to use the defaults, WFS 1.0.0 + gml2 or WFS 1.1.0 + gml3. Have you a good reason to mix those two?


-Jukka Rahkonen-


-----Alkuperäinen viesti-----
Lähettäjä: mapserver-users-bounces at lists.osgeo.org puolesta: Smith, Michael ERDC-CRREL-NH
Lähetetty: la 4.12.2010 21:31
Vastaanottaja: Saha Aswina; mapserver-users at lists.osgeo.org
Aihe: Re: [mapserver-users] WFS GetFeature Help...
 
Saha,

You are getting XML back. Just do a view source on the result.

Mike


-- 
Michael Smith
Remote Sensing/GIS Center
US Army Corps of Engineers



On 12/4/10 2:04 PM, "Saha Aswina" <sahaaswina at yahoo.com> wrote:

> Dear everyone,
> 
> I'm new to mapserver.
> When I want to using wfs getfeature why I just get a lot of number, whats
> wrong??
> 
> http://www.dharmawan.web.id/cgi-bin/mapserv?MAP=/home/dharmawa/www/map_file/fi
> x.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=kecamatan&MAXFEATU
> RES=1&OUTPUTFORMAT=gml3
> 
> I don't get same xml code like the example from web
> http://demo.mapserver.org/cgi-bin/wfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=getfea
> ture&TYPENAME=continents&MAXFEATURES=1&OUTPUTFORMAT=gml3
> 
> thank you
> 
> 
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users

_______________________________________________
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