Ticket #4063 (closed defect: invalid)
trimlast does not work in templated JSON output
| Reported by: | davidfawcett | Owned by: | sdlime |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.0.2 release |
| Component: | MapServer C Library | Version: | 6.0 |
| Severity: | normal | Keywords: | json template trimlast |
| Cc: | sdlime |
Description
In the template-driven output section of the MapServer docs, the geoJSON example demonstrates the use of 'trimlast' to remove the trailing delimiter in the output.
http://mapserver.org/output/template_output.html
When trying to use this functionality in MapServer 6.0.1, I can't get trimlast to work. Others have also had the same issue.
http://www.osgeo.org/pipermail/mapserver-users/2011-September/070257.html
Attached is a simple map file with a shapefile containing one feature (the state of MN). The URL used to make the query call is:
http://localhost/cgi-bin/mapserv?mode=nquery&map=/test/trimlast.map&mapxy=-94+45&layers=state

