MapServer / MapServer-import

3 stars 2 forks source link

WFS GetFeature only returns geometry, not attributes #1275

Open tbonfort opened 12 years ago

tbonfort commented 12 years ago

Reporter: bartvde@osgis.nl Date: 2005/03/08 - 13:58

When issuing an OGC:WFS (web feature service) GetFeature request, only the
geometry is returned in the GML, not the attributes. OGC:WMS GetFeatureInfo does
return all the attributes in GML format.

Example request (OGC:WFS GetFeature):
http://www.vz.geodan.nl:1111/cgi-bin/vc71/mapserv.exe?map=/ms4w/apps/general/map/oracle.map&SERVICE=WFS&VERSION=1.0.0&TYPENAME=Gemeentes&request=getfeature&filter=<Filter>%3CBBOX%3E%3CPropertyName%3EName%3C%2FPropertyName%3E%3Cgml%3ABox+srsName%3D%27%27%3E%3Ccoordinates%3E101083.39775%2C455477.816428+153194.380027%2C486744.405794%3C%2Fcoordinates%3E%3C%2Fgml%3ABox%3E%3C%2FBBOX%3E</Filter>

OGC:WMS GetFeatureInfo example on same service:
http://www.vz.geodan.nl:1111/cgi-bin/vc71/mapserv.exe?map=%2Fms4w%2Fapps%2Fgeneral%2Fmap%2Foracle.map&LAYERS=Gemeentes&REQUEST=GetFeatureInfo&SERVICE=WMS&FORMAT=image%2Fpng&SLD_BODY=&STYLES=&HEIGHT=450&QUERY_LAYERS=Gemeentes&VERSION=1.1.1&SRS=EPSG%3A28992&WIDTH=750&BBOX=101083.33333325984%2C455477.77777778101%2C153194.44444443317%2C486744.44444448501&TRANSPARENT=TRUE&INFO_FORMAT=application%2Fvnd.ogc.gml&X=477&EXCEPTIONS=application%2Fvnd.ogc.se_xml&Y=219

The last request has the non-spatial attributes in the GML, the first one does
not but should have them.

..
  <ID>1696</ID>
  <PVE_CODE>NH</PVE_CODE>
  <NAAM>Wijdemeren</NAAM>
..

There are more attributes available, since the DATA statement contains SELECT *

DATA "locatie from (SELECT * FROM mrg_gemeenten) using unique id srid 90112
filter version 10g"
tbonfort commented 12 years ago

Author: bartvde@osgis.nl Date: 2005/03/09 - 09:49

This appears to be a general Mapserver problem, seeing Assefa's post on the
mapserver-dev list.

Changing component to WFS Server instead. Version to 4.5.
tbonfort commented 12 years ago

Author: bartvde@osgis.nl Date: 2005/03/09 - 09:50

Reassigning bug.
tbonfort commented 12 years ago

Author: sdlime Date: 2005/03/09 - 20:30


*** This bug has been marked as a duplicate of 950 ***