Generated scale

Delfos, Jacob jacob.delfos at MAUNSELL.COM
Tue Jan 17 17:26:24 PST 2006


As attribute of the map object, put:

UNITS dd

So you could put that below your EXTENT. I think it must default to
metres, whereas your projection is in degrees. So it thinks that each
degree is only a metre, causing the scale to go wrong.

Regards,

Jacob



> -----Original Message-----
> From: UMN MapServer Users List 
> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of James Net
> Sent: 18 January 2006 09:17
> To: MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: [UMN_MAPSERVER-USERS] Generated scale
> 
> I'm viewing a satellite map of a large area and my mapserver 
> generated scale 
> seems a little wrong. Viewing a whole state (of Australia) mapserver 
> generates a scale ranging from 0 --->  0.001km (see 
> attached). And when I 
> zoom-in the scale bar goes to 0 ---> 0. Any ideas? I thought 
> my scale should 
> be like 1 ---> 1000km. Am I not reading it right? Am I 
> missing or have I 
> stuffed up a map file config option / setting?
> 
> My Map file:
> 
> MAP
>    NAME        WEX
>    IMAGETYPE   jpeg
>    EXTENT      140 -41 150 -33
>    SIZE        600 600
>    DEBUG       ON
>    TRANSPARENT ON
>    IMAGECOLOR  239 242 248 # The background Color.
> 
>    WEB
>       LOG         "mylog.log" # The Debug Log.
>       TEMPLATE    "template.html"
>       IMAGEPATH   "/var/web/tmp/"
>       IMAGEURL    "/tmp/"
>       METADATA
>          wms_title   "WEX"
>          wms_srs     "EPSG:4283"
>          wms_onlineresource   
> "http://myserver/cgi-bin/mapserv?map=wex.map"
>       END
>       MAXSCALE 50.0
>       MINSCALE 0.1
>    END
> 
>    PROJECTION
>       "init=epsg:4283"
>    END
> 
> ...
> 
>    SCALEBAR
>       IMAGECOLOR 0 0 0
>       LABEL
>          COLOR 255 255 255
>          SIZE  TINY
>       END
>       STYLE 1
>       SIZE  100 2
>       COLOR 255 255 255
>       UNITS kilometers
>       INTERVALS   1
>       TRANSPARENT TRUE
>       STATUS      ON
>    END
> 
> ...
> LAYER stuff
> ...
> END # EOF
> 
> 
> Thanks in advance!
> 
> _________________________________________________________________
> Start something musical - 15 free ninemsn Music downloads! 
> http://ninemsn.com.au/share/redir/adTrack.asp?mode=click&clien
> tID=667&referral=HotmailTaglineNov&URL=http://www.ninemsn.com.
> au/startsomething
> 



More information about the MapServer-users mailing list