This project has moved and is read-only. For the latest updates, please go here.

GPS (lat lng) point from Map.ImageToWorld

Topics: SharpMap Project, SharpMap v0.9 / v1.x
May 12, 2015 at 11:28 AM
Hello all,

How I can get GPS coordinates from click on a map?
var p = mapImage1.Map.ImageToWorld(e.Location);

GeoAPI.Geometries.Coordinate Coordinate = ????
May 12, 2015 at 12:33 PM
You need to set up a coordinate transformation from your map's spatial reference to wgs84.
You can read in the HowTo section of the documentation tab what you need to do.
May 12, 2015 at 2:29 PM
I found, thanks