There is a method with GDAL (used in C/C++) to edit pixel values of a georeferenced image, maintaining the original file? Or I have to create a new dataset? My goal is to maintain ALL originals metadata, so I think the creation of a new dataset is drawback.
Asked
Active
Viewed 1,979 times
1 Answers
2
You can edit pixel values using gdal_calc.py creating a new dataset and maintaining all the original metadata. For instance, see this useful example: How to conditionnally assign a new value to pixels of a raster image? Alternatively you can write your own Python scripts to do more complex calculations.
Antonio Falciano
- 14,333
- 2
- 36
- 66
-
Thank you for the answer. I didn't write that I use GDAL in C/C++. Sorry. – B.O. Oct 25 '13 at 12:34
-
So you can start from the GDAL API Tutorial. – Antonio Falciano Oct 25 '13 at 13:01