Change ColorMap of a RasterLayer

Discussion created by schmiddor on Jul 18, 2012
Latest reply on Jul 18, 2012 by schmiddor

sorry my bad english...

I have a RasterLayer with a RasterColormapRenderer. Now i want to make the color transparent. I take the Colors-Array of the Colormap and set the Value at the index to NoDataColor. After Creating a new Colormap I set the Colors to the new array.
Now I take the RasterDatasetEdit of the RasterLayer, delete the old ColorMap and set the new one.
The Changes are made, but the Source(the tiff-File!!!!) will be altered. What can I do?

Thanks for help.