From ace75ce8a640237aedfaf5cf958146781d373075 Mon Sep 17 00:00:00 2001 From: edzer Date: Mon, 9 Dec 2024 14:05:47 +0100 Subject: [PATCH] naturalearth data from url --- 02-Spaces.qmd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/02-Spaces.qmd b/02-Spaces.qmd index 000d386c..c0faeea1 100644 --- a/02-Spaces.qmd +++ b/02-Spaces.qmd @@ -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]]