Skip to content

Commit

Permalink
naturalearth data from url
Browse files Browse the repository at this point in the history
  • Loading branch information
edzer committed Dec 9, 2024
1 parent 7989c48 commit ace75ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 02-Spaces.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,8 @@ if isFile:
else:
r = rio.open("https://cdn.proj.org/uk_os_OSTN15_NTv2_OSGBtoETRS.tif")
gdf = gpd.read_file(gpd.datasets.get_path('naturalearth_lowres'))
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]]
Expand Down

0 comments on commit ace75ce

Please sign in to comment.