[gdal-dev] URL encode the layer name when constructing the WMS sub datasets

2014-10-15 Thread Timothy Astle
Does anyone have any thoughts on this minor change to where the URL encoding for the layer name is handled? In the pull request, I've moved it so that it is done when the sub dataset URL is created. It just makes things a lot clearer to work with as I know the URL can be treated as-is when I

Re: [gdal-dev] JP2 files created with JP2OpenJPEG can only have 1 or 3 bands?

2014-10-15 Thread Even Rouault
Le mercredi 15 octobre 2014 22:03:32, Paul Hasenohr a écrit : > Hello Even, > > Thank you for your answer. > > In fact in my case, this 4th band is for a Near Infra Red channel so I > definitely do not want to have it labelled as alpha! > But I will have other satellite images with more than 4 ba

Re: [gdal-dev] JP2 files created with JP2OpenJPEG can only have 1 or 3 bands?

2014-10-15 Thread Paul Hasenohr
Hello Even, Thank you for your answer. In fact in my case, this 4th band is for a Near Infra Red channel so I definitely do not want to have it labelled as alpha! But I will have other satellite images with more than 4 bands (plus possibly an alpha band). Would it be possible to simply remove

Re: [gdal-dev] JP2 files created with JP2OpenJPEG can only have 1 or 3 bands?

2014-10-15 Thread Even Rouault
Le mercredi 15 octobre 2014 21:19:37, Paul Hasenohr a écrit : > Hello, > > I just compiled gdal-1.11.1 with support for jpeg2000 through OpenJPEG > and wanted to convert a 4 bands TIFF file (with LZW compression) into a > lossless JP2 file. > While attempting to run gdal_translate, I received this

[gdal-dev] JP2 files created with JP2OpenJPEG can only have 1 or 3 bands?

2014-10-15 Thread Paul Hasenohr
Hello, I just compiled gdal-1.11.1 with support for jpeg2000 through OpenJPEG and wanted to convert a 4 bands TIFF file (with LZW compression) into a lossless JP2 file. While attempting to run gdal_translate, I received this error message ERROR 6: Unable to export files with 4 bands Looking

Re: [gdal-dev] Remove Black Areas From Rotated Images

2014-10-15 Thread Even Rouault
Le mercredi 15 octobre 2014 16:30:19, M Lewis a écrit : > I have searched and found lots of similar queries but nothing that quite > gives me the answer that I am looking for (as they all appear to be related > to gdal_translate rather than the C++ API.) > > We have a set of strips of grey scale s

[gdal-dev] Remove Black Areas From Rotated Images

2014-10-15 Thread M Lewis
I have searched and found lots of similar queries but nothing that quite gives me the answer that I am looking for (as they all appear to be related to gdal_translate rather than the C++ API.) We have a set of strips of grey scale satellite imagery that are rotated. I use AutoCreateWarpedVRT to g

Re: [gdal-dev] Problems with HDF4

2014-10-15 Thread Jonathan Greenberg
Ok, to follow up I got it figured out -- I needed to configure --enable-shared for HDF4: ./configure --disable-fortran --disable-netcdf --enable-shared It turns out I have another piece of software that required the HDF4 fortran libraries (which can't exist along with a shared library install), s

[gdal-dev] Batch Process: Check for newest files then Batch Project the newest files added to a directory and Make it automated

2014-10-15 Thread Love
How will I do this in batch process: I have bunch of hdf files downloaded from the ftp and saved to a directory, and in everyday there are newest files added to the ftp available for download, then I'll download those newest files . Now, how will I check if there are new files added to the hdf dir