Re: [mapserver-users] total values from a shapefile?

2009-04-28 Thread Steve Lime
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
3d56274b4a7874468f58faddbfd09801073a3...@llmhs02.r8nssis.local, Mark Volz
markv...@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
 
  

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] total values from a shapefile?

2009-04-28 Thread Jeff McKenna

Mark Volz wrote:
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?



Hi Mark,

Not that I'm aware of.  Even if it could, I would always pre-process the 
data, so MapServer doesn't have to execute those extra functions 
on-the-fly, and therefore speed up my application.


-jeff



--
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] total values from a shapefile?

2009-04-28 Thread Mark Volz
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.l...@dnr.state.mn.us] 
Sent: Tuesday, April 28, 2009 11:40 AM
To: Mark Volz; mapserver-users@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
3d56274b4a7874468f58faddbfd09801073a3...@llmhs02.r8nssis.local, Mark Volz
markv...@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
 
  

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users