Simple question about scalebar.

Dirk-Jan Huisman d.huisman at INGBCC.NL
Thu Jun 2 03:09:13 EDT 2005


Hi,
 
The units of the projection is m. The Extent of your mapfile are m? If
it is, the units of the mapfile should be m.  
 
best regards

-----Oorspronkelijk bericht-----
Van: Krung Saengpole [mailto:saengpole at yahoo.com]
Verzonden: dinsdag 31 mei 2005 20:12
Aan: Dirk-Jan Huisman; mapserver-users at lists.umn.edu
Onderwerp: Re: [UMN_MAPSERVER-USERS] Simple question about scalebar.


Hi,
 
Thank you for your response. My map file is simple as below:
 
MAP
 SHAPEPATH "d:\work\gis\kornburi\data\"
 FONTSET "./fonts/fonts.list"
 SYMBOLSET "./symbols/symbol.sym"
 EXTENT 730000 1550000 935000 1750000
 UNITS kilometers
 SIZE 600 450
 IMAGETYPE gif
 TRANSPARENT on
SCALEBAR
 POSITION ll
 STATUS off
 COLOR 255 0 255
 IMAGECOLOR 255 255 0
 UNITS KILOMETERS
 INTERVALS 3
 STYLE 0
END
PROJECTION
    "proj=utm"
    "zone=47"
    "a=6377276.345"
    "b=6356075.413"
    "towgs84=209,818,290,0,0,0,0"
    "units=m"
    "no_defs"
END
LAYER
...
...
END
 
My problem is that scalebar showed wrong distance. Everything is ok but
scalebar. I told you last message that true distance it should be 18.3
km but scalebar showed 18300 km. I thought if this number was correct,
then the unit should be meter not kilometer. 

Dirk-Jan Huisman <d.huisman at INGBCC.NL> wrote:

Hi,
 
It's not clear what goes wrong. Include some code of your mapfile. What
are the map units and the scalebar units?
 



 ----Oorspronkelijk bericht-----
Van: Krung Saengpole [mailto:saengpole at YAHOO.COM]
Verzonden: maandag 30 mei 2005 16:34
Aan: MAPSERVER-USERS at LISTS.UMN.EDU
Onderwerp: [UMN_MAPSERVER-USERS] Simple question about scalebar.



Dear all,
 
Whether or not I embeded scalebar in map, it showed wrong distance, e.g.
it should be 18.3 km but it showed 18300 km. Nontheless I use projection
or not. What I have to specially set to get right scalebar?
 
TIA
 
Krung

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com


------------------------------------------------------------------------
-----------
Prins Mauritsstraat 17, Postbus 75, 4140 AB Leerdam
Telefoon (0345) 63 96 96, Fax (0345) 63 96 66,
E-mail  <mailto:post at ingbcc.nl> post at ingbcc.nl
Internet  <http://www.ingbcc.nl/> www.ingbcc.nl
------------------------------------------------------------------------
-----------
Deze e-mail en de eventuele bestanden die meegezonden zijn, zijn
vertrouwelijk en alleen bedoeld voor het gebruik door de individu of
instelling aan wie deze e-mail geadresseerd is. Als u deze e-mail
onterecht ontvangen heeft wilt u het ons dan laten weten.
------------------------------------------------------------------------
-----------
This e-mail and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they are
addressed. If you have received this e-mail in error please notify the
system manager.
------------------------------------------------------------------------
-----------



  _____  

Do You Yahoo!?
Yahoo! Small Business - Try
<http://us.rd.yahoo.com/evt=31637/*http://smallbusiness.yahoo.com/resour
ces/> our new Resources site!


------------------------------------------------------------------------------
Prins Mauritsstraat 17, Postbus 75, 4140 AB Leerdam
Telefoon (0345) 63 96 96, Fax (0345) 63 96 66,
E-mail post at ingbcc.nl
Internet www.ingbcc.nl
------------------------------------------------------------------------------
Deze e-mail en de eventuele bestanden die meegezonden zijn, zijn vertrouwelijk en alleen bedoeld voor het gebruik door de individu of instelling aan wie deze e-mail geadresseerd is. Als u deze e-mail onterecht ontvangen heeft wilt u het ons dan laten weten.
------------------------------------------------------------------------------
This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the system manager.
------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050602/96d56185/attachment.html


More information about the mapserver-users mailing list