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

sfc crs is lost during arithmetic operations #2329

Closed
wants to merge 1 commit into from

Conversation

faridcher
Copy link
Contributor

# example 1
st_sfc(st_point(0:1), st_point(2:3), crs=4326) - c(1,1)

# example 2:   sfc - sfc 
st_sfc(st_point(0:1), st_point(2:3), crs=4326) - st_sfc(st_point(c(1,1)), crs=4326)

@edzer
Copy link
Member

edzer commented Feb 6, 2024

This is on purpose: what you do is a (re)projection, and the resulting CRS is unknown.

@edzer edzer closed this Feb 6, 2024
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.

2 participants