Skip to main content
Solved

Extract Bing Map extracts based on coordinates list

  • August 15, 2014
  • 1 reply
  • 42 views

Forum|alt.badge.img
Hi,

 

 

I could you with some pointers on how to extract out a series of aerial jpegs from Bing Maps centered on a Excel list of coordinates,i.e. one 100m x 100m per x/y coordinate.  Is the HTTPFetcher a good starting point?  I will probably need to extract out the same images from Google Maps at a later date.  We have an enterprise license for both Bing and Google.

 

 

Thanks very much.

Best answer by jdh

Your best bet may be to use the static map APIs

 

Bing: http://msdn.microsoft.com/en-us/library/ff701724.aspx

 

Google:  https://developers.google.com/maps/documentation/staticmaps/

 

 

Read in your excel file, generate the url based on the xy coordinate and zoom level using a stringConcatenator and pass to the HTTPFetcher.  A decelerator may be necessary.

 

 

Depending on the coordinate system of your XY points you may need to convert them first.

 

 

I've never used Bing, but for google the target URL for the HTTPFetcher was:

 

http://maps.googleapis.com/maps/api/staticmap?center=@Value(_y),@Value(_x)&size=@Value(size)x@Value(size)&zoom=@Value(zoom)&maptype=satellite

 

 

where _y and _x is my center point lat and long values

 

size is the number of pixels of the resultant image

 

zoom is the required zoom level
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

jdh
Contributor
Forum|alt.badge.img+40
  • Contributor
  • Best Answer
  • August 15, 2014
Your best bet may be to use the static map APIs

 

Bing: http://msdn.microsoft.com/en-us/library/ff701724.aspx

 

Google:  https://developers.google.com/maps/documentation/staticmaps/

 

 

Read in your excel file, generate the url based on the xy coordinate and zoom level using a stringConcatenator and pass to the HTTPFetcher.  A decelerator may be necessary.

 

 

Depending on the coordinate system of your XY points you may need to convert them first.

 

 

I've never used Bing, but for google the target URL for the HTTPFetcher was:

 

http://maps.googleapis.com/maps/api/staticmap?center=@Value(_y),@Value(_x)&size=@Value(size)x@Value(size)&zoom=@Value(zoom)&maptype=satellite

 

 

where _y and _x is my center point lat and long values

 

size is the number of pixels of the resultant image

 

zoom is the required zoom level