[mapserver-users] formatting query and identify results

Mark Volz MarkVolz at co.lyon.mn.us
Fri Sep 3 10:08:58 EDT 2010


Thank you for your reply.

I could add a new column to the data to create a new mask so that the
application will work.  However, once I am complete with the development of
the application, I will no longer be in control of the data.  Since the data
source has the wrong mask, any data updates from my client will not include
the correct mask. 

Mark Volz
GIS Specialist

-----Original Message-----
From: Andy Colson [mailto:andy at squeakycode.net] 
Sent: Friday, September 03, 2010 9:02 AM
To: Mark Volz
Cc: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] formatting query and identify results

On 9/3/2010 8:12 AM, Mark Volz wrote:
> Hello,
> I have an application that I am working on. The parcel id is in a
> xx.xxx.xxx.x format, however I need to change the format to xx-xxx-xxx-x
> for an external tax database application. I will not be updating the
> data, and therefore I will need to make this change through code. I have
> worked on previous applications using java. For example I would use
> parcel = ( this.substring(0,2) + "-" + this.substring(3,9). However,
> unless I am wrong, mapserver does not appear to pass javascript through
> templates.
> Is there a way that I can convert the format of numbers directly in the
> template?
> Thanks
> Mark Volz
> GIS Specialist

Not sure if this is relevant, but I have kinda the same problem, some of 
my data has parcel masking and some does not.  I usually add a new 
column (I'm use PostGIS, not shapefiles, but I assume you could still do 
it) and set it with the masking I'd like to display.  So I have a pin 
field and a display_pin field, and can query/join on one and display the 

I know you said you would not update the data, but if I carefully read 
that as not "modify the existing pin", then adding a new column would 
not count as "modify the existing pin".


More information about the mapserver-users mailing list