[mapserver-users] find max value in mapfile?

Tamas Szekeres szekerest at gmail.com
Tue Jun 17 12:51:57 PDT 2008


Mark,

By using the OGR SQL syntax you can utilize various `summarization
operators` like MIN and MAX for example:
http://www.gdal.org/ogr/ogr_sql.html

You can use -sql commandline option of ogrinfo to invoke the SQL based query.

Best regards,

Tamas




2008/6/17 Mark Brooks <mark_brooks at ncsu.edu>:
> We have a shapefile of type 'point'.  Is there a way to find the maximum
> value of all points in this shapefile?  It would be cool to be able to
> do this in the mapfile.  We're using PHP mapscript and want to create a
> dynamic color ramp based on the max/min values of the shapefile.
>
> Mark
>
> _______________________________________________
> 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