Opened 18 years ago
Closed 16 years ago
#1718 closed enhancement (fixed)
Allow disabling geometry output for WFS
Reported by: | sdlime | Owned by: | sdlime |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | WFS Server | Version: | 4.10 |
Severity: | minor | Keywords: | |
Cc: |
Description (last modified by )
In some cases one might not want to output the geometry associated with a feature as part of a WFS response. I propose taking advantage of the gml_geometries metadata element. That element allows you to define the geometry(ies) associated with a layer (MapServer will create a default if not set). By setting that value to "none" that would trigger MapServer to: - ommit the geometry from the describeFeatureType response - ommit the geometry (and bounding box) from a WFS query response I've tested the proposed solution and it works nicely and could be taken advantage of via WFS filters that exclude certain properties by setting metadata on-the-fly.
Change History (6)
comment:2 by , 18 years ago
Status: | new → assigned |
---|
This fix can be applied to the GML writer for WMS too and would solve the geometry output problem defined in both of the bugs you reference. The include/exclude stuff also applies to WMS. Steve
comment:3 by , 18 years ago
Cool. And then to really address all issues we should add a way to specify through which service protocols a given layer should be available, along the lines of the SERVICES WMS|WFS|WCS|NONE that was suggested in bug 337.
comment:4 by , 18 years ago
I did commit the geometry hiding code for both WMS or WFS to CVS HEAD. Steve
comment:5 by , 18 years ago
Dan: Another bug should be created for the services idea (SERVICES WMS|WFS|WCS|NONE). Then we can shut down this bug and those older ones. Sound reasonable? Steve
comment:6 by , 16 years ago
Description: | modified (diff) |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
This was fixed long ago and if those other issues warrant tickets then I'm sure they'll show up... Closing.
Steve
Note:
See TracTickets
for help on using tickets.