Convert unit ground XY/lat long
Hello,
I'm a little confused about the units of measurement.
For the moment, I display the coordinates of mouse in the bottom of the screen with the function "GM_GM_ConvertCoordPixelToGround". I thought this function get me X and Y ground coordinates in my projection system.
But I did research to display lat/long too and I'm not sure now.
I need to display X/Y ground coordinates and lat/long coordinates, is it possible to have both times?
Best regards,
Tristan
I'm a little confused about the units of measurement.
For the moment, I display the coordinates of mouse in the bottom of the screen with the function "GM_GM_ConvertCoordPixelToGround". I thought this function get me X and Y ground coordinates in my projection system.
But I did research to display lat/long too and I'm not sure now.
I need to display X/Y ground coordinates and lat/long coordinates, is it possible to have both times?
Best regards,
Tristan
Comments
-
Tristan,
Yes, use GM_ConvertCoordPixelToGround to get the coordinates in your current projection, then use GM_ProjectPoint to project that ground location to a Geographic (lat/lon) projection.
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
Blue Marble Geographics for Coordinate Conversion, Image Reprojection and Vector Translation -
Mike,
How can I have a display with x° y' z" N, a° b' c" E ?
Best regards,
Tristan -
I found how convert arc degrees in degrees minutes seconds, sorry for the previous post.
Tristan -
Actually,
I don't know how to know if my value in degree, minute, second is North or South for longitude and East or West for latitude.
I convert from pixel to "mercator WGS84 meters" and this to "Geographic (lat/long) WGS84 arc degrees". I modify this last to have the format degree, minute, second but I don't know if it's North or South and East or West.
Best regards,
Tristan -
Tristan,
If your longitude/X is negative it is West, if it's positive it's East. For latitude/Y, negative is South, positive is North.
Thanks,
Mike
Global Mapper Guru
geohelp@bluemarblegeo.com
Blue Marble Geographics for Coordinate Conversion, Image Reprojection and Vector Translation
Categories
- 12.7K All Categories
- 5.6K Features Discussion
- 342 Downloading Imagery
- 1.3K Elevation Data
- 380 Georeferencing Imagery Discussion
- 628 GM Script Language
- 53 User Scripts
- 113 GPS Features
- 414 Projection Questions
- 819 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 177 Announcement and News
- 908 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 562 Other Discussion
- 129 GIS Data Sources
- 27 Global Mapper Showcase
- 233 How I use Global Mapper
- 107 Global Mapper Forum Website