courtiol / IsoriX

This is the GitHub repository dedicated to the development of the R package IsoriX
12 stars 6 forks source link

Resurrect country names in CountryBorders #183

Open courtiol opened 1 week ago

courtiol commented 1 week ago

Before moving to terra, it used to be possible to extract polygons in CountryBorders via names. Now the object no longer carries this information. It would be nice to add this in since it used to allow things of this kind:

 getelev(file = "elevation_DE_z5.tif",
          long_min = raster::xmin(CountryBorders['Germany']), long_max = raster::xmax(CountryBorders['Germany']),
          lat_min = raster::ymin(CountryBorders['Germany']), lat_max = raster::ymax(CountryBorders['Germany']))
courtiol commented 1 week ago

If you do think this issue matters to you, please add a thumb up!