draw(); $image_url=$image->saveWebImage(); ?> US time zones

This example uses two data files, both from the USGS National Atlas, and also demonstrates an embedded legend and scalebar.

To find the categories for the legend, I used the ogrinfo utility twice. ogrinfo -a -summary timeznp020.shp let me see what fields were available, and ogrinfo -a timeznp020.shp|grep SYMBOL|sort -u told me what all of the unique values were so that I could build my CLASS definitions in usa2.map.

Data layer download

Source for all recipes: http://www.mobilegeographics.com/mapserver/MSrecipes.tar.gz

return to Mapserver Recipes