From luis.a.de.sousa at gmail.com Mon Jul 1 02:31:44 2013 From: luis.a.de.sousa at gmail.com (=?ISO-8859-1?Q?Lu=EDs_de_Sousa?=) Date: Mon, 1 Jul 2013 11:31:44 +0200 Subject: [mapserver-users] HTML response to GetFeature request In-Reply-To: <84446DEF76453C439E9E97E438E13A63C17E47@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A63C17E47@suutari.haapa.mmm.fi> Message-ID: Hi Jukka, 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. Thank you, Lu?s On 28 June 2013 15:17, Rahkonen Jukka wrote: > 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 > > typeName="feature:RO_buildings_gml" srsName="EPSG:28992" xmlns:feature=" > http://mapserver.gis.umn.edu/mapserver"> > > -Jukka- > > Rahkonen Jukka wrote: > > > > 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. > > > > > 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"> > > > xmlns:feature="http://mapserver.gis.umn.edu/mapserver"> > > > > > > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gislars+list at googlemail.com Mon Jul 1 02:35:58 2013 From: gislars+list at googlemail.com (Lars Lingner) Date: Mon, 01 Jul 2013 11:35:58 +0200 Subject: [mapserver-users] wfs_namespace_prefix / DescribeLayer Response Message-ID: <51D14D7E.2050400@googlemail.com> Hello, while setting up MapServer and TinyOWS I'm facing a problem configuring wfs_namespace_prefix. My WEB-METADATA ... "wms_onlineresource" "http://1.1.1.1:81/cgi-bin/wms" "wfs_onlineresource" "http://1.1.1.1:81/cgi-bin/tinyows" "wfs_title" "WFS Dienst" "wfs_namespace_prefix" "tows" "ows_enable_request" "*" ... LAYER ... METADATA 'ows_title' 'WFS Punktobjekte' END NAME "wfsobjects" ... END TinyOWS is configured via xml file. The MapServer is offering WMS and is advertising the WFS onlineresource.