[gdal-dev] Re: Gdal_translate, WMS source and own certificate

2010-12-21 Thread Jukka Rahkonen
Jukka Rahkonen mmmtike.fi> writes: > We would like to use gdal_translate for reading fromn our WMS service > which is> secured by our own certificate and thus not automatically > trusted. Our developer had a quick look on a gdal source code and > tried to find how options CURLOPT_SSL_VERIFYPE

Re: [gdal-dev] Re: Gdal_translate, WMS source and own certificate

2010-12-21 Thread Adam Nowacki
Can you test http://trac.osgeo.org/gdal/changeset/21304/trunk ? Add true inside . Jukka Rahkonen wrote: Jukka Rahkonen mmmtike.fi> writes: We would like to use gdal_translate for reading fromn our WMS service which is> secured by our own certificate and thus not automatically trusted. Our

[gdal-dev] Reading the WMS raster output

2010-12-21 Thread Cher Quisido
Hi, I am trying to add WMS support to our current GIS application. And I have some problems when reading the raster data. I get 3 bands on the call to GetRasterCount() but in the call to GetColorInterpretation() I get GCI_Undefined. I also get CE_Failure on my call to RasterIO(). I am using the

Re: [gdal-dev] Reading the WMS raster output

2010-12-21 Thread Even Rouault
Selon Cher Quisido : This has been fixed in GDAL 1.8.0dev. See http://trac.osgeo.org/gdal/ticket/3420 > Hi, > > I am trying to add WMS support to our current GIS application. And I have > some problems when reading the raster data. > > I get 3 bands on the call to GetRasterCount() but in the call

Re: [gdal-dev] Reading the WMS raster output

2010-12-21 Thread Cher Quisido
Hi, I finally managed to get the GetColorInterpretation() to return the correct values with gdal1.8.0dev but RasterIO() still gives me CE_Failure. [?] here's a snippet of the code: poBand = poDataset->GetRasterBand( bandNum ); int nXSize = poBand->GetXSize(); int nYSize = poBand->GetYSize(); GD

[gdal-dev] Re: Gdal_translate, WMS source and own certificate

2010-12-21 Thread Jukka Rahkonen
Adam Nowacki xpam.de> writes: > > Can you test http://trac.osgeo.org/gdal/changeset/21304/trunk ? Add > true inside . Yes, it works. However, the ticked appeared to be a duplicate for #3510, and the attached patch is solving the problem as well. You, the developers need to choose which fix to

Re: [gdal-dev] Reading the WMS raster output

2010-12-21 Thread Cher Quisido
i got it! i was using the wms sample xml and im behind proxy that's why i could never get a response from the server. works now with my local server ;) On Tue, Dec 21, 2010 at 8:27 PM, Cher Quisido wrote: > Hi, I finally managed to get the GetColorInterpretation() to return the > correct values

[gdal-dev] Can not run ogr2ogr from a web server running PHP

2010-12-21 Thread Peter Hopfgartner
I'm trying to run ogr2ogr from a PHP script. This runs fine, if the script is run from the command line. It does not work if run through the web server. The scripts basically runs: /usr/local/bin/ogr2ogr -f 'ESRI Shapefile' '/tmp/tmp_plant_cfa4f818c6c5c1e7881b' 'OCI:plantmap/plantm...@plantmap'

RE: Re: [gdal-dev] Can not run ogr2ogr from a web server running PHP

2010-12-21 Thread Peter Hopfgartner
Hi Pavel. Thanks for your quick response. Anyway, I did the following test: I have a PHP file (env.php): /u01/app/oracle/product/11.1.0/db_1 [1] => plantmap [2] => oracle [3] => :/u01/app/oracle/product/11.1.0/db_1/lib ) , so the environment variables are passed correctly to the call

[gdal-dev] Issues converting images

2010-12-21 Thread Michael Buchoff
We are currently having issues downconverting an 11-bit img file pointing to a 16-bit histogram into an 8-bit tiff file for common viewers. The gdalinfo for the sourcefile is on pastebin (http://pastebin.com/2QBuqwEp). Do you have any recommendations on how we can do this? Thanks in advance.

Re: [gdal-dev] Issues converting images

2010-12-21 Thread Even Rouault
Le mardi 21 décembre 2010 19:50:13, Michael Buchoff a écrit : > We are currently having issues downconverting an 11-bit img file > pointing to a 16-bit histogram into an 8-bit tiff file for common > viewers. The gdalinfo for the sourcefile is on pastebin > (http://pastebin.com/2QBuqwEp). Do you h

RE: [gdal-dev] Issues converting images

2010-12-21 Thread Michael Buchoff
As far as I can tell, the -scale option only sets the terrain extents. GDAL seems to be handing this fine. We are looking to downconvert our bits-per-pixel and preferably strip out the histogram for something more widely recognized. Am I misunderstanding something? -Original Message-

Re: [gdal-dev] Re: Gdal_translate, WMS source and own certificate

2010-12-21 Thread Even Rouault
Adam, I also think it would be better if we had the same options for the WMS and WCS drivers. I'm wondering if there's a reason for not turning off SSL verification by default. I guess the SSL peer verification makes mostly sense for a web browser where you could access some rogue site asking f

Re: [gdal-dev] Issues converting images

2010-12-21 Thread Even Rouault
Le mardi 21 décembre 2010 20:06:16, Michael Buchoff a écrit : > As far as I can tell, the -scale option only sets the terrain extents. > GDAL seems to be handing this fine. We are looking to downconvert our > bits-per-pixel and preferably strip out the histogram for something more > widely recogn

[gdal-dev] Disable PHP (and Ruby ?) bindings from GDAL configure ?

2010-12-21 Thread Even Rouault
Hi, I'm wondering if it still makes sense to list the PHP bindings in the configure script as they are unmaintained and probably broken partially / completely, as new typemaps have been added since the time they were first introduced. Users would still be able to cd swig/php; make build; make i

[gdal-dev] Naive warping question

2010-12-21 Thread Brian Hamlin
Hi All- I have a series of tiffs, georef'd in 4326, which side by side cover >1000 km at latitude 38 California from the coast past the borders I warped them all to 3310 using gdalwarp with default settings.. However, the resulting images appear to leave a sliver between them In other words

Re: [gdal-dev] Naive warping question

2010-12-21 Thread Eli Adam
Brian, You could try gdalbuildvrt, then gdalwarp that with -of VRT, then tile it how you like with gdal_translate. I think that gdal_retile.py has some options to do what you want as well. I think that the slivers are probably because the projections have different angles of rotatio

Re: [gdal-dev] Disable PHP (and Ruby ?) bindings from GDAL configure ?

2010-12-21 Thread Francesco P. Lovergine
On Tue, Dec 21, 2010 at 08:56:23PM +0100, Even Rouault wrote: > > We could wonder about the Ruby bindings situation that lack for maintener > love > as well. The situation is a bit different here since I see that at least > Fedora > and Debian still package them, so I guess they must be still