Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility issues with terra #53

Closed
SpatLyu opened this issue Jan 21, 2024 · 3 comments
Closed

Compatibility issues with terra #53

SpatLyu opened this issue Jan 21, 2024 · 3 comments

Comments

@SpatLyu
Copy link

SpatLyu commented Jan 21, 2024

library(ceramic)
#> Loading required package: terra
#> terra 1.7.65
library(terra)

template <- rast(ext(527358, 527880, 5252204, 5252704), res = .3, crs = "EPSG:32755")
ortho <- cc_location(template, type = "tasmap_orthophoto")
#> Error in .crs_crs(x): no slot of name "ptr" for this object of class "SpatRaster"

plot(ortho)
#> Error in h(simpleError(msg, call)): error in evaluating the argument 'x' in selecting a method for function 'plot': object 'ortho' not found

Created on 2024-01-21 with reprex v2.1.0

It seems that there is a compatibility issue with the terra package when the type of the cc_location function is specified as 'tasmap_orthophoto'. This issue may be related to changes in the SpatRaster class attributes within the terra package.

@mdsumner
Copy link
Member

ah indeed, actually this has been fixed on github if you want a workaround:

remotes::install_github("hypertidy/ceramic")

I try to push a release to CRAN

@SpatLyu
Copy link
Author

SpatLyu commented Jan 23, 2024

Good job, thank you for your prompt response.

@mdsumner
Copy link
Member

v0.9.0 now on CRAN, thanks for the reminder!

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

No branches or pull requests

2 participants