Skip to content

Commit

Permalink
Dynamic fallback resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
tongning committed Sep 13, 2019
1 parent 3465424 commit aaed915
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions DownloadRunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,13 @@ def download_panorama_images(storage_path, pano_list):
def download_single_pano(storage_path, pano_id):
base_url = 'http://maps.google.com/cbk?'
pano_xml_path = os.path.join(storage_path, pano_id[:2], pano_id + ".xml")
image_width = 16384
image_height = 8192

image_height = 6656
image_width = 13312
if sidewalk_server_fqdn == 'sidewalk-sea.cs.washington.edu':
image_width = 16384
image_height = 8192

try:
(image_width,image_height) = extract_panowidthheight(pano_xml_path)
except Exception as e:
Expand Down

0 comments on commit aaed915

Please sign in to comment.