locationtech / proj4j

Java port of the Proj.4 library for coordinate reprojection
Other
184 stars 73 forks source link

Add Projection Equality #45

Closed echeipesh closed 5 years ago

echeipesh commented 5 years ago

This is follow-up PR to https://github.com/locationtech/proj4j/pull/33

Further testing revealed that CoordinateReferenceSystem was much too fragile because:

So basically the situation is pretty dire and this PR attempts to remedy that.

It's worth noting that Projection class is highly mutable which makes checking for equality a little tricky. While the mutability is used primarily by the Proj4Parser to "build up" the projection its obviously possible that this is not the only place that mutation will happen because life.

In this PR:

Also ... Closes: https://github.com/locationtech/proj4j/issues/38