Skip to content

Commit

Permalink
Merge pull request #105 from Loop3D/fix/numpy_version
Browse files Browse the repository at this point in the history
fix: pin numpy version
  • Loading branch information
AngRodrigues committed Jun 18, 2024
2 parents 90de8d6 + 1a08401 commit 8753bc2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions map2loop/mapdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,8 +501,8 @@ def __retrieve_tif(self, filename: str):

# For gdal debugging use exceptions
gdal.UseExceptions()
bb_ll = tuple(self.bounding_box_polygon.to_crs("EPSG:4326").geometry.total_bounds)
bb_ll = tuple(float(coord) for coord in self.bounding_box_polygon.to_crs("EPSG:4326").geometry.total_bounds)

if filename.lower() == "aus" or filename.lower() == "au":

url = "http://services.ga.gov.au/gis/services/DEM_SRTM_1Second_over_Bathymetry_Topography/MapServer/WCSServer?"
Expand All @@ -511,6 +511,7 @@ def __retrieve_tif(self, filename: str):
coverage = wcs.getCoverage(
identifier="1", bbox=bb_ll, format="GeoTIFF", crs=4326, width=2048, height=2048
)

# This is stupid that gdal cannot read a byte stream and has to have a
# file on the local system to open or otherwise create a gdal file
# from scratch with Create
Expand Down

0 comments on commit 8753bc2

Please sign in to comment.