Re: [Geotools-gt2-users] Reading a GeoTIFF

2009-01-13 Thread Michael Bedward
Oops... read, think THEN send... Sorry Greg, I didn't read your post properly about it being a runtime error - not a compile time error. Is the ImageLab class and other code straight from the User Guide ? Michael -- Thi

Re: [Geotools-gt2-users] Reading a GeoTIFF

2009-01-13 Thread Michael Bedward
Hi Greg, I just pasted your code into a new maven project and it compiled without error with gt 2.5 so I guess it is a missing jar / classpath kind of problem. I set dependencies for gt-coverage and gt-geotiff which pulled in the following transitive dependencies... gt-api gt-main gt-metadata gt

[Geotools-gt2-users] Reading a GeoTIFF

2009-01-13 Thread Greg Ederer
Hi, I'm trying to read a GeoTIFF using GeoTools 2.5.2. Here's my code: public static void main(String[] args) throws Exception { File file = getImageFile(args); GeoTiffReader reader = new GeoTiffReader(file); GridCoverage2D coverage = (GridCoverage2D) reader.read(null); I

[Geotools-gt2-users] Fwd: errror converting from Lat/Long to UTM

2009-01-13 Thread Alexandre Pretyman
Ari, Geometry is a class from the popular Java Topology Suite (JTS) - jts-1.10.jar ( http://docs.codehaus.org/display/GEOTDOC/03+JTS+Topology+Suite ), NoSuchAuthorityCodeException and FactoryException is from the geoapi jar (I use geoapi-2.2-M1.jar), CRS is from the referencing jar (I use gt-refer

Re: [Geotools-gt2-users] ClassCastException DefaultFactory

2009-01-13 Thread Ryan Moquin
Yeah, I had a similar theory except that it shouldn't matter if a class is loaded by two classloaders.. I think what matters is that the same classloader can't cast an object that wasn't loaded by it's classloader tree. Since I was using a static initializer for loading the CRS, I think that cause

Re: [Geotools-gt2-users] ClassCastException DefaultFactory

2009-01-13 Thread Martin Desruisseaux
Ryan Moquin a écrit : > Hi, I have a bit of an issue that has popped up since I started running > my application in a tomcat environment. I have been sporadically > getting ClassCastException errors with Geotools during the scanning of > plugins... I haven't changed any geotools dependencies or up