[ka-Map-users] Displaying extent in different units than map units?

donny wicaks donnywicaks at yahoo.com
Fri Mar 13 03:27:29 EST 2009


Hi, Bob

perhaps you can try these steps:
1. in your *.map file, set UNITS part into DD and set PROJECTION into 'proj=longlat' like below:
MAP
  NAME DEMO
  # Map image size
  SIZE 500 300
  UNITS dd
  TRANSPARENT ON
  
  FONTSET etc/font.txt
  
  EXTENT 93.812567 -17.025526 143.016024 12.672460
  PROJECTION
    'proj=longlat'
    'ellps=WGS84'
    'datum=WGS84'
    'no_defs'
    ''
  END

2. and to display the extent in decimal degrees, perhaps you should change 'Map Units' of your original map data
from 'Meters' into 'Decimal Degrees' 
this can be done by using any GIS software, for example: QuantumGIS
and then, set the same EXTENT in your *.map file and your map data's extent

i hope this helps. 
because it works in my ka-map application, i have map data that are already in 
decimal degree format. and above is my *.map file setting

Regards
donny


--- On Fri, 3/13/09, Bistrais, Bob <Bob.Bistrais at maine.gov> wrote:
From: Bistrais, Bob <Bob.Bistrais at maine.gov>
Subject: [ka-Map-users] Displaying extent in different units than map units?
To: ka-map-users at lists.maptools.org
Date: Friday, March 13, 2009, 2:55 AM




 
 






I am building an application where all the data is in UTM
meters.  In my .map file, I have the Extent and Units parameters set that way. 
The user would like to see the cursor location and extent displayed in Decimal
Degrees.  Is this possible to do in Ka-Map? 



 

_______________________________________________
ka-Map-users mailing list
ka-Map-users at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/ka-map-users



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ka-map-users/attachments/20090313/bc395119/attachment.htm 


More information about the ka-Map-users mailing list