Hi,
I am currently using Geotools 2.4 M4 and found an issue that I did not have
when using 2.3.2.
When I do a MathTransform transform = CRS.findMathTransform(originCRS,
destinationCRS, true);
With the following origin CRS
GEOGCS["GCS_North_American_1983",
DATUM["North_American_Datum_1983",
SPHEROID["GRS_1980", 6378137.0, 298.257222101]],
PRIMEM["Greenwich", 0.0],
UNIT["degree", 0.017453292519943295],
AXIS["Longitude", EAST],
AXIS["Latitude", NORTH]]
And the following destination CRS
GEOGCS["WGS84",
DATUM["WGS84",
SPHEROID["WGS84", 6378137.0, 298.257223563]],
PRIMEM["Greenwich", 0.0],
UNIT["degree", 0.017453292519943295],
AXIS["Geodetic longitude", EAST],
AXIS["Geodetic latitude", NORTH]]
Results in
java.lang.IncompatibleClassChangeError: Class sun.jdbc.odbc.ee.DataSource
does not implement the requested interface javax.sql.DataSource
at
org.geotools.referencing.factory.epsg.ThreadedAccessEpsgFactory.createBackin
gStore(ThreadedAccessEpsgFactory.java:87)
at
org.geotools.referencing.factory.epsg.ThreadedEpsgFactory.createBackingStore
0(ThreadedEpsgFactory.java:431)
at
org.geotools.referencing.factory.epsg.ThreadedEpsgFactory.createBackingStore
(ThreadedEpsgFactory.java:487)
at
org.geotools.referencing.factory.DeferredAuthorityFactory.getBackingStore(De
ferredAuthorityFactory.java:138)
at
org.geotools.referencing.factory.BufferedAuthorityFactory.isAvailable(Buffer
edAuthorityFactory.java:232)
at
org.geotools.referencing.factory.DeferredAuthorityFactory.isAvailable(Deferr
edAuthorityFactory.java:126)
at
org.geotools.factory.FactoryRegistry.isAvailable(FactoryRegistry.java:661)
at
org.geotools.factory.FactoryRegistry.isAcceptable(FactoryRegistry.java:489)
at
org.geotools.factory.FactoryRegistry.getServiceImplementation(FactoryRegistr
y.java:423)
at
org.geotools.factory.FactoryRegistry.getServiceProvider(FactoryRegistry.java
:352)
at
org.geotools.factory.FactoryCreator.getServiceProvider(FactoryCreator.java:1
15)
at
org.geotools.referencing.ReferencingFactoryFinder.getAuthorityFactory(Refere
ncingFactoryFinder.java:229)
at
org.geotools.referencing.ReferencingFactoryFinder.getCoordinateOperationAuth
orityFactory(ReferencingFactoryFinder.java:485)
at
org.geotools.referencing.operation.AuthorityBackedFactory.getAuthorityFactor
y(AuthorityBackedFactory.java:167)
at
org.geotools.referencing.operation.AuthorityBackedFactory.isAvailable(Author
ityBackedFactory.java:444)
at
org.geotools.factory.FactoryRegistry.isAvailable(FactoryRegistry.java:661)
at
org.geotools.factory.FactoryRegistry.isAcceptable(FactoryRegistry.java:489)
at
org.geotools.factory.FactoryRegistry$1.filter(FactoryRegistry.java:166)
at javax.imageio.spi.FilterIterator.advance(Unknown Source)
at javax.imageio.spi.FilterIterator.<init>(Unknown Source)
at javax.imageio.spi.ServiceRegistry.getServiceProviders(Unknown
Source)
at
org.geotools.factory.FactoryRegistry.getServiceProviders(FactoryRegistry.jav
a:170)
at
org.geotools.referencing.ReferencingFactoryFinder.getFactories(ReferencingFa
ctoryFinder.java:187)
at
org.geotools.referencing.ReferencingFactoryFinder.getCoordinateOperationFact
ories(ReferencingFactoryFinder.java:344)
at
org.geotools.referencing.operation.BufferedCoordinateOperationFactory.getBac
kingFactory(BufferedCoordinateOperationFactory.java:196)
at
org.geotools.referencing.operation.BufferedCoordinateOperationFactory.getBac
kingFactory(BufferedCoordinateOperationFactory.java:214)
at
org.geotools.referencing.operation.BufferedCoordinateOperationFactory.initia
lizeHints(BufferedCoordinateOperationFactory.java:227)
at
org.geotools.referencing.operation.AbstractCoordinateOperationFactory.getImp
lementationHints(AbstractCoordinateOperationFactory.java:230)
at
org.geotools.factory.FactoryRegistry.usesAcceptableHints(FactoryRegistry.jav
a:540)
at
org.geotools.factory.FactoryRegistry.isAcceptable(FactoryRegistry.java:494)
at
org.geotools.factory.FactoryRegistry.getServiceImplementation(FactoryRegistr
y.java:423)
at
org.geotools.factory.FactoryRegistry.getServiceProvider(FactoryRegistry.java
:352)
at
org.geotools.factory.FactoryCreator.getServiceProvider(FactoryCreator.java:1
15)
at
org.geotools.referencing.ReferencingFactoryFinder.getFactory(ReferencingFact
oryFinder.java:205)
at
org.geotools.referencing.ReferencingFactoryFinder.getCoordinateOperationFact
ory(ReferencingFactoryFinder.java:332)
at
org.geotools.referencing.CRS.getCoordinateOperationFactory(CRS.java:217)
at org.geotools.referencing.CRS.findMathTransform(CRS.java:907)
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users