Hello Joe

Le 19/12/12 01:57, Joe White a écrit :
As for the ability to get Java2D geometries from the geometries we define,
we can either include them as a non-standard helper method, or define a
helper class that can do the conversion outside of our standard library.

The package defines an Envelope2D class [1] which can be use as a bridge between Java2D and this Envelope interface. This Envelope2D class is both a sub-class of java.awt.geom.Rectangle2D and an implementation of org.opengis.geometry.Envelope, so the same instance can be used in the two situations without the need for adapters.

However I propose to keep all Java2D dependencies in Envelope2D/DirectPosition2D, and avoid those dependencies in GeneralEnvelope/GeneralDirectPosition. The intention is to make easier their usage on JavaFX, Android or SWT platforms.

    Martin


[1] https://builds.apache.org/job/sis-jdk7/site/apidocs/org/apache/sis/geometry/Envelope2D.html

Reply via email to