Allow shpext tag to take arguments to expand, format and project shape extents
The shpext tag current currently outputs the bbox for a given query feature as a space delimited string. It is desirable to give users more control over the presentation of that string. We need to support a few simple attributes such as:
- expand: given in map units (pre-projection) or as a percentage (this is not a true buffer operation)
- format: define coordinate and point seperators (similar to shpxy tag)
- projection: see [shpxy ...] tag
- escaping: see [shpxy ...] tag
This is basically identical support to what exists to the shpxy tag. An unattributed [shpext] tag would work just as it does now.
Steve
Change History
(6)
Milestone: |
→ 5.2 release
|
Status: |
new → assigned
|
Type: |
defect → enhancement
|
Component: |
MapServer CGI → MapServer Documentation
|
Owner: |
changed from sdlime to jmckenna
|
Status: |
assigned → new
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
Committed a version of this in r7625 that allows for:
Still todo's are projection and support for percentage expansion. I'll file separate bugs for those in the next release. Support is available for the following tags:
Eventually we can deprecate a number of tags including all the [..._esc] extent tags and all those used to expose individual parts of an extent (e.g. [shpext_minx]).
Examples:
would output:
and:
would output:
Moving to a documentation enhancement now.
Steve