Re: [gdal-dev] Gdal_edit and -gcp as read-only

2021-11-22 Thread Even Rouault
Hi Jukka, from what I can see in https://github.com/OSGeo/gdal/commit/b5128c1ff3ac6ad44b225284f5be1f728840e7b3, this dates back to almost 20 years ago when SetGCPs() was initially implemented. And at that time, PAM didn't exist yet in GDAL :-) Please create a ticket about (and mention SetGeo

[gdal-dev] Gdal_edit and -gcp as read-only

2021-11-22 Thread Rahkonen Jukka (MML)
Hi, I tried to add ground control points into a TIFF file with gdal_edit. I do not want to touch the TIFF so I used the read-only option and supposed that gcp would be written into .aux.xml file but that did not happen. Instead I got a message gdal_edit -ro -gcp 1 1 20 30 test.tif ERROR 6: tes

Re: [gdal-dev] Gdal_edit and TIFFTAG_EXTRASAMPLES

2017-10-01 Thread Rahkonen Jukka (MML)
- Lähettäjä: Even Rouault Lähetetty: 1. lokakuuta 2017 22:54 Vastaanottaja: gdal-dev@lists.osgeo.org Kopio: Rahkonen Jukka (MML) Aihe: Re: [gdal-dev] Gdal_edit and TIFFTAG_EXTRASAMPLES Updates: 1) I've improved the GTiff driver to support updating

Re: [gdal-dev] Gdal_edit and TIFFTAG_EXTRASAMPLES

2017-10-01 Thread Even Rouault
Updates: 1) I've improved the GTiff driver to support updating color interpretation in udpate mode 2) I've improved gdal_edit to support a -colorinterp_X red|green|blue|alpha|undefined option where X is the band number. 3) I've fixed "tiffset -s ExtraSamples 1 val" to work (the issue was specif

Re: [gdal-dev] Gdal_edit and TIFFTAG_EXTRASAMPLES

2017-09-30 Thread Even Rouault
On samedi 30 septembre 2017 21:01:57 CEST Rahkonen Jukka (MML) wrote: > Hi, > > I have been searching an easy way to change the interpretion of 4-channel > images between RGBA and RGB+undefined. Wouldn't if be useful to make > gdal_edit to support also changing the TIFFTAG_EXTRASAMPLES metadata? O

[gdal-dev] Gdal_edit and TIFFTAG_EXTRASAMPLES

2017-09-30 Thread Rahkonen Jukka (MML)
Hi, I have been searching an easy way to change the interpretion of 4-channel images between RGBA and RGB+undefined. Wouldn't if be useful to make gdal_edit to support also changing the TIFFTAG_EXTRASAMPLES metadata? Or do we have some other easy way for performing that task? -Jukka Rahkonen-

Re: [gdal-dev] gdal_edit with ECW, parameter woes, documentation is probematic

2016-07-26 Thread Mark Johnson
Yes, that looks good. But also adapting the pages that use -co NAME=VALUE - such as http://www.gdal.org/gdal_translate.html -co "NAME=VALUE": Passes a creation option to the output format driver. Multiple -co options may be listed. See format specific documentation for legal creation options for

Re: [gdal-dev] gdal_edit with ECW, parameter woes, documentation is probematic

2016-07-26 Thread Even Rouault
Mark, I've tried to incorporate your feedback in this changeset: @@ -173,6 +173,16 @@ the PROJ, DATUM or UNITS with SetMetadataItem(), the later values will override the values built from the projection string. +All those can for example be modified with the -a_ullr, -a_srs or -mo switches +

[gdal-dev] gdal_edit with ECW, parameter woes, documentation is probematic

2016-07-26 Thread Mark Johnson
While writing this, I figured put most of the problems, so this note will be more about suggestion in making the documentation more usable. I am going to receive an amount of ecw files that, for whatever reason, do not contain the georeferenced information. For the first image received, gdalinfo

Re: [gdal-dev] Gdal_edit with -mo removes existing metadata

2015-01-13 Thread Even Rouault
Selon Jukka Rahkonen : > Hi, > > I noticed that when I tried to add one TIFFTAG metadata item with > gdal_edit.py by using the -mo option it wrote my new metadata and wiped away > all the existing TIFFTAG metadata. For the desired result I had to give the > whole list of metadata tags with repeate

[gdal-dev] Gdal_edit with -mo removes existing metadata

2015-01-13 Thread Jukka Rahkonen
Hi, I noticed that when I tried to add one TIFFTAG metadata item with gdal_edit.py by using the -mo option it wrote my new metadata and wiped away all the existing TIFFTAG metadata. For the desired result I had to give the whole list of metadata tags with repeated -mo options. Is this intentional

[gdal-dev] gdal_edit

2013-01-24 Thread Jean-Claude Repetto
Hello, This utility program is very useful to change georeferencing of a raster without having to decompress and recompress it. It is a lot faster and the quality is not changed. I think it would deserve to be an official GDAL 1.10 command, not just a Python sample. Jean-Claude __