-
Notifications
You must be signed in to change notification settings - Fork 60
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
Feat : Cells to multipolygon #64
Conversation
Pull Request Test Coverage Report for Build 7499665938
💛 - Coveralls |
@@ -98,8 +98,10 @@ type ( | |||
} | |||
|
|||
// LinkedGeoPolygon is a linked-list of GeoPolygons. | |||
// TODO: not implemented. | |||
LinkedGeoPolygon struct{} | |||
LinkedGeoPolygon struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In uber/h3, this seems to be doubly-linked: https://github.com/uber/h3/blob/138a7487adb0892715ea7ced785db4e9c38842d1/src/h3lib/include/h3api.h.in#L179
Does that need to be maintained here?
func CellsToMultiPolygon(cells []Cell) *LinkedGeoPolygon { | ||
panic("not implemented") | ||
var head, current *LinkedGeoPolygon |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd expect this function to wrap cellsToMultiPolygon
from the C core library, which handles details like ensuring duplicated internal vertices are not included. https://github.com/uber/h3/blob/138a7487adb0892715ea7ced785db4e9c38842d1/src/h3lib/include/h3api.h.in#L293
This was implemented in #70 |
Tried adding my implementation for cellsToMultipolygon which was marked as TODO