Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Using ArcGIS 10, is it possible to click anywhere on the map (projected to British National Grid), but return the coordinates in WGS84 lat long? Alternatively, when will Streetview work with OS Eastings and Northings?

share|improve this question
    
Please expand "Alternatively, when will Streetview work with OS Eastings and Northings?" on ordnancesurvey.co.uk/oswebsite/products/streetview is in Eastings and Northings –  Mapperz Mar 11 '11 at 15:10
    
By streetview are you referring to Google Maps streetview, or something else? –  jvangeld Mar 11 '11 at 19:43
    
I should have specified Google Streetview, and not the OS product. Apologies for the confusion. –  user2285 Mar 18 '11 at 10:39
add comment

3 Answers 3

up vote 1 down vote accepted

To do this with arcobjects you could implement ITool. If using 10.0, you might find it easier to create a tool add-in.

In ITool.OnMouseDown take the x and y and convert it to an IPoint using IDisplayTransformation.ToMapPoint.

I'm not that familiar the the British National Grid, but it appears that a datum transformation is required when projecting to WGS84.

So, use ISpatialReferenceFactory.CreateGeoTransformation to create the appropriate datum transformation, and ISpatialReferenceFactory.CreateGeographicCoordinateSystem to create the target (WGS84) spatial reference.

Finally, cast the point into IGeometry5 and call ProjectEx, passing the target spatial reference and the geotransformation. IPoint.X and IPoint.Y should then represent longitude and latitude of the point where the user clicked.

share|improve this answer
    
British National Grid does require datum transformation - en.wikipedia.org/wiki/… –  Mapperz Mar 11 '11 at 21:03
add comment

If you use the identify tool to click anywhere on the map, you can change the type of units displayed in the location bar. There is a (very tiny!) button at the end of the location bar that when clicked will open a menu displaying a list of unit types to display. Simply select Decimal Degrees or D/M/S to get your lat/long.

edit: Here's a screenshot: Set Identify Units

Another simple option is to switch your display units to Decimal Degrees (Data Frame Properties, General tab - set Display: to Decimal degrees). Then you can see the units in DD displayed at the bottom/right as you move the mouse cursor.

share|improve this answer
add comment

This google maps based tool does the job, too. http://www.winddirecttools.net/old/

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.