Hi Dan,

Please send your messages via the list - that way you are picking more
brains simultaneously !

>        I tried running the imageLab but got the errors listed below. It 
> appears the code is trying to make a connection "jdbc/EPSG".
> Not sure why the code is trying to connect to EPSG. How can I get around this?

Are you using Maven or are you adding all of the GeoTools jars to your
project manually ?

>From the errors below I'm guessing that you're doing the latter.  If
that's the case, and you really don't want to use Maven instead, then
please have a look at the Quickstart workbook on this page:

http://geotoolsnews.blogspot.com/2009/11/foss4g-geotools-tutorials.html

There is one for Netbeans and one for Eclipse. Both include a section
about adding jars manually and tell you what jars *not* to add.

If I'm on the wrong track, or this doesn't help, please get back to
the list with a bit more info about the image that you're trying to
load: format, size, any special attributes etc.

Michael

>
> Dec 1, 2009 9:50:10 AM it.geosolutions.imageio.gdalframework.GDALUtilities 
> loadGDAL
> WARNING: Native library load failed.java.lang.UnsatisfiedLinkError: gdaljni 
> (Not found in java.library.path)
> Dec 1, 2009 9:50:13 AM null null
> WARNING: WSVR0073W
> Dec 1, 2009 9:50:16 AM null null
> WARNING: jndiUnavailCommErr
> Dec 1, 2009 9:50:16 AM 
> org.geotools.referencing.factory.epsg.ThreadedPostgreSQLEpsgFactory 
> isAvailable
> WARNING: Unavailable authority factory: European Petroleum Survey Group
> Throwable occurred: org.opengis.referencing.FactoryException: Failed to 
> connect to the EPSG database.
>        at 
> org.geotools.referencing.factory.epsg.ThreadedEpsgFactory.createBackingStore(ThreadedEpsgFactory.java:430)
>        at 
> org.geotools.referencing.factory.DeferredAuthorityFactory.getBackingStore(DeferredAuthorityFactory.java:132)
>        at 
> org.geotools.referencing.factory.BufferedAuthorityFactory.isAvailable(BufferedAuthorityFactory.java:233)
>        at 
> org.geotools.referencing.factory.DeferredAuthorityFactory.isAvailable(DeferredAuthorityFactory.java:119)
>        at 
> org.geotools.factory.FactoryRegistry.isAvailable(FactoryRegistry.java:668)
>        at 
> org.geotools.factory.FactoryRegistry.isAcceptable(FactoryRegistry.java:500)
>        at 
> org.geotools.factory.FactoryRegistry.getServiceImplementation(FactoryRegistry.java:436)
>        at 
> org.geotools.factory.FactoryRegistry.getServiceProvider(FactoryRegistry.java:364)
>        at 
> org.geotools.factory.FactoryCreator.getServiceProvider(FactoryCreator.java:143)
>        at 
> org.geotools.referencing.ReferencingFactoryFinder.getAuthorityFactory(ReferencingFactoryFinder.java:216)
>        at 
> org.geotools.referencing.ReferencingFactoryFinder.getCoordinateOperationAuthorityFactory(ReferencingFactoryFinder.java:471)
>        at 
> org.geotools.referencing.operation.AuthorityBackedFactory.getAuthorityFactory(AuthorityBackedFactory.java:168)
>        at 
> org.geotools.referencing.operation.AuthorityBackedFactory.isAvailable(AuthorityBackedFactory.java:457)
>        at 
> org.geotools.factory.FactoryRegistry.isAvailable(FactoryRegistry.java:668)
>        at 
> org.geotools.factory.FactoryRegistry.isAcceptable(FactoryRegistry.java:500)
>        at 
> org.geotools.factory.FactoryRegistry$1.filter(FactoryRegistry.java:191)
>        at javax.imageio.spi.FilterIterator.advance(ServiceRegistry.java:804)
>        at javax.imageio.spi.FilterIterator.<init>(ServiceRegistry.java:798)
>        at 
> javax.imageio.spi.ServiceRegistry.getServiceProviders(ServiceRegistry.java:502)
>        at 
> org.geotools.factory.FactoryRegistry.getServiceProviders(FactoryRegistry.java:196)
>        at 
> org.geotools.referencing.ReferencingFactoryFinder.getFactories(ReferencingFactoryFinder.java:176)
>        at 
> org.geotools.referencing.ReferencingFactoryFinder.getCoordinateOperationFactories(ReferencingFactoryFinder.java:330)
>        at 
> org.geotools.referencing.operation.BufferedCoordinateOperationFactory.getBackingFactory(BufferedCoordinateOperationFactory.java:196)
>        at 
> org.geotools.referencing.operation.BufferedCoordinateOperationFactory.getBackingFactory(BufferedCoordinateOperationFactory.java:213)
>        at 
> org.geotools.referencing.operation.BufferedCoordinateOperationFactory.initializeHints(BufferedCoordinateOperationFactory.java:226)
>        at 
> org.geotools.referencing.operation.AbstractCoordinateOperationFactory.getImplementationHints(AbstractCoordinateOperationFactory.java:213)
>        at 
> org.geotools.factory.FactoryRegistry.usesAcceptableHints(FactoryRegistry.java:551)
>        at 
> org.geotools.factory.FactoryRegistry.isAcceptable(FactoryRegistry.java:505)
>        at 
> org.geotools.factory.FactoryRegistry$1.filter(FactoryRegistry.java:191)
>        at javax.imageio.spi.FilterIterator.advance(ServiceRegistry.java:804)
>        at javax.imageio.spi.FilterIterator.<init>(ServiceRegistry.java:798)
>        at 
> javax.imageio.spi.ServiceRegistry.getServiceProviders(ServiceRegistry.java:502)
>        at 
> org.geotools.factory.FactoryRegistry.getServiceProviders(FactoryRegistry.java:196)
>        at 
> org.geotools.referencing.ReferencingFactoryFinder.getFactories(ReferencingFactoryFinder.java:176)
>        at 
> org.geotools.referencing.ReferencingFactoryFinder.getCoordinateOperationFactories(ReferencingFactoryFinder.java:330)
>        at 
> org.geotools.referencing.operation.BufferedCoordinateOperationFactory.getBackingFactory(BufferedCoordinateOperationFactory.java:196)
>        at 
> org.geotools.referencing.operation.BufferedCoordinateOperationFactory.<init>(BufferedCoordinateOperationFactory.java:163)
>        at 
> org.geotools.referencing.operation.BufferedCoordinateOperationFactory.<init>(BufferedCoordinateOperationFactory.java:151)
>        at 
> org.geotools.gce.imagemosaic.jdbc.ImageMosaicJDBCReader.<clinit>(ImageMosaicJDBCReader.java:83)
>        at java.lang.J9VMInternals.initializeImpl(Native Method)
>        at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
>        at java.lang.Class.forNameImpl(Native Method)
>        at java.lang.Class.forName(Class.java:136)
>        at 
> org.geotools.gce.imagemosaic.jdbc.ImageMosaicJDBCFormatFactory.isAvailable(ImageMosaicJDBCFormatFactory.java:50)
>        at 
> org.geotools.coverage.grid.io.GridFormatFinder.getAvailableFormats(GridFormatFinder.java:90)
>        at 
> org.geotools.coverage.grid.io.GridFormatFinder.findFormats(GridFormatFinder.java:162)
>        at 
> org.geotools.coverage.grid.io.GridFormatFinder.findFormat(GridFormatFinder.java:200)
>        at my.app.gis.utils.examples.ImageLab.displayLayers(ImageLab.java:98)
>        at 
> my.app.gis.utils.examples.ImageLab.getLayersAndDisplay(ImageLab.java:80)
>        at my.app.gis.utils.examples.ImageLab.main(ImageLab.java:54)
> Caused by: java.sql.SQLException: Failed to get the data source for name 
> "jdbc/EPSG".
> -----Original Message-----
> From: Michael Bedward [mailto:[email protected]]
> Sent: Tuesday, December 01, 2009 7:12 AM
> To: Macleod, Dan; geotools users
> Subject: Re: [Geotools-gt2-users] Question about changing a features style 
> dynamically
>
> Hi Dan,
>
>> Does GeoTools support images with World files?
>
> Yes it does.
>
>> I tried the image tutorial but couldn't get it working.
>
> Did you try an example from the wiki or the new example here...
>
> http://geotools.org/examples/imagelab.html
>
> I'm hoping it was the old one :)  I just tried the Image Lab example app with 
> the earthlights.jpg+world image in the Refractions sample data (see link on 
> the ImageLab page under 'Running the application') and it displayed the file 
> properly. Let us know if that's the one that you're having problems with.
>
> Michael
>

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to