[Mapserver-users] Re: no legend

Jan Hartmann jhart at frw.uva.nl
Thu Mar 18 09:52:49 EST 2004


Elisabeth Nolz wrote:

> i did all the changes you advised me to do: i changed the KEYSIZE, NAMEd
> each CLASS and set the STATUS DEFAULT for each layer. but that didn't
> improve anything. the only thing that changed is, that now all the names
> of the classes are displayed in the legend.
> i also tried to change the EXTENT. but that didn't help either. and i
> don't know how to smooth out the "mismatch between the EXTENT and the
> layer's boundaries".


Extent is defined as:
EXTENT <minx> <miny> <maxx> <maxy>

Looking at your extent:

EXTENT 1100 340050 2000 339480


shows that miny > maxy. You certainly have to reverse the second and 
fourth value. (Shouldn't this throw an error?).

I don't know what coordinate system this is, but if it is in meters the 
region is 900m wide and 570m long. What I meant by "matching" was that 
the coordinate system of the vector or raster file you are using has to 
be in the same units and region as the EXTENT. For example, if you data 
are in LatLong, you will get a blank map with this extent. If you have 
GDAL installed, you can try "gdalinfo" or "ogrinfo" on your file to see 
what its extents are. If you don't have them , you can download them 
from www.remotesensing.org/gdal and www.remotesensing.org/ogr. 
Personally, I couldn't do without them.


Jan
Jan



More information about the mapserver-users mailing list