-
Notifications
You must be signed in to change notification settings - Fork 261
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.equals #110
Comments
As mentioned in the incomplete patch, it would then also need |
@randallwhitman I have different fix in the full version. Note that the OGC equals is not same as java equals. Java equals is identity comparison, while OGC equals is topological. |
Name is not good. Maybe we should rename OGC equals to Equals(OGCGeometry), and leave java equals(Object) to do Java identity thing. |
In Java, operator |
The ogc equals is slow, and also, probably not what one expects when storing a class in a container, such a hash map. I think ogc equals it should be different from identity equals. |
Let me know if there is something wrong with the following test, but I think it indicates an issue with
OGCGeometry.equals(Object)
.Maybe need
OGCGeometry.equals(Object)
similar to that of MapGeometry, such as:(Ran across this issue while writing unit tests for JSON SerDe classes in Spatial-Framework-for-Hadoop.)
The text was updated successfully, but these errors were encountered: