Opened 19 years ago
Closed 19 years ago
#1302 closed defect (fixed)
wfs_service parameters is redundant
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | high | Milestone: | 4.6 release |
Component: | WFS Client | Version: | 4.4 |
Severity: | normal | Keywords: | |
Cc: |
Description
In this layer def: LAYER GROUP testing NAME wfs_test STATUS ON TYPE POINT CONNECTIONTYPE WFS CONNECTION "http://map.ns.ec.gc.ca/envdat/map.aspx?" LABELITEM "envdat:Station_ID" CLASS STYLE OUTLINECOLOR 150 150 0 COLOR 250 250 0 END LABEL SIZE SMALL COLOR 255 255 255 POSITION UR END END METADATA "wfs_srs" "EPSG:4326" "wfs_version" "1.0.0" "wfs_typename" "envirodat" "wfs_request_method" "GET" END END I get an error: msBuildWFSLayerGetURL(): WFS connection error. Metadata wfs_service must be set in the layare <br> I understand the need for the wfs_Service parameter, but this is inconsistent with the WMS implementation. I assume in the WMS implementation it infers wfs_service=WMS from the layer's connectiontype. It would be nice to have it infer it here as well. (should I log the "layare" typo too? :)
Change History (9)
comment:2 by , 19 years ago
Status: | new → assigned |
---|
I have fixed the typo. With respect to the wfs_service metadata, I would agree with Tyler that it seems redundant (and useless). Assefa, can you remember why this was added? It seems to me that since the CONNECTIONTYPE is WFS, it is implied that the service that we connect to has to be WFS as well. Can it be anything else? If yes then if the value is not set we should at least default to WFS.
comment:3 by , 19 years ago
Milestone: | → 4.6 release |
---|
comment:5 by , 19 years ago
Not sure why the wfs_service was necessary. It certainly can be deduced from the connectiontype. There is no other possible value than WFS. Here are the changes that I propose : * ignore the wfs_service metadata and always set the service parameter to WFS * update the doc to depricate usage of wfs_service Note : the problem decribed initally by Tyler only happens when generating a wfs request using the Get methid. The xml encoded post method always set the service to WFS. If no comments I will do the changes.
comment:6 by , 19 years ago
I agree with removing the wfs_service metadata. With respect to docs, since we are removing/ignoring the parameter completely this is more than just deprecating, so I would simply delete it from the docs without any special mention.
comment:7 by , 19 years ago
Cc: | added |
---|---|
Owner: | changed from | to
Status: | assigned → new |
Fixed according to comment #4. Assign to Jeff for documentation update
comment:8 by , 19 years ago
Status: | new → assigned |
---|
comment:9 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
removed all wfs_service metadata references. already live on umn site. Also created a restructuredtext version of the wfs-client doc (my first attempt with reST) at http://ms.gis.umn.edu:8081/ms_plone/docs/howto/wfs_client also tested a mapfile without the wfs_service metadata, works nicely
Note:
See TracTickets
for help on using tickets.