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

fixes bug where simple features with geometry column not named... #335

Merged
merged 1 commit into from
Mar 26, 2020
Merged

fixes bug where simple features with geometry column not named... #335

merged 1 commit into from
Mar 26, 2020

Conversation

mikoontz
Copy link
Contributor

..."geometry" would throw an error

Using sf::st_geometry() to access the geometry column of a simple feature ensures the geometry column (whatever it may be called) is used to get the geometry. If $geometry is used and the geometry column is called something different (e.g., lots of real-world instances where geometry column is called "geom") then NULL results, and sf::st_as_text() throws an error.

…try" would throw an error

Using sf::st_geometry() to access the geometry column of a simple feature ensures the geometry column (whatever it may be called) is used to get the geometry. If $geometry is used and the geometry column is called something different (e.g., lots of real-world instances where geometry column is called "geom") then NULL results, and sf::st_as_text() throws an error.
@Jean-Romain
Copy link
Collaborator

Thank you for the fix. Merged in master and then in devel. Everything is up-to-date.

Jean-Romain added a commit that referenced this pull request Mar 26, 2020
@mikoontz
Copy link
Contributor Author

Right on! Thank you so much!

@mikoontz mikoontz deleted the patch-2 branch March 26, 2020 15:26
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