Generated scale
Paul Spencer
pspencer at DMSOLUTIONS.CA
Tue Jan 17 17:31:11 PST 2006
try adding UNITS DD to the MAP object
Paul
On 17-Jan-06, at 8:17 PM, James Net wrote:
> 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&clientID=667&referral=HotmailTaglineNov&URL=http://
> www.ninemsn.com.au/startsomething
> <sb11375463746959.jpg>
+-----------------------------------------------------------------+
|Paul Spencer pspencer at dmsolutions.ca |
+-----------------------------------------------------------------+
|Applications & Software Development |
|DM Solutions Group Inc http://www.dmsolutions.ca/|
+-----------------------------------------------------------------+
More information about the MapServer-users
mailing list