Still having problems reading Geotiffs - Using gt-2.5.0m jar downloaded
from Sourceforge no luck
my code
CoordinateReferenceSystem crs = null;
File tiffFile = new File("geotiff_format.tif");
AbstractGridCoverage2DReader rdr = null;
rdr = new GeoTiffReader(tiffFile);
crs = rdr.getCrs();
Refer
Robert Stones a écrit :
> Caused by: java.lang.NoSuchMethodError:
> org.geotools.resources.ResourceBundle: method ()V not found
> at org.geotools.resources.i18n.Logging.(Logging.java:39)
NoSuchMethodError are usually the result of some compilation problem. Are you
using the JAR download
geotools 2.4
Exception in thread "main" java.lang.ExceptionInInitializerError
at giscsl.Testtiff.main(Testtiff.java:30)
Caused by: java.util.MissingResourceException: Can't find bundle for
base name org.geotools.resources.i18n.Logging, locale en_GB
at
java.util.ResourceBundle
Robert Stones a écrit :
> Error
> java.util.MissingResourceException can't find bundle for base name
> org.geotools.resources.il8n.Logging, local en_GB
Looks like a build issue. Which GeoTools version are you using, and do you have
the full stack trace?
Martin
I am trying to load a GeoTiff as a maplayer and getting the following error.
Also how do you get from GridCoverage gc to be a maplayer.
Apologies GIS newbie
File testFile = new File("myTiff.tif");
GeoTiffReader gtReader = new GeoTiffReader(testFile);
CoordinateReferenceSystem crs = gtReader.getC