[mapserver-users] total values from a shapefile?

Mark Volz MarkVolz at co.lyon.mn.us
Tue Apr 28 12:53:24 EDT 2009


Steve,

Thank you for your reply.  I will be using it for templates.

Mark Volz
GIS Specialist
Lyon County, MN
-----Original Message-----
From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] 
Sent: Tuesday, April 28, 2009 11:40 AM
To: Mark Volz; mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] total values from a shapefile?

Depends, are you talking about for labeling, expression evaluation or
template display?

For labeling: No.

For expression evaluation: Yes (using logical expressions you can do
EXPRESSION ([item1] + [item2] > 50)

For templates: Yes for HTML via javascript, e.g.:

<script ...>
  var total = [item1] + [item2];
  document.write(total);
</script>

Steve

>>> On 4/28/2009 at 11:26 AM, in message
<3D56274B4A7874468F58FADDBFD09801073A368D at llmhs02.r8nssis.local>, "Mark Volz"
<MarkVolz at co.lyon.mn.us> wrote:
> Hello,
> 
>  
> 
> Can map server combine two fields and display a total for the values, or do
> we need to total the values ahead of time in the shapefile?
> 
>  
> 
> Mark Volz
> 
> GIS Specialist
> 
> Lyon County, MN
> 
>  



More information about the mapserver-users mailing list