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.8K All Categories
- 5.7K Features Discussion
- 345 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 636 GM Script Language
- 54 User Scripts
- 114 GPS Features
- 417 Projection Questions
- 825 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 178 Announcement and News
- 912 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 569 Other Discussion
- 131 GIS Data Sources
- 27 Global Mapper Showcase
- 238 How I use Global Mapper
- 107 Global Mapper Forum Website