Re: [gdal-dev] Gdal Java - Translate creates indestructible file

2017-03-16 Thread Vlad
My bad, was trying to save a variable declaration. Thanks. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Gdal-Java-Translate-creates-indestructible-file-tp5312723p5312726.html Sent from the GDAL - Dev mailing list archive at Nabble.com. __

[gdal-dev] Gdal Java - Translate creates indestructible file

2017-03-16 Thread Vlad
Almost indestructable. Making a .png thumbnail... public String produceThumbnail(Dataset ds, Path tempPath) { Vector optionsVector = new Vector<>(); optionsVector.add("-of"); optionsVector.add("PNG"); optionsVector.add("-outsize"); optionsVector.add("128");

Re: [gdal-dev] Gdal Java - Translate creates indestructible file

2017-03-16 Thread Even Rouault
> Is it possible the Translate() method is not closing a Stream somewhere? Absolutely, it returns a valid Dataset object, and thus (on Windows, you are on Windows I guess), you need to close it with .delete() explicitly to release the file handle it owns. Even -- Spatialys - Geospatial profe