[gdal-dev] SRS definition

2017-10-30 Thread Ari Jolma
Rasdaman writes SRS definitions such as "http://ows.rasdaman.org/def/crs/EPSG/0/32633"; in WCS coverage descriptions. The URL returns a gml:ProjectedCRS XML. GDAL fetches the XML but then gives up in SetFromUserInput since it only expects "..that this method will be extended in the future to su

Re: [gdal-dev] WCS driver

2017-10-30 Thread Ari Jolma
Even Rouault kirjoitti 30.10.2017 klo 22:41: On lundi 30 octobre 2017 10:54:56 CET Ari Jolma wrote: > > XML namespaces can be declared in any element and then they are in > effect in that element and in all of its children unless they override > the namespace declarations. > Yes, XML can

Re: [gdal-dev] OGC announces a new standard that improves the way information is referenced to the earth

2017-10-30 Thread Ari Jolma
That also caught my eye. The text sounds a bit like marketing talk but maybe there is something. From a quick look my understanding is that the idea is to create a grid that divides the whole earth into cells of similar shape in a sequence of increasing cell size. And that sounds to me like a

Re: [gdal-dev] About CMake build again

2017-10-30 Thread Even Rouault
Hi, Trying to sum up my thoughts on this topic and answering to various points raised in this discussion thread: - I believe a relevant question to ask to ourselves would be: "imagine that GDAL would come without any build system at all, what is the one that we would add" ? Ok, that's a bit

Re: [gdal-dev] Crash using mem raster on Windows

2017-10-30 Thread Even Rouault
On lundi 30 octobre 2017 18:08:52 CET Andrew Bell wrote: > On Mon, Oct 30, 2017 at 4:36 PM, Even Rouault > > wrote: > > Andrew, > > > > > I'm creating a memory raster using the following code: > > > > > > [...] > > > > > > I read the three bands in succession. This works fine on OSX/Linux, but

[gdal-dev] Issues with bipolar conic western hemisphere projection (+proj=bipc +ns)

2017-10-30 Thread btjakes
Hi, I've brought up this issue on stackoverflow but thought I'd get better visibility here. https://stackoverflow.com/questions/47019616/gdal-doesnt-recognize-bipolar-conic-western-hemisphere-projection I'm having trouble with a particular projection. It seems supported within proj4 (http://proj4.

Re: [gdal-dev] Saving style/color table inside tiff

2017-10-30 Thread Even Rouault
On lundi 30 octobre 2017 15:36:43 CET Idan Miara wrote: > Hi, > > I would like to ask a few questions regarding color table/style inside > Tiffs (or any other standard raster format for that matter): > > 1. Single Band Byte Raster without scale/offset - I could a Byte band Tiff > with color table

Re: [gdal-dev] WCS driver

2017-10-30 Thread Even Rouault
On lundi 30 octobre 2017 10:54:56 CET Ari Jolma wrote: > Ari Jolma kirjoitti 24.10.2017 klo 17:07: > > Whoa! How hard can XML be? I have a real Capabilities document (from > > well known company) which defines *both* default and ows namespace to > > http://www.opengis.net/ows/2.0. > > Seems that X

Re: [gdal-dev] write nodata value using using creation option

2017-10-30 Thread Even Rouault
On lundi 30 octobre 2017 16:16:12 CET Rashad Kanavath wrote: > Hello, > > Is it possible to set nodata using -co option.? > > gdal_translate input.tif output.tif -co TIFFTAG_GDAL_NODATA=-3 > Input file size is 500, 500 > Warning 6: driver GTiff does not support creation option TIFFTAG_GDAL_NO

Re: [gdal-dev] Crash using mem raster on Windows

2017-10-30 Thread Even Rouault
Andrew, > I'm creating a memory raster using the following code: > [...] > I read the three bands in succession. This works fine on OSX/Linux, but > fails when attempting to read the second band on Windows. Any thoughts on > what might be the issue? You need to use CPLPrintPointer() to format th

Re: [gdal-dev] About CMake build again

2017-10-30 Thread John Daniel
Xcode builds, targeting both macOS and iOS, are my primary concern. I have to use CMake for MySQL and JPEG2000. MySQL is only for server-side work and testing because licensing issues keep it out of any distributed products. JPEG2000 works fine. I have tried and failed to get the current, CMake-

Re: [gdal-dev] write nodata value using using creation option

2017-10-30 Thread jratike80
rashadkm wrote > Hello, > > Is it possible to set nodata using -co option.? > > gdal_translate input.tif output.tif -co TIFFTAG_GDAL_NODATA=-3 > Input file size is 500, 500 > Warning 6: driver GTiff does not support creation option > TIFFTAG_GDAL_NODATA > 0...10...20...30...40...50...60...70.

[gdal-dev] Crash using mem raster on Windows

2017-10-30 Thread Andrew Bell
Hi, I'm creating a memory raster using the following code: std::string makeColor() { // Red is specified. Green and blue are 0. static uint8_t rgb[12] = { 1, 2, 3, 4 }; std::ostringstream ss; ss << "MEM:::PIXELS=4,LINES=1,BANDS=3,DATAPOINTER=" << &rgb; return ss.str(); } I

[gdal-dev] write nodata value using using creation option

2017-10-30 Thread Rashad Kanavath
Hello, Is it possible to set nodata using -co option.? gdal_translate input.tif output.tif -co TIFFTAG_GDAL_NODATA=-3 Input file size is 500, 500 Warning 6: driver GTiff does not support creation option TIFFTAG_GDAL_NODATA 0...10...20...30...40...50...60...70...80...90...100 - done. Accordin

[gdal-dev] Saving style/color table inside tiff

2017-10-30 Thread Idan Miara
Hi, I would like to ask a few questions regarding color table/style inside Tiffs (or any other standard raster format for that matter): 1. Single Band Byte Raster without scale/offset - I could a Byte band Tiff with color table with gdal and load it successfully in QGIS, but if I try to save a co

Re: [gdal-dev] About CMake build again

2017-10-30 Thread Ari Jolma
Mateusz Loskot kirjoitti 30.10.2017 klo 11:24: On 30 October 2017 at 10:06, Dmitry Baryshnikov wrote: Also there is one big problem for me in #7080 - this is third build system additionally to GNUMakefile, makefile.vc. And now CMakeLists.txt must be supported too. Three files which must be syn

Re: [gdal-dev] About CMake build again

2017-10-30 Thread Mateusz Loskot
On 30 October 2017 at 10:42, Dmitry Baryshnikov wrote: > > If really "there is no plan or even will for such switch in GDAL" I think > nothing to discuss here. I indicated that it is "AFAIU". I may be wrong. Personally, I gave up about CMake for GDAL and I use the official build systems. Luckily

Re: [gdal-dev] About CMake build again

2017-10-30 Thread Dmitry Baryshnikov
Hi Mateusz, If really "there is no plan or even will for such switch in GDAL" I think nothing to discuss here. The ticket #7080 should be closed and let's continue to live with current developing approach. Which solution, my or Hiroshi, will more popular show the time. Best regards, Dm

Re: [gdal-dev] About CMake build again

2017-10-30 Thread Mateusz Loskot
On 30 October 2017 at 10:06, Dmitry Baryshnikov wrote: > > Also there is one big problem for me in #7080 - this is third build system > additionally to GNUMakefile, makefile.vc. And now CMakeLists.txt must be > supported too. Three files which must be synced each other with and taking > into cons

Re: [gdal-dev] About CMake build again

2017-10-30 Thread Dmitry Baryshnikov
Hi Alexander, CMake scripts from #7080 have no logic presented in current building system (make/autoconf): there are several mandatory drivers, the optional drivers, and drivers depends from other drivers. Also there is one big problem for me in #7080 - this is third build system additionall

Re: [gdal-dev] WCS driver

2017-10-30 Thread Ari Jolma
Ari Jolma kirjoitti 24.10.2017 klo 17:07: Whoa! How hard can XML be? I have a real Capabilities document (from well known company) which defines *both* default and ows namespace to http://www.opengis.net/ows/2.0. Seems that XML is actually much harder than that :) XML namespaces can be de

Re: [gdal-dev] About CMake build again

2017-10-30 Thread Alexander Bruy
Hi Dmitry, thanks for explanation. I see that there is an option to use system libraries. Maybe I'm wrong, but this is also possible with current build system and CMake scripts from #7080. There is an option to build deps by myself and use them to build GDAL, but again this is also possible with c