[geotk] Envelope/bbox transformation
Aaron Braeckel
braeckel at ucar.edu
Thu Mar 10 23:23:53 EST 2011
Hi Martin,
On 3/10/2011 3:06 PM, Martin Desruisseaux wrote:
> Hello Aaron
>
> A patch has been deployed, which should fix the
> NoninvertibleTransformException. Please let me know if there is other
> issues after the one which has been fixed.
It is successfully completing the resample operation if I disable
assertions so your fix appears to have worked. The caveat is that if I
don't disable assertions it throws an AssertionError during the resampling:
java.lang.AssertionError: GridGeometry2D[GeneralGridEnvelope[0..300,
0..224, 0..0, 0..0], PARAM_MT["Affine",
PARAMETER["num_row", 5],
PARAMETER["num_col", 5],
PARAMETER["elt_0_0", 20.318],
PARAMETER["elt_0_4", -3332.314824642418],
PARAMETER["elt_1_1", -20.318],
PARAMETER["elt_1_4", 3983.006785884024],
PARAMETER["elt_2_2", 304.8],
PARAMETER["elt_2_4", 3048.0],
PARAMETER["elt_3_3", ?],
PARAMETER["elt_3_4", 1.0]]]
at
org.geotoolkit.coverage.processing.operation.Resampler2D.reproject(Resampler2D.java:673)
at
org.geotoolkit.coverage.processing.operation.Resample.doOperation(Resample.java:249)
at
org.geotoolkit.coverage.processing.DefaultCoverageProcessor.doOperation(DefaultCoverageProcessor.java:321)
at
org.geotoolkit.coverage.processing.CachingCoverageProcessor.doOperation(CachingCoverageProcessor.java:167)
at
org.geotoolkit.coverage.processing.Operations.doOperation(Operations.java:788)
at
org.geotoolkit.coverage.processing.Operations.resample(Operations.java:458)
Functionally I don't see anything wrong, but there may be a subtle issue
that I haven't found yet if this assertion is failing. Or perhaps this
is harmless, maybe related to the Java "(NaN == NaN) = false" issue?
Thanks,
Aaron
More information about the Geotoolkit
mailing list