[Mapserver-users] Calculate Scale

Eric Bridger eric at gomoos.org
Thu Apr 15 10:43:30 PDT 2004


Hmmm. Not sure why you would ever set the SCALE in a map file. It
changes depending on the current maps extent, so it changes every time
you zoom in or out.

It is optional in a map file. Just leave it out.

To find the scale use the [scale] template variable in your template.

On Thu, 2004-04-15 at 11:48, Irene Pérez wrote:
> How to get the scale of a map?
>  
> In my map file:
>  
> NAME CONSULTRANS
> IMAGETYPE     PNG
> EXTENT   -18.159679 27.635367 4.327256 43.788873
> SIZE 600 450
> SHAPEPATH     "/home/ejemplos/data/"
> SYMBOLSET  "/home/ejemplos/etc/symbols_mapinfo.sym"
> IMAGECOLOR   255 255 255
> FONTSET  "/home/ejemplos/consultrans/etc/fonts.txt"
> UNITS dd 
> SCALE ???????
>  
> Can I know what is the scale of the map? The units are DD...
>  
> I'm trying all. 
>  
>  
>  
>  
> 
> 		
> ---------------------------------
> Correo Yahoo!: 6MB, más protección contra el spam ¡gratis!






More information about the MapServer-users mailing list