Dear all,
did something change in 2.5.SNAPSHOT?
I am not able to write tifs anymore, based on my coverage, using:
GridCoverageFactory gcf = new GridCoverageFactory();
GridCoverage2D vscov = gcf.create("sometext", vshor,
geomEnvelope);
File tmpTiff = new
File("C:\\dev2J\\ViewshedService\\tmp\\testcov.tif");
GeoTiffWriter writer;
try {
writer = new GeoTiffWriter(tmpTiff);
writer.write(vscov, null );
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
With the error:
Exception in thread "main" java.lang.IllegalArgumentException: some
parameters are null
at
org.geotools.gce.geotiff.GeoTiffWriter.writeImage(GeoTiffWriter.java:373)
at org.geotools.gce.geotiff.GeoTiffWriter.write(GeoTiffWriter.java:223)
at
ch.uzh.geo.tomko.viewshedservice.ViewshedService.getSalientMountain(ViewshedService.java:440)
at
ch.uzh.geo.tomko.viewshedserviceclient.ViewshedServiceClientHor.main(ViewshedServiceClientHor.java:100)
I have been using the writer with writer.write(vscov, null ); before
without problems. What can be the deal?
Cheers
Martin
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users