Hi,
I'm having issue trying to load a geotiff using GeoTiffReader (geotools 14.2)
final GeoTiffReader reader = new GeoTiffReader(geotiffFile);
The exception i get is
org.geotools.data.DataSourceException
at org.geotools.gce.geotiff.GeoTiffReader.<init>(GeoTiffReader.java:262)
at org.geotools.gce.geotiff.GeoTiffFormat.getReader(GeoTiffFormat.java:298)
at org.geotools.gce.geotiff.GeoTiffFormat.getReader(GeoTiffFormat.java:264)
at org.geotools.gce.geotiff.GeoTiffFormat.getReader(GeoTiffFormat.java:81)
at
mil.nga.giat.geowave.examples.ingest.SimpleIngestRaster.generateGrid(SimpleIngestRaster.java:120)
at
mil.nga.giat.geowave.examples.ingest.SimpleIngestRaster.main(SimpleIngestRaster.java:47)
Caused by: org.geotools.data.DataSourceException
at org.geotools.gce.geotiff.GeoTiffReader.getHRInfo(GeoTiffReader.java:487)
at org.geotools.gce.geotiff.GeoTiffReader.<init>(GeoTiffReader.java:249)
... 5 more
Caused by: java.lang.NullPointerException
at org.geotools.referencing.cs.AbstractCS.axisUsingUnit(AbstractCS.java:511)
at
org.geotools.referencing.cs.DefaultCartesianCS.usingUnit(DefaultCartesianCS.java:302)
at
org.geotools.coverage.grid.io.imageio.geotiff.GeoTiffMetadata2CRSAdapter.createUserDefinedPCS(GeoTiffMetadata2CRSAdapter.java:769)
at
org.geotools.coverage.grid.io.imageio.geotiff.GeoTiffMetadata2CRSAdapter.createProjectedCoordinateReferenceSystem(GeoTiffMetadata2CRSAdapter.java:272)
at
org.geotools.coverage.grid.io.imageio.geotiff.GeoTiffMetadata2CRSAdapter.createCoordinateSystem(GeoTiffMetadata2CRSAdapter.java:206)
at org.geotools.gce.geotiff.GeoTiffReader.getHRInfo(GeoTiffReader.java:325)
... 6 more
Anyone knows if maybe i'm missing something? The geotiff is a specific band
from a landsat 7 scene, i upload it here in case you want to try.
https://www.sendspace.com/file/v6x7bj
Thanks
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users