[EMAIL PROTECTED] a écrit :
Since the org.geotools.cs.CoordinateSystem class is deprecated I have
troubles using StyledMapPane.setCoordinateSystem (or
StyledMapPane(CoordinateSystem cs) ) since it requiers a CoordinateSystem
object. It doesent seem to be a good idea to cast it to the deprecated
class (Not sure you can either for that matter). What should I do?
There is a CoordinateSystem.fromGeoAPI(...) static method for this
purpose. It make the bridge between the new and the legacy code until we
port J2D renderer.
This is from the API: CoordinateSystemFactory. Deprecated. Replaced by
org.geotools.referencing.crs.CRSFactory.
Should not the geotools be replaced with opengis?
Yes. The link just point toward the implementation of the GeoAPI
interfaces. But you are right, an API should use the interface (and this
is what the new geotools code actually does).
Why have a coordinate system(CoordinateSystem) been replaced by a
coordinate reference system (AbstractCRS)? And why is the CoordinateSystem
replaced in GeoTools while it still exists in opengis?
The coordinate system _implementation_ is replaced by the AbstractCRS
implementation. This link said nothing about the interfaces (which were
not really used in legacy geotools code). The fact that interfaces
should be used in API was kind of implicit to me, but I agree that it
should have been said more explicitly.
Martin.
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users