Hi list,<br>I have some problems to set metadata in a dataset (as an instance, a GeoTiff) using Java bindings.<br>I'm attempting to add some metadata in the default domain (""). I also have enabled the PAM mechanism which should allow to add auxiliary metadata.
<br><br>Now, when I attempt to set several metadata using the following code,<br>dataset.setMetadata("IMAGE__INPUT_NAME=temp","");<br>dataset.setMetadata("IMAGE__WIDTH=3000","");<br>
dataset.setMetadata("IMAGE__HEIGHT=3000","");<br clear="all"><br>only the last one (IMAGE__HEIGHT=3000) is displayed when calling gdalinfo on the just created output dataset.<br>Is the setMetadata method "overriding"? I mean: does any setMetadata call override the last set value?
<br>Finally, I also have attempted to directly use an HashTable as input parameter of setMetadata and the JVM crashes.<br>(I also have tuned the HashTable to be sure it does not contains null keys/entries).<br><br>Is there someone which has already set metadata via Java Bindings? Maybe I'm using a wrong approach.
<br>Thanks for any help.<br><br>Best Regards,<br>Daniele Romagnoli<br><br><br>-- <br>-------------------------------------------------------<br>Eng. Daniele Romagnoli <br>Software Engineer<br><br>GeoSolutions S.A.S.<br>Via Carignoni 51
<br>55041 Camaiore (LU)<br>Italy<br><br>phone: +39 0584983027<br>fax: +39 0584983027<br>mob: +39 328 0559267<br><br><br><a href="http://www.geo-solutions.it">http://www.geo-solutions.it</a><br><br>-------------------------------------------------------
<br>