Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
edzer committed Dec 9, 2024
1 parent 8bd5a36 commit 601a133
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions 02-Spaces.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -706,9 +706,10 @@ if isFile:
r = rio.open(filename)
else:
r = rio.open("https://cdn.proj.org/uk_os_OSGM15_GB.tif")
gdf = gpd.read_file(gpd.datasets.get_path('naturalearth_lowres'))
uk = gdf[gdf.name == 'United Kingdom']
url = "https://naciscdn.org/naturalearth/110m/cultural/ne_110m_admin_0_countries.zip"
gdf = gpd.read_file(url)
uk = gdf[gdf.NAME == 'United Kingdom']
uk_transformed = uk.to_crs(r.crs)
raster_extent = numpy.asarray(r.bounds)[[0,2,1,3]]
r1 = r.read(1)
Expand Down

0 comments on commit 601a133

Please sign in to comment.