-
Notifications
You must be signed in to change notification settings - Fork 363
Time Series #2288
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
Time Series #2288
Conversation
d04357d
to
f0368f7
Compare
@CloudNiner and @fungjj92 asked to be tagged on this pull request. See also locationtech-labs/geopyspark#377. |
a820c88
to
9036015
Compare
sumSeries(List(polygon), Options.DEFAULT) | ||
|
||
def sumSeries( | ||
polygons: Traversable[Geometry], |
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.
Having this be Geometries makes the code less typesafe. If we pass in other geometries, we get a match error that is potentially not very descriptive. We should change this to only accept a Polygon or MultiPolygon, both versions (the user can create the MultiPolygon themselves if needed).
033ee8f
to
e0f9329
Compare
Okay, I have modified it. |
meanSeries(polygon, Options.DEFAULT) | ||
|
||
def meanSeries( | ||
polygons: Traversable[MultiPolygon] |
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.
Sorry, I should have been more clear. The overloads that should exist are Polygon
and MultiPolygon
, not MultiPolygon
and Traversable[MultiPolygon]
.
If a user has a single polygon, which seems like a pretty regular case, then they can call the method with just the polygon.
If a user has a multipolygon, same thing.
If the user has a sequence of polygons or sequence of multipolygons, then they can wrap/union them into a multipolygon before calling this method.
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.
Okay, there are only methods for Polygon
and MultiPolygon
.
e0f9329
to
6eafb09
Compare
My only question here is about the interface, should this be returning I think the method extensions need to be |
Signed-off-by: James McClain <[email protected]>
6eafb09
to
3025283
Compare
Fixes #2287