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
On 9/3/2010 9:08 AM, Mark Volz wrote:
> Andy,
>
> 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
Ah, bummer.
Where in the process are we talking? The beginning? They open a web
browser with url http://.../map=a.map&pin=badmask?
Or you are generating the map, know the pin, but need to display the bad
mask instead of the good?
Humm... still using geoMoose? So the backend is cgi w/shapefiles?
-Andy
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users