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

sf CRS fixes #169

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

sf CRS fixes #169

wants to merge 4 commits into from

Conversation

ateucher
Copy link
Member

@ateucher ateucher commented Apr 3, 2020

Address #159:

  • Don't access crs directly with attrs(), rather always use st_crs()
  • Don't access crs slots with [[, rather use the $ methods.

@codecov-io
Copy link

codecov-io commented Apr 3, 2020

Codecov Report

Merging #169 into master will increase coverage by 3.33%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #169      +/-   ##
==========================================
+ Coverage   51.44%   54.77%   +3.33%     
==========================================
  Files          30       30              
  Lines        1318     1318              
==========================================
+ Hits          678      722      +44     
+ Misses        640      596      -44     
Impacted Files Coverage Δ
R/crs_convert.R 95.23% <100.00%> (+95.23%) ⬆️
R/zzz.r 58.19% <0.00%> (+0.40%) ⬆️
R/geojson_list.R 65.48% <0.00%> (+2.65%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fd61fdc...f5e8ae3. Read the comment docs.

@sckott
Copy link
Collaborator

sckott commented Apr 3, 2020

thanks @ateucher ! Does this work with the old sf version too?

@ateucher
Copy link
Member Author

ateucher commented Apr 3, 2020

It should (by old you mean 0.8-1?)

@ateucher
Copy link
Member Author

ateucher commented Apr 3, 2020

These github actions on mac are going to be the death of me

@sckott
Copy link
Collaborator

sckott commented Apr 3, 2020

hmm, this one's failing https://github.com/ropensci/geojsonio/pull/169/checks?check_run_id=556636132 but i don't see a way to tell what version of sf it has

@sckott
Copy link
Collaborator

sckott commented Apr 3, 2020

@ateucher getting lots of warnings on the crs_convert tests like

the following proj4string elements are ignored: +proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0 ; remove the +init=epsg:XXXX to undo this

@sckott
Copy link
Collaborator

sckott commented Apr 3, 2020

Given that this change has some rough edges, i'm going to submit with these tests commented out

@ateucher
Copy link
Member Author

ateucher commented Apr 3, 2020

I think that's a good idea, sorry I don't have a ton of time today to spend on it, but can try?

@sckott
Copy link
Collaborator

sckott commented Apr 3, 2020

no worries, already submitted

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.

4 participants