[mapserver-users] total values from a shapefile?

2009-04-28 Thread Mark Volz
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

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]

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

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

2009-04-28 Thread Mark Volz
: [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