Hello everyone,

I have a short question about keeping all metadata of a GeoTiff, which
was modified by GeoTools.

I am using GeoTools to read a GeoTiff input stream, modify it and
finally write it to an output stream.
First, the input is read by the GeoTiffReader, then the GridCoverage2D
is modified and finally the GeoTiffWriter writes the modified
GridCoverage2D to an output stream.

It is important that the input and output streams have exactly the same
metadata.
Unfortunately, I did not find any method or way to copy all metadata of
the input to the output.
The GeoTiffWriter just offers the method "setMetadataValue" which allows
to set single metadata values. As the value parameter can only be a
string, it is impossible to set more complex tiff tags (e.g. XResolution).

Can anyone help me, if there is a way to keep all metadata of a GeoTiff,
which was modified by GeoTools?

Thanks for any help.

Kind regards,
Dirk

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to