Skip to content

consider SpatExtent#108

Open
rhijmans wants to merge 1 commit into
USEPA:mainfrom
rhijmans:main
Open

consider SpatExtent#108
rhijmans wants to merge 1 commit into
USEPA:mainfrom
rhijmans:main

Conversation

@rhijmans

@rhijmans rhijmans commented Mar 7, 2026

Copy link
Copy Markdown

This adds a SpatExtent as a possible value for argument "locations" in get_elev_raster. The manual says that locations can be a "terra object" and a SpatExtent is the most obvious example in this context (and perhaps it makes sense to use the extent of a SpatRaster or SpatVector as well, before using terra::as.points).

I also fixed something (the crs argument in sf::st_as_sf is ignored if the first argument is a SpatVector) and made a few minor changes for consistency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant