ThinkGeo.com    |     Documentation    |     Premium Support

Calculating Latitude and Longitude from meter

Hi,


If I have shapefile data with geographic unit of meters, how do I get the latitude and longitude at any given point on the map?


 


 



Hi, 
  
 If you have data in meters, then it means that your shapefile is "projected". 
 Do you know the projection of your shapefile ? 
  
 Patrick.

Thanks for your reply. I belive the projection is Transverse_Mercator


PROJCS["NAD_1983_UTM_Zone_18N",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137,298.257222101]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",-75],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0],UNIT["Meter",1]]



Hi, 
  
 Something like that is what you’re looking for, Yale may confirm the projection epsg… 
  
 Proj4Projection ProjectionToWGS84 = new Proj4Projection( 
               Proj4Projection.GetEpsgParametersString(26918) 
               ProjectionHelper.getParameterString (4326)); 
 ProjectionToWGS84.Open(); 
  
 ProjectionToWGS84.ConvertToExternalProjection(X, Y); 
  
 Hope this helps, 
 Patrick.

Patrick Thanks for your sharing!


The string provided is same with SRID 26918 projection. Please take a reference here.
 
spatialreference.org/ref/epsg/26918/
 
Let me know if you have more questions.
 
Thanks.
 
Yale

Thank you

welcome, Madduri! 
  
 Any more questions just let me know! 
  
 Thanks. 
  
 Yale