Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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.

share|improve this question
add comment

1 Answer

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.

share|improve this answer
    
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. –  afalciano Oct 25 '13 at 13:01
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.