<div><div style="color:rgb(0,0,0);font-family:Arial,sans-serif;font-size:15px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;text-align:start;text-transform:none;white-space:normal;background-color:rgb(255,255,255);">Greetings:</div><div style="color:rgb(0,0,0);font-family:Arial,sans-serif;font-size:15px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;text-align:start;text-transform:none;white-space:normal;background-color:rgb(255,255,255);">Referencing this blog post<span> </span><a target="_blank" style="color:rgb(153,0,153);" href="http://erouault.blogspot.com/2015/10/gdal-and-ogr-utilities-as-library.html">http://erouault.blogspot.com/2015/10/gdal-and-ogr-utilities-as-library.html</a> I need to use the "new" Translate method in the GDAL Java API. However, the Translate method is not even in GDAL2.1.0 available at Maven (TranslateOptions is in there, but not Translate). The Windoze versions of GDAL available at GISInternals also do not seem to have the Translate method, although I did find one version that has it, I've added it to an IntelliJ project as a library.</div><div style="color:rgb(0,0,0);font-family:Arial,sans-serif;font-size:15px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;text-align:start;text-transform:none;white-space:normal;background-color:rgb(255,255,255);"> </div><div style="color:rgb(0,0,0);font-family:Arial,sans-serif;font-size:15px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;text-align:start;text-transform:none;white-space:normal;background-color:rgb(255,255,255);">Question1: Is it "supposed" to be available at this time?</div><div style="color:rgb(0,0,0);font-family:Arial,sans-serif;font-size:15px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;text-align:start;text-transform:none;white-space:normal;background-color:rgb(255,255,255);"> </div><div style="color:rgb(0,0,0);font-family:Arial,sans-serif;font-size:15px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;text-align:start;text-transform:none;white-space:normal;background-color:rgb(255,255,255);">There is little/no documentation on how to use the Translate method. I'm guessing here, but the way I'm trying to use it is:</div><div style="color:rgb(0,0,0);font-family:Arial,sans-serif;font-size:15px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;text-align:start;text-transform:none;white-space:normal;background-color:rgb(255,255,255);"> </div><div style="color:rgb(0,0,0);font-family:Arial,sans-serif;font-size:15px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;text-align:start;text-transform:none;white-space:normal;background-color:rgb(255,255,255);"><pre style="background-color:#2b2b2b;color:#a9b7c6;font-family:consolas;font-size:10.8pt;"><span style="color:#40b535;">Vector</span><<span style="color:#40b535;">String</span>> optionsVector = <span style="color:#cc1021;">new </span>Vector<>();
optionsVector.add(<span style="color:#f2f648;">"of PNG"</span>);
optionsVector.add(<span style="color:#f2f648;">"outsize 128 128"</span>);
<span style="color:#40b535;">TranslateOptions </span>options = <span style="color:#cc1021;">new </span>TranslateOptions(optionsVector);

<span style="color:#40b535;">Dataset </span>dst = <span style="color:#40b535;">org.gdal.gdal.gdal</span>.<em style="font-style:italic;">Translate</em>(<span style="color:#f2f648;">"b:/temp/translateTest.png"</span>, ds, options);</pre><div> </div><div>The input dataset (ds) is a GeoTiff, I'm just trying to create a .png thumbnail. The call to Translate does indeed write a translateTest.png file to disk, but it's just the original geotiff - renamed, not a .png, and not re-sized.</div><div>I do not know what the "arguments" in the optionsVector are supposed to be (It does throw an exception if I put in -of PNG, it doesn't like the hyphen), and I've also tried "one per add" (.add("of"), .add("PNG"))</div><div> </div><div>Question2: If this thing is supposed to be ready for prime-time, what is the TranslateOptions object supposed to contain?  What is the correct way to populate it and what are valid "arguments"?</div><div> </div><div>Help/advice appreciated.</div></div></div>