Thanks, it worked.
From: Paul Spencer <[EMAIL PROTECTED]>
To: James Net <[EMAIL PROTECTED]>
CC: [email protected]
Subject: Re: [UMN_MAPSERVER-USERS] Generated scale
Date: Tue, 17 Jan 2006 20:31:11 -0500
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 [EMAIL PROTECTED] |
+-----------------------------------------------------------------+
|Applications & Software Development |
|DM Solutions Group Inc http://www.dmsolutions.ca/|
+-----------------------------------------------------------------+
_________________________________________________________________
ASUS M5 Ultra-slim lightweight is Now $1999 (was $2,999)
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fwww%2Easus%2Ecom%2Eau%2F&_t=752129232&_r=Hotmail_tagline_23Nov05&_m=EXT