OSGeo / PROJ-JNI

Java Native Interface for PROJ
https://osgeo.github.io/PROJ-JNI/
MIT License
23 stars 15 forks source link

Wrong arguments for equals() #71

Closed ggmuelle closed 1 year ago

ggmuelle commented 1 year ago

In https://github.com/OSGeo/PROJ-JNI/blob/1e06ea8225bc0355bbbe8030fdbb4e8010c80469/src/main/java/org/osgeo/proj/SimpleDirectPosition.java#L141 a CRS is compared to a boolean. I guess it needs to be like this:

return Objects.equals(crs, other.getCoordinateReferenceSystem())

desruisseaux commented 1 year ago

Indeed, thanks for spotting that! I just pushed the fix.