Solved

Extract Bing Map extracts based on coordinates list

  • 15 August 2014
  • 1 reply
  • 8 views

Badge
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.
icon

Best answer by jdh 15 August 2014, 17:14

View original

1 reply

Badge +22
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

Reply