Hi,

I am using a local mapserver installation (ms4w 2.1) and I built up a 
WFS-server with mapserver. Now I want to do a GetFeature request using a 
"propertyname=" parameter as it is decribed in the OGC WFS Specification 1.0.0 
(https://portal.opengeospatial.org/files/?artifact_id=7176) (page 67, Example 
2). The there given example looks as follows:

http://www.someserver.com/wfs.cgi&;
SERVICE=WFS&
VERSION=1.0.0&
REQUEST=GetFeature&
PROPERTYNAME=INWATERA_1M/WKB_GEOM,INWATERA_1M/TILE_ID&
TYPENAME=INWATERA_1M

 The URL I use is this ("BL" is the name of the layer and the wfs_title in the 
LAYER-METADATA-object and "NAME" is the column-name in the attribute-table):

http://localhost/cgi-bin/mapserv.exe?map=[path to 
mapfile]&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&PROPERTYNAME=BL/NAME&TYPENAME=BL

Unfortunately the XML/GML document I get back includes all property-elements 
that are contained in the attribute-table of my shapefile (.dbf) and not only 
information about the property-element I specified in the request 
(PROPERTYNAME=BL/ANME). Why?

I think the problem lies in the "gml_include_items" parameter I specified in 
the LAYERs METADATA object. The value for this parameter is set to "all". The 
mapserver-wfs-server-howto (http://mapserver.gis.umn.edu/docs/howto/wfs_server) 
tells this should be a optional parameter. But when I leave it out of my 
.map-file no property-elements are shown in the XML/GML (except 
<gml:coordinates>) doesn't matter what value I define for the PROPERTYNAME 
parameter in the GetFeature-request.

Is mapserver not able to handle such an GetFeature request, in which a 
PROPERTYNAME parameter is set? 

Thank you for your help and your ideas.

regards 

Daniel

P.S. Here is the .map-file I use:

MAP
        EXTENT 3280310.846135 5237417.972512 3921417.690365 6103136.474612
        PROJECTION
                "init=epsg:31467"
        END
        SIZE 344 442
        IMAGETYPE PNG
        IMAGECOLOR 255 255 255
        UNITS METERS
        STATUS ON
        SHAPEPATH "/ms4w/Apache/htdocs/wfs/daten"
        #----------------WEB-Objekt----------------------------------
        WEB
                IMAGEPATH "/ms4w/apache/htdocs/tmp/"
                IMAGEURL "/tmp/"
                TEMPLATE "template_daniel3.html"
                METADATA
                        "WFS_title"                     "WFS_SHAPE"
                        "WFS_srs"                               "EPSG:31467"
                        "WFS_onlineressource"   
"http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apache/htdocs/WFS/WFS_SHAPE.map";
                END  #METADATA
        END  #WEB
        
        
        LAYER
                NAME "BL"               
                DATA "bundeslaender.shp"
                TYPE POLYGON
                STATUS ON
                PROJECTION
                        "init=epsg:31467"
                END  #Projection
                TEMPLATE template_select.html
                DUMP TRUE
                METADATA
                        "WFS_TITLE"                     "BL"
                        "gml_include_items" "ID,FLAECHE,UMFANG,NAME"
                        "wfs_featureid" "ID"
                END  #Metadata

                CLASS
                        NAME "class1"                   
                        STYLE
                                COLOR 127 191 255
                        END  #Style
                        STYLE
                                OUTLINECOLOR 255 0 0
                                WIDTH 1
                                ANTIALIAS TRUE
                        END  #Style
                END  #Class
        END
        
END


-- 


"Feel free" – 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail

Reply via email to