Answered by:
overlaying georeferenced images

Question
-
I would like to overlay georeferenced images from my Nikon camera on a Bing map. Can someone explain the procedure? Thank you.
Friday, February 13, 2015 9:22 AM
Answers
-
There are a couple of different options for this. If you simply want to position an image on a map as a pushpin to show were it was taken then this is fairly easy and requires a bit of code to do. The first challenge is getting the location information out of the image. Here are a couple of blog posts that show how to do this:
http://danielhindrikes.se/web/get-coordinates-from-photo-with-javascript/
Once you have the location information it’s pretty easy to show this as a pushpin on Bing Maps. Here are a few examples:
https://msdn.microsoft.com/en-us/library/gg427604.aspx
http://www.bingmapsportal.com/ISDK/AjaxV7#Pushpins1
Another option, if the image is taken from an altitude looking down is to stretch the image out over the map as a layer and have it zoom and pan like it's part of the map. If you have all the required position information (altitude, angles and positions of all four corners of the image) for this then this could be done programmatically, but it's unlikely you have this. However, you can generate a tile layer out of the image by using MapCruncher http://research.microsoft.com/en-us/um/redmond/projects/mapcruncher/. This tool lets you georeference points on an image and then stretches it out and breaks it into a tile layer. You can find a tutorial on how to use this tool and overlay the tiles on Bing Maps here: http://build-failed.blogspot.com/2012/03/custom-map-tiles-part-1.html
http://rbrundritt.wordpress.com
- Proposed as answer by Ricky_Brundritt Saturday, February 14, 2015 12:05 AM
- Marked as answer by Ricky_Brundritt Monday, April 27, 2015 8:18 PM
Saturday, February 14, 2015 12:05 AM
All replies
-
What kind of Bing map? A WPF app or a web page or...?
If it's a WPF Bing map then you simply make a MapLayer, use the .AddChild on the later to place your image (I presume it's in an Image object), then add the map layer to the map. You'll need the latitude/longitude to do the AddChild.
Friday, February 13, 2015 6:28 PM -
There are a couple of different options for this. If you simply want to position an image on a map as a pushpin to show were it was taken then this is fairly easy and requires a bit of code to do. The first challenge is getting the location information out of the image. Here are a couple of blog posts that show how to do this:
http://danielhindrikes.se/web/get-coordinates-from-photo-with-javascript/
Once you have the location information it’s pretty easy to show this as a pushpin on Bing Maps. Here are a few examples:
https://msdn.microsoft.com/en-us/library/gg427604.aspx
http://www.bingmapsportal.com/ISDK/AjaxV7#Pushpins1
Another option, if the image is taken from an altitude looking down is to stretch the image out over the map as a layer and have it zoom and pan like it's part of the map. If you have all the required position information (altitude, angles and positions of all four corners of the image) for this then this could be done programmatically, but it's unlikely you have this. However, you can generate a tile layer out of the image by using MapCruncher http://research.microsoft.com/en-us/um/redmond/projects/mapcruncher/. This tool lets you georeference points on an image and then stretches it out and breaks it into a tile layer. You can find a tutorial on how to use this tool and overlay the tiles on Bing Maps here: http://build-failed.blogspot.com/2012/03/custom-map-tiles-part-1.html
http://rbrundritt.wordpress.com
- Proposed as answer by Ricky_Brundritt Saturday, February 14, 2015 12:05 AM
- Marked as answer by Ricky_Brundritt Monday, April 27, 2015 8:18 PM
Saturday, February 14, 2015 12:05 AM