Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow disabling geometry output for WFS #1718

Closed
mapserver-bot opened this issue Apr 3, 2012 · 6 comments
Closed

Allow disabling geometry output for WFS #1718

mapserver-bot opened this issue Apr 3, 2012 · 6 comments

Comments

@mapserver-bot
Copy link

Reporter: sdlime
Date: 2006/03/21 - 17:09
Trac URL: http://trac.osgeo.org/mapserver/ticket/1718

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.
@mapserver-bot
Copy link
Author

Author: dmorissette
Date: 2006/03/21 - 22:23

Sounds like a good idea. BTW, how would that relate to the options discussed in
bug 300 comment 7 for instance? Bug 337 also contains related discussions.

@mapserver-bot
Copy link
Author

Author: sdlime
Date: 2006/03/21 - 22:49

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

@mapserver-bot
Copy link
Author

Author: dmorissette
Date: 2006/03/21 - 23:35

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.

@mapserver-bot
Copy link
Author

Author: sdlime
Date: 2006/03/22 - 22:49

I did commit the geometry hiding code for both WMS or WFS to CVS HEAD.

Steve

@mapserver-bot
Copy link
Author

Author: sdlime
Date: 2006/03/28 - 09:23

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

@mapserver-bot
Copy link
Author

Author: sdlime
Date: 2008/07/02 - 06:43
This was fixed long ago and if those other issues warrant tickets then I'm sure they'll show up... Closing.

Steve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants