-
Notifications
You must be signed in to change notification settings - Fork 200
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
Winding/Orientation for LineStrings #169
Conversation
3104e2e
to
3c70cc6
Compare
I've rebased this branch on current master. Is there any feedback? Is this a good feature? |
I don't think we should extract the shoelace formula into its own public module; can we change |
3c70cc6
to
3ef1ed4
Compare
Changed (with a history rewrite)
I'm not sure what you mean here, there's (now) |
Yeah, I misread that change – sorry about that. This looks good to me now! |
Don't merge this now. I've done an explicit |
3ef1ed4
to
271a3e8
Compare
I have fixed this |
bors r=urschrei |
169: Winding/Orientation for LineStrings r=urschrei a=rory This is a rework of #134 with the suggested changes. The `Orient` trait is very useful for encoding `(Multi)Polygons`, since you can ensure the data is correctly ordered, but it's not helpful for reading bytes. In that case, you need a way to look at a linestring and see if it's clockwise or counter-clockwise, to see if it's an interior or exterior ring. That's what I've added in this PR.
Build succeeded |
This is a rework of #134 with the suggested changes.
The
Orient
trait is very useful for encoding(Multi)Polygons
, since you can ensure the data is correctly ordered, but it's not helpful for reading bytes. In that case, you need a way to look at a linestring and see if it's clockwise or counter-clockwise, to see if it's an interior or exterior ring. That's what I've added in this PR.