[mapserver-users] formatting query and identify results
Andy Colson
andy at squeakycode.net
Fri Sep 3 07:01:34 PDT 2010
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
other.
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".
-Andy
More information about the MapServer-users
mailing list