GeoToolsProjectionTransformerFactory fails to handle CoordinateReferenceSystems that differ only by their axis order. Instead it claims that the transformation is a non-op, which causes all sorts of issues further down.
So fix that by adding another check when the coordinate systems are equal when forced to lon,lat order.
One thing to note is that this uses GeoTools' own authority information for the axis order for coordinate reference systems and not the one hakunapi-configured one, which might cause confusion in some rare edge-cases but hopefully not.
Related issue #78
GeoToolsProjectionTransformerFactory fails to handle CoordinateReferenceSystems that differ only by their axis order. Instead it claims that the transformation is a non-op, which causes all sorts of issues further down.
So fix that by adding another check when the coordinate systems are equal when forced to lon,lat order.
One thing to note is that this uses GeoTools' own authority information for the axis order for coordinate reference systems and not the one hakunapi-configured one, which might cause confusion in some rare edge-cases but hopefully not.