-
Notifications
You must be signed in to change notification settings - Fork 260
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
OGCGeometry#contains, intersects, disjoint and distance fail with NPE on geometry collections #176
Comments
@mbasmanova The support for the OGCGeometryCollection operations is limited because there is no geometry collection in the core. It should be throwing better exception though. |
@stolstov Sergey, we need support for geometry collections. While we don't start with such geometries, we often end up with them as a result of applying various operations. For example, intersection of a Any chance you could help us figure out how to add support for geometry collections? |
@randallwhitman How you deal with such situations in the Spatial Framework for Hadoop? @mbasmanova One could start with simple relational operations. I would think this is more important for the database applications. Assuming that the geometry collection does not have overlapping geometries, which is reasonable for topologically valid OGC structure. One could flatten such geometry collection so it only contains no more than one multi polygon, one multi line string, and one multi point. Then a simple relational operations such as Contains should not be a problem to write using at most 9 calls to Contains on the individual sub-geometries. |
With ST-Geometry for Hive, in the case where the two geometries intersect in a lower dimension, ST_Intersection may drop the lower-dimension intersections, or output a closed linestring. |
@mbasmanova Could you verify? |
@stolstov The tests in the PR cover test cases I had in mind. I don't have anything else to add at this point. |
@mbasmanova Thank you Maria! |
@stolstov That you, Sergey, for adding all these features. I can't wait to start using these in Presto. Do you have a sense of when we may have a new release of the library? |
@randallwhitman @stolstov Is anything blocking the release of this new functionality? |
@randallwhitman Thank you, Randall. |
All of the relationship test APIs fail with NPE when input is a geometry collection.
Here are some examples:
and exceptions:
The text was updated successfully, but these errors were encountered: