RE: [mapserver-users] ticket for 'trimlast'?

2011-12-13 Thread Fawcett, David (MPCA)
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.k...@gmail.com] 
Sent: Thursday, October 20, 2011 4:15 PM
To: Fawcett, David (MPCA)
Cc: mapserver-users@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



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] ticket for 'trimlast'?

2011-10-20 Thread Fawcett, David (MPCA)
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.

David.


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] ticket for 'trimlast'?

2011-10-20 Thread Puneet Kishor

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

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users