Dear All, Michael,
I am back from vacation and ready to solve the problems resultign from
my use of the RasterToVector class and associated dependencies.
To recap: I have been using GT 2.5 and the snapshot of 2.6 process.jar
containing the RasterToVector process.
All worked until, roughly, december. I did not recompile the project
since then, as it was all working and deployed, and now I need to do
some changes. The 2.6 moved to 2.6.2 in the meantime.
I was forced to update my project to this, as the RasterToVEctor process
acquired an additional parameter (the envelope, discussed before), and
was, for some reason, not compatible with my coverages passed to it.
I have changed the maven dependencies to 2.6.2 for all my geotools
related jars, and have now errors appearing from the lack of dependencies.
The first error appears to be due to a new dependency, imageio-ext. What
should I add to my maven file? (in general, I find it difficult to find
the maven dependencies required for more extensive GT projects, we
should have a how to page for this...). I have tried to add the plethora
of imageio-ext-* dependencies that I found (1.0.5), but it still
complains about some other missing, which I could not find, such as
/imageio-ext-gdal-bindings/1.4.5/imageio-ext-gdal-bindings-1.4.5.jar
No idea from where it is referenced, but it is required... What is the
proper specification of the imageio-ext highest level dependency for
geotools 2.6.2??
The second problem has something to do with transformations and CRS. I
did not have any problems with the crs I used until now (EPSG:4326 and
EPSG:3035)... Weird. The error appears when I do
CRS.decode("EPSG:3035",true);
***
//the original stack trace://
Mar 23, 2010 12:21:04 PM it.geosolutions.util.KakaduUtilities loadKakadu
WARNING: Native library load failed.java.lang.UnsatisfiedLinkError: no
kdu_jni in java.library.path
Error while parsing JAI registry file
"file:/C:/mavenrep/org/geotools/gt-coverage/2.6.2/gt-coverage-2.6.2.jar!/META-INF/registryFile.jai"
:
Error in registry file at line number #31
A descriptor is already registered against the name
"org.geotools.Combine" under registry mode "rendered"
Error in registry file at line number #32
A descriptor is already registered against the name
"org.geotools.Hysteresis" under registry mode "rendered"
Error in registry file at line number #33
A descriptor is already registered against the name
"org.geotools.NodataFilter" under registry mode "rendered"
Error in registry file at line number #44
No descriptor by name "org.geotools.ColorReduction" is registered under
mode "rendered".
Error while parsing JAI registry file
"file:/C:/mavenrep/it/geosolutions/imageio-ext/imageio-ext-imagereadmt/1.0.5/imageio-ext-imagereadmt-1.0.5.jar!/META-INF/registryFile.jai"
:
Error in registry file at line number #29
A descriptor is already registered against the name "ImageReadMT" under
registry mode "rendered"
Second stack trace:
Mar 23, 2010 12:21:13 PM org.geotools.factory.FactoryRegistry scanForPlugins
WARNING: Can't load a service for category "MathTransformProvider".
Cause is "MissingResourceException: Can't find resource for bundle
org.geotools.resources.i18n.Vocabulary, key 250".
java.util.MissingResourceException: Can't find resource for bundle
org.geotools.resources.i18n.Vocabulary, key 250
at java.util.ResourceBundle.getObject(ResourceBundle.java:384)
at java.util.ResourceBundle.getObject(ResourceBundle.java:381)
at java.util.ResourceBundle.getString(ResourceBundle.java:344)
at
org.geotools.util.ResourceInternationalString.toString(ResourceInternationalString.java:100)
at
org.geotools.referencing.NamedIdentifier.<init>(NamedIdentifier.java:193)
at
org.geotools.referencing.operation.projection.EquidistantConic$Provider.<clinit>(EquidistantConic.java:266)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at sun.misc.Service$LazyIterator.next(Service.java:271)
at
org.geotools.factory.FactoryRegistry.register(FactoryRegistry.java:829)
at
org.geotools.factory.FactoryRegistry.scanForPlugins(FactoryRegistry.java:773)
at
org.geotools.factory.FactoryRegistry.scanForPluginsIfNeeded(FactoryRegistry.java:808)
at
org.geotools.factory.FactoryRegistry.getServiceProviders(FactoryRegistry.java:195)
at
org.geotools.referencing.operation.DefaultMathTransformFactory.getProvider(DefaultMathTransformFactory.java:281)
at
org.geotools.referencing.operation.DefaultMathTransformFactory.getDefaultParameters(DefaultMathTransformFactory.java:315)
at
org.geotools.referencing.factory.epsg.DirectEpsgFactory.createCoordinateOperation(DirectEpsgFactory.java:2506)
at
org.geotools.referencing.factory.BufferedAuthorityFactory.createCoordinateOperation(BufferedAuthorityFactory.java:1039)
at
org.geotools.referencing.factory.epsg.DirectEpsgFactory.createCoordinateReferenceSystem(DirectEpsgFactory.java:1931)
at
org.geotools.referencing.factory.BufferedAuthorityFactory.createCoordinateReferenceSystem(BufferedAuthorityFactory.java:781)
at
org.geotools.referencing.factory.AuthorityFactoryAdapter.createCoordinateReferenceSystem(AuthorityFactoryAdapter.java:798)
at
org.geotools.referencing.factory.BufferedAuthorityFactory.createCoordinateReferenceSystem(BufferedAuthorityFactory.java:781)
at
org.geotools.referencing.factory.AuthorityFactoryAdapter.createCoordinateReferenceSystem(AuthorityFactoryAdapter.java:798)
at
org.geotools.referencing.factory.ThreadedAuthorityFactory.createCoordinateReferenceSystem(ThreadedAuthorityFactory.java:729)
at
org.geotools.referencing.DefaultAuthorityFactory.createCoordinateReferenceSystem(DefaultAuthorityFactory.java:179)
at org.geotools.referencing.CRS.decode(CRS.java:420)
at
ch.uzh.geo.tomko.viewshedserviceclient.getViewshedLocal.main(getViewshedLocal.java:209)
Exception in thread "main" java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at sun.misc.Service$LazyIterator.next(Service.java:271)
at
org.geotools.factory.FactoryRegistry.register(FactoryRegistry.java:829)
at
org.geotools.factory.FactoryRegistry.scanForPlugins(FactoryRegistry.java:773)
at
org.geotools.factory.FactoryRegistry.scanForPluginsIfNeeded(FactoryRegistry.java:808)
at
org.geotools.factory.FactoryRegistry.getServiceProviders(FactoryRegistry.java:195)
at
org.geotools.referencing.operation.DefaultMathTransformFactory.getProvider(DefaultMathTransformFactory.java:281)
at
org.geotools.referencing.operation.DefaultMathTransformFactory.getDefaultParameters(DefaultMathTransformFactory.java:315)
at
org.geotools.referencing.factory.epsg.DirectEpsgFactory.createCoordinateOperation(DirectEpsgFactory.java:2506)
at
org.geotools.referencing.factory.BufferedAuthorityFactory.createCoordinateOperation(BufferedAuthorityFactory.java:1039)
at
org.geotools.referencing.factory.epsg.DirectEpsgFactory.createCoordinateReferenceSystem(DirectEpsgFactory.java:1931)
at
org.geotools.referencing.factory.BufferedAuthorityFactory.createCoordinateReferenceSystem(BufferedAuthorityFactory.java:781)
at
org.geotools.referencing.factory.AuthorityFactoryAdapter.createCoordinateReferenceSystem(AuthorityFactoryAdapter.java:798)
at
org.geotools.referencing.factory.BufferedAuthorityFactory.createCoordinateReferenceSystem(BufferedAuthorityFactory.java:781)
at
org.geotools.referencing.factory.AuthorityFactoryAdapter.createCoordinateReferenceSystem(AuthorityFactoryAdapter.java:798)
at
org.geotools.referencing.factory.ThreadedAuthorityFactory.createCoordinateReferenceSystem(ThreadedAuthorityFactory.java:729)
at
org.geotools.referencing.DefaultAuthorityFactory.createCoordinateReferenceSystem(DefaultAuthorityFactory.java:179)
at org.geotools.referencing.CRS.decode(CRS.java:420)
at
ch.uzh.geo.tomko.viewshedserviceclient.getViewshedLocal.main(getViewshedLocal.java:209)
Caused by: java.util.MissingResourceException: Can't find resource for
bundle org.geotools.resources.i18n.Vocabulary, key 250
at java.util.ResourceBundle.getObject(ResourceBundle.java:384)
at java.util.ResourceBundle.getObject(ResourceBundle.java:381)
at java.util.ResourceBundle.getString(ResourceBundle.java:344)
at
org.geotools.util.ResourceInternationalString.toString(ResourceInternationalString.java:100)
at
org.geotools.referencing.NamedIdentifier.<init>(NamedIdentifier.java:193)
at
org.geotools.referencing.operation.projection.EquidistantConic$Provider.<clinit>(EquidistantConic.java:266)
... 20 more
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users