Skip to content

Commit

Permalink
fix: adapt floats to new np & unpin
Browse files Browse the repository at this point in the history
  • Loading branch information
AngRodrigues committed Jun 18, 2024
1 parent 615985c commit 1a08401
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion dependencies.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
geopandas
numpy<2.0.0
shapely
networkx
owslib
Expand Down
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 1a08401

Please sign in to comment.