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 sdlime)

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:1 by dmorissette, 18 years ago

Owner: changed from mapserverbugs to sdlime
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.

comment:2 by sdlime, 18 years ago

Status: newassigned
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 dmorissette, 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 sdlime, 18 years ago

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

Steve

comment:5 by sdlime, 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 sdlime, 16 years ago

Description: modified (diff)
Resolution: fixed
Status: assignedclosed

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.