[mapserver-users] HTML response to GetFeature request
Rahkonen Jukka
jukka.rahkonen at mmmtike.fi
Fri Jun 28 06:08:35 PDT 2013
Hi,
I made a trial with Firefox Poster plugin and I get correct results back after correcting the typename. I do not know what is wrong with API Kitchen and your other trials.
<wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<wfs:Query typeName="RO_buildings_gml" srsName="EPSG:28992" xmlns:feature="http://mapserver.gis.umn.edu/mapserver"></wfs:Query>
</wfs:GetFeature>
Kosmo Desktop 3.0 beta http://www.opengis.es/index.php?option=com_docman&Itemid=42?lang=en reads data with http POST from your site basically fine. You have some data errors, though, and Kosmo says that there is dublicate fid around fid .168 .
-Jukka Rahkonen-
> -----Alkuperäinen viesti-----
> Lähettäjä: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-
> bounces at lists.osgeo.org] Puolesta Luís de Sousa
> Lähetetty: 28. kesäkuuta 2013 15:30
> Vastaanottaja: mapserver-users at lists.osgeo.org
> Aihe: Re: [mapserver-users] HTML response to GetFeature request
>
> Hi Michael thank you for the reply, my comments go below.
>
>
> Michael Schulz-6 wrote
> > Hi Luis,
> >
> > for WFS enabling layers you should add some more metadata, wfs_srs and
> > gml_featureid.
>
> I've added these to the LAYER block, but the response is the same (see the
> definition below). I have had both "ows_enable_request" and
> "gml_include_items" "all" in the main file section all along.
>
>
> Michael Schulz-6 wrote
> > I'm also not sure about the projection stuff. Is there a reason for
> > not using the espg code?
>
> The in line projection definition is supposed to speed up rendition.
>
>
> Michael Schulz-6 wrote
> > Try adding some debug logging.
>
> Here's what I'm getting in the MapServer log:
>
> [Fri Jun 28 14:17:09 2013].620005 CGI Request 1 on process 9189 [Fri Jun 28
> 14:17:09 2013].621842 msDrawMap(): rendering using outputformat named
> GTiff-RGB (GDAL/GTiff).
> [Fri Jun 28 14:17:09 2013].621861 msDrawMap(): WMS/WFS set-up and query,
> 0.000s [Fri Jun 28 14:17:09 2013].621900 msDrawMap(): Drawing Label Cache,
> 0.000s [Fri Jun 28 14:17:09 2013].621908 msDrawMap() total time: 0.002s [Fri
> Jun 28 14:17:09 2013].657425
> msSaveImage(/var/www/MapFiles/map_images/TUDOR_RO_test-
> environment13724218299189.tif)
> total time: 0.036s
> [Fri Jun 28 14:17:09 2013].658291 mapserv request processing time
> (msLoadMap not incl.): 0.038s [Fri Jun 28 14:17:09 2013].658311 msFreeMap():
> freeing map at 0x10c1940.
>
>
> Michael Schulz-6 wrote
> > Another thing to check: your requesting
> > typeName="feature:BuildingsWFS" but from the mapfile I'd say the
> > typename shoud be "RO_buildings_gml".
>
> Yes, it seems the first POST body I posted is wrong, but I'm using the correct
> layer name testing. You can try it here:
>
> http://apikitchen.com/#bXd2s
>
> Once again, note that with a GET request everything works as it should:
>
> http://services.iguess.tudor.lu/cgi-
> bin/mapserv?map=/var/www/MapFiles/RO_localOWS_test.map&SERVICE=WFS
> &VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=RO_buildings_gml&MAXF
> EATURES=10
>
> Thank you once more,
>
> Luís
>
> #########################################3
>
> LAYER
> NAME "RO_buildings_gml"
> TYPE POLYGON
> CONNECTIONTYPE OGR
> CONNECTION "/var/www/pywps/sampleData/BuildingsFull.gml"
> STATUS ON
>
> DUMP TRUE
> TEMPLATE "templateRO_building_footprints.html"
>
> PROJECTION
> "+proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889
> +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel
> +towgs84=565.237,50.0087,465.658,-0.406857,0.350733,-1.87035,4.0812
> ++units=m no_defs"
> END
>
> METADATA
> "ows_title" "Building footprints (GML)"
> "ows_abstract" "Data set of building footprints in Rotterdam city area for the
> slider demo"
> "wfs_srs" "EPSG:28992"
> "gml_featureid" "GML_ID"
> "ows_enable_request" "*"
> "gml_include_items" "all"
> END
>
> CLASS
> NAME "Building_footprints (GML)"
> OUTLINECOLOR 255 0 0
> END
> END
>
>
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/HTML-
> response-to-GetFeature-request-tp5062355p5062817.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