[mapserver-users] formatting query and identify results
Lime, Steve D (DNR)
Steve.Lime at state.mn.us
Tue Sep 7 11:01:32 PDT 2010
You can embed javascript in a template result but it's up to the client to
execute it (MapServer won't).
Steve
-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Volz
Sent: Friday, September 03, 2010 9:09 AM
To: Andy Colson
Cc: mapserver-users at lists.osgeo.org
Subject: RE: [mapserver-users] formatting query and identify results
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
-----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
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
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list