Lucian Bancescu wrote: > A pretty straightforward way to obtain the extent of a layer is using > ogrinfo, which comes with gdal-ogr tool. > A possible usage: > / > ogrinfo /path/to/shapefiles layername | grep Extent > / Can you provide the MapScript to add to a layer so each layer has it own extent?