Skip to content

Satellite/Aerial Image Retrieval: using Bing maps tile system to automatically download aerial imagery (maximum resolution available) given a latitude, longitude bounding box.

Notifications You must be signed in to change notification settings

S010MON/Satellite-Aerial-Image-Retrieval

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Satellite Aerial Image Retrieval


How to run the code:

Please make sure the following environment is configured:

  1. Python 3.5+
  2. urllib
  3. PIL

To run the script, simply input the following commands in Terminal:

python3 ProbeMapMatching.py lat1, lon1, lat2, lon2,

where (lat1, lon1) is the latitude and longitude of the upper-left coordinate, and (lat2, lon2) is the latitude and longitude of the lower-right coordinate.

In my code, my program tolerates arbitrary coordinates input, as long as the two coordinates are diagonal. My program will figure out to transform the input coordinates to the standardized one before processing.

The retrieved image will be stored in .\output folder. The name of the image will follow the 'aerialImage_{}.jpeg' ending with the retrieval level.

Some sample retrievals could be:

  1. Chicago Navy Pier:
python3 aerialImageRetrieval.py 41.893812 -87.615195 41.885108 -87.597778

  1. Chicago Cloud Gate:
python3 aerialImageRetrieval.py 41.882981 -87.623496 41.882397 -87.623076

  1. Greater Chicago Area:
python3 aerialImageRetrieval.py 41.968574 -87.752519 41.774917 -87.566837

  1. Eiffel Tower in Paris:
python3 aerialImageRetrieval.py 48.859261 2.293362 48.856953 2.296194

  1. The Palace Museum in China:
python3 aerialImageRetrieval.py 39.922856 116.391459 39.913278 116.402509


Source Files:

  1. tilesystem.py: This module implements a set of static methods used for Bing maps tile system. All the methods in sample C# code in https://msdn.microsoft.com/en-us/library/bb259689.aspx, have been implemented by my own understanding.
  2. aerialImageRetrieval.py: This module is used to retrieve satellite/aerial image. Given a bounding box, which is composed of left up corner coordinate (latitude, longitude) and right down corner coordinate (latitude, longitude). Return an aerial imagery (with maximum resolution available) downloaded from Bing map tile system. The aerial image will be strictly cropped based on the size of bounding box. Also, if the given bounding box is too large and with the maximum resolution available, the retrieval image could be too large. So I set a maximum image size (8192 * 8192 pixels), approximately 256MB, to filter too large images.

About

Satellite/Aerial Image Retrieval: using Bing maps tile system to automatically download aerial imagery (maximum resolution available) given a latitude, longitude bounding box.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%