draw(); $image_url=$image->saveWebImage(); ?> US state boundaries

This is a very simple example using only one data layer, a vector file. You can download the datafile yourself from the USGS National Atlas. The URL for this layer, the US States Boundaries in Shapefile format, is http://edcftp.cr.usgs.gov/pub/data/nationalatlas/statesp020.tar.gz.

This example also draws some unprojected, static text. You can use this technique to label your maps: apply titles, timestamps, or copyright information.

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

return to Mapserver Recipes