Skip to content

Commit

Permalink
Remove overlap level in downloader
Browse files Browse the repository at this point in the history
  • Loading branch information
vnmsklnk committed Jan 7, 2024
1 parent 8f31e83 commit 33ebd56
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions aero_vloc/map_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ def __init__(
south_east_lat: float,
south_east_lon: float,
zoom: int,
overlap_level: float,
api_key: str,
folder_to_save: Path,
):
Expand All @@ -41,7 +40,6 @@ def __init__(
:param south_east_lat: Latitude of the southeast point of the map
:param south_east_lon: Longitude of the southeast point of the map
:param zoom: Zoom level of the map
:param overlap_level: Shows how much neighboring images overlap each other. Float between 0 and 1
:param api_key: API key for Google Maps API
:param folder_to_save: Path to save map
"""
Expand All @@ -50,7 +48,6 @@ def __init__(
self.south_east_lat = south_east_lat
self.south_east_lon = south_east_lon
self.zoom = zoom
self.overlap_level = overlap_level
self.api_key = api_key
self.folder_to_save = folder_to_save

Expand Down Expand Up @@ -174,9 +171,9 @@ def download_map(self):
f"{filename} {top_left_lat} {top_left_lon} {bottom_right_lat} {bottom_right_lon}\n"
)

lon = lon + (lon_step * (1 - self.overlap_level))
lon = lon + lon_step
index += 1

lat_step = self.__get_lat_step(lat, lon)
lat = lat + (lat_step * (1 - self.overlap_level))
lat = lat + lat_step
metadata_file.close()

0 comments on commit 33ebd56

Please sign in to comment.