Move org.geotools.geometry.JTS to the "jts" subpackage, and bug fixes
---------------------------------------------------------------------
Key: GEOT-716
URL: http://jira.codehaus.org/browse/GEOT-716
Project: GeoTools
Type: Task
Components: geometry
Versions: 2.2.M0
Reporter: Martin Desruisseaux
Assigned to: Martin Desruisseaux
Priority: Minor
Fix For: 2.2.M1
org.geotools.geometry.JTS is a convenience class which contains a set of static
method working on JTS geometries. As agreeded by email a few week ago, we move
JTS-specific class to the "jts" subpackage in order to make some room for (if
accepted by the communauty) partial ISO 19107 implementations. The old JTS
class has not been removed, but only deprecated. It may be removed in a future
release.
During this process, some bugs were spotted in the old
org.geotools.geometry.JTS class and fixed in the new
org.geotools.geometry.jts.JTS class. The bug were left untouched in the old JTS
class, because some applications may rely on current behavior. Fixed bug are:
- JTS.transform(Envelope, MathTransform)
This method was inaccurate, because it transformed only 2 corners (the lower
left, and the upper right). This work only for plain scale or translation, but
fail for any transform more complicated than scale and translation. At the very
least the 4 corners should be transformed. The implementation in the new class
delegates the work to the "densified envelope" version with a default values of
5 points on each envelope's side.
- JTS.xforms
The javadoc said that this method replaces any non-transformable coordinates by
the last successfull transformed coordinates, but the implementation was not
doing what the javadoc said.
In addition, some slight performance enhancement has been done for the
densified version of JTS.transform (again, the old implementation were left
untouched in order to avoid the risk of breaking existing applications).
--
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:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel