<div dir="ltr">Hi Jukka,<div><br></div><div style>I also do get correct results with Poster, but not with API Kitchen. This is really frustrating, but at least the service seems to running as it should.</div><div style><br>
</div><div style>Thank you,</div><div style><br></div><div style>Luís</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 28 June 2013 15:17, Rahkonen Jukka <span dir="ltr"><<a href="mailto:jukka.rahkonen@mmmtike.fi" target="_blank">jukka.rahkonen@mmmtike.fi</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Sorry, nothing wrong with the typename and using "feature:RO_buildings_gml".  Namespace “feature” is described later in the request and I do get correct results with Poster if I have<br>

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