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

drop "geotools" dependency #5

Merged
merged 2 commits into from
Sep 4, 2018
Merged

drop "geotools" dependency #5

merged 2 commits into from
Sep 4, 2018

Conversation

tyrasd
Copy link
Member

@tyrasd tyrasd commented Aug 21, 2018

Only the Country class actually uses geotools functionality (i.e. reading in a shapefile). Since this class is not really essential for the oshdb itself, it should therefore probably be better made into a separate library. Then, the few remaining uses of geotools are easily replaced by corresponding JTS methods (one slightly annoying side node: when generating a Polygon geometry from an Envelope object, JTS uses clockwise coordinate winding order while geotools produces counterclockwise winding (i.e. following the mathematical "right hand rule")), which is a small side effect introduced in this PR.

See also #2

@tyrasd tyrasd mentioned this pull request Aug 22, 2018
7 tasks
since geotools (which is a fairly heavy library) was only really used in this one helper class
to use bbox coordinate points directly instead of relying on order of points in bbox polygon: tests require strict mathematical right hand rule order to work
Copy link
Member

@rtroilo rtroilo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

finally, thank you martin for removing this dependency.
🎉

@tyrasd tyrasd merged commit 7a23ef2 into master Sep 4, 2018
@tyrasd tyrasd deleted the drop-geotools branch September 4, 2018 13:45
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.

None yet

2 participants