[gdal-dev] Skipping PHOTOMETRIC=YCBCR when not reasonable

2013-11-01 Thread Jukka Rahkonen
Hi, Gdal_translate throws ERROR 6: PHOTOMETRIC=YCBCR requires a source raster with only 3 bands (RGB) if user tries to apply YCBCR to non-RGB image. It means that when I have a mixture of RGB and B/W images I must separate them before making batch jobs. I think that nothing bad would happen if

Re: [gdal-dev] Skipping PHOTOMETRIC=YCBCR when not reasonable

2013-11-01 Thread Even Rouault
Jukka, It is difficult to guess if the option specified by the user is something that he wants absolutely to be honoured (and in case it is not possible, an error is expected), or if it is just a hint that can be ignored if necessary. So the current behaviour seems OK to me. Your script

Re: [gdal-dev] Skipping PHOTOMETRIC=YCBCR when not reasonable

2013-11-01 Thread Rahkonen Jukka
Hi, Yes, it is understandable because there are so many parameters which may be wrong. I still don't write any other scripts than Windows batch files and testing the return codes is not my business. I will continue by sorting the source files as well as I can and running the batch a second

Re: [gdal-dev] Skipping PHOTOMETRIC=YCBCR when not reasonable

2013-11-01 Thread Even Rouault
Le vendredi 01 novembre 2013 15:56:39, Rahkonen Jukka a écrit : Hi, Yes, it is understandable because there are so many parameters which may be wrong. I still don't write any other scripts than Windows batch files and testing the return codes is not my business. I will continue by sorting

[gdal-dev] Docs attribution for upcoming book!

2013-11-01 Thread TYLER MITCHELL
Hi all, I'm working with Gary Sherman via Locate Press to (finally) publish the GDAL reference manual, along with some more examples and other GDAL/OGR related material I've written over the past year. It will be in a book entitle Geospatial Power Tools. I just wanted to let you know about

Re: [gdal-dev] Docs attribution for upcoming book!

2013-11-01 Thread Frank Warmerdam
Tyler, That approach sounds good to me. I look forward to seeing the book. Best regards, Frank On Fri, Nov 1, 2013 at 12:55 PM, TYLER MITCHELL tylermitch...@shaw.cawrote: Hi all, I'm working with Gary Sherman via Locate Press to (finally) publish the GDAL reference manual, along with