Hi list,<br>I have some problems to set metadata in a dataset (as an instance, a GeoTiff) using Java bindings.<br>I&#39;m attempting to add some metadata in the default domain (&quot;&quot;). 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(&quot;IMAGE__INPUT_NAME=temp&quot;,&quot;&quot;);<br>dataset.setMetadata(&quot;IMAGE__WIDTH=3000&quot;,&quot;&quot;);<br>
dataset.setMetadata(&quot;IMAGE__HEIGHT=3000&quot;,&quot;&quot;);<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 &quot;overriding&quot;? 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&#39;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: &nbsp; &nbsp; +39 0584983027<br>mob: &nbsp; +39 328 0559267<br><br><br><a href="http://www.geo-solutions.it">http://www.geo-solutions.it</a><br><br>-------------------------------------------------------
<br>