Skip to content

re-fix #125 - #144

Merged
edzer merged 1 commit into
edzer:mainfrom
bastistician:refix125
Apr 30, 2024
Merged

edzer merged 1 commit into
edzer:mainfrom
bastistician:refix125

Conversation

@bastistician

Copy link
Copy Markdown
Contributor

This patch restores the fix for #125 that got lost in #138.

It avoids the unnecessary loading of sf for "default" Spatial objects with unset CRS, for example in:

SpatialPoints(cbind(1:5, 1:5)) |> summary()
## ...
## Is projected: NA 
## ...

is.projected() doesn't need a whole sf pipeline to get to that NA. ;)

@edzer

edzer commented Apr 30, 2024

Copy link
Copy Markdown
Owner

Thanks @bastistician and sorry to cause you double work. I think this looks good; to be sure, @rsbivand could you pls also give this a look?

@rsbivand

Copy link
Copy Markdown
Contributor

Yes, looks OK here.

@edzer
edzer merged commit bf50789 into edzer:main Apr 30, 2024
@edzer

edzer commented Apr 30, 2024

Copy link
Copy Markdown
Owner

Submitted to CRAN...

@edzer

edzer commented Apr 30, 2024 •

Copy link
Copy Markdown
Owner

On CRAN now!

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.

3 participants