[mapserver-users] ticket for 'trimlast'?
Fawcett, David (MPCA)
David.Fawcett at state.mn.us
Tue Dec 13 08:49:13 PST 2011
Steve Lime has narrowed this bug down to the parsing of single quotes in template tags.
The trimlast functionality will work if you use double quotes on the character to be trimmed.
e.g.
This works: [feature trimlast=","]
This doesn't: [feature trimlast=',']
I will file a ticket for a change in the documentation at: http://mapserver.org/output/template_output.html
David.
-----Original Message-----
From: Puneet Kishor [mailto:punk.kish at gmail.com]
Sent: Thursday, October 20, 2011 4:15 PM
To: Fawcett, David (MPCA)
Cc: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] ticket for 'trimlast'?
On Oct 20, 2011, at 4:06 PM, Fawcett, David (MPCA) wrote:
> I also can't get trimlast=',' to remove the trailing comma in a json formatted query result.
>
> [resultset layer=stations]
> {
> "stations": [
> [feature trimlast=',']
> {
> "name": "[NAME]",
> "stationId": "[STATION_ID
> },
> [/feature]
> ]
> }
> [/resultset]
>
> http://lists.osgeo.org/pipermail/mapserver-users/2011-September/070298.html
>
> I searched for a trac ticket, but didn't see one. I will file one if someone can confirm that this is still a real issue and that a ticket doesn't exist.
>
I can confirm that I experienced it as well.
--
Puneet Kishor
More information about the MapServer-users
mailing list