MolodenskiTransform fails in some cases when the output array overwrites the
input array but with an offset
-----------------------------------------------------------------------------------------------------------
Key: GEOT-2046
URL: http://jira.codehaus.org/browse/GEOT-2046
Project: GeoTools
Issue Type: Bug
Components: core referencing
Environment: all environments
Reporter: Tara Athan
Assignee: Martin Desruisseaux
Priority: Minor
Attachments: MolodenskiTransform.java, MolodenskiTransformTest.java
When overwriting an array with the transformed coordinates, sometimes it is
necessary to work in reverse, from higher indices down, in order to avoid
overwriting points that have not yet been transformed. This happens when the
source and target dimensions are the same and the target offset is greater than
the source offset. (Note: the situation when the source and target dimensions
are different is more complicated, and is not implemented in
MolodenskiTransform at this time.)
The code for carrying out this reverse iteration through the arrays contained a
bug which caused it to write all the transformed coordinates into a single
location, causing all but the last transformed coordinates to be lost. The
patch fixes this error.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel