[gdal-dev] HDF4 python add band

2014-04-26 Thread Luca Delucchi
Hi everybody, I'm working with HDF4Image and Python bindings, I would like to add new band after create the layer. When I try to use AddBand function it return: ERROR 6: "FILENAME" Dataset does not support the AddBand() method. It should be possible to make possible to use AddBand() also for th

Re: [gdal-dev] gdal autotest with gdal 1.11 (msvc2010)

2014-04-26 Thread Even Rouault
> set PYTHONPATH=E:\gdalautotest-1.11.0\pymod This is wrong. It should rather point to something like (don't copy that blindly. The end is certainly wrong) e:\gdal111_32bit_msvc2010\swig\python\build\lib.win32-3.3 But actually, just running "python setup.py install" in swig/python should be e

Re: [gdal-dev] ReprojectImage and nodata

2014-04-26 Thread Luca Delucchi
On 16 April 2014 16:00, Even Rouault wrote: Hi Even, > > Calling > > dst_ds.GetRasterBand(X).SetNoDataValue(nv) > dst_ds.GetRasterBand(X).Fill(nv) > > before gdal.ReprojectImage() should do what you want. > Yes, it seems correct. I have to test it a little bit more but the first results are goo

Re: [gdal-dev] gdal autotest with gdal 1.11 (msvc2010)

2014-04-26 Thread David Tran
I just tried to set those path with: set PATH=E:\gdal111_32bit_msvc2010\bin;%PATH% set PYTHONPATH=E:\gdalautotest-1.11.0\pymod set GDAL_DATA=E:\gdal111_32bit_msvc2010\data CMD shows me the same message as below. Original Message Subject: Re: [gdal-dev] gdal autotest with gda

Re: [gdal-dev] gdal autotest with gdal 1.11 (msvc2010)

2014-04-26 Thread Mateusz Łoskot
On 26 April 2014 21:16, David Tran wrote: > hi > > how does gdal autotest work? i compiled gdal 1.11 with vc10 and installed > python 3.4 and run_all.py: > >> Traceback (most recent call last): >> File "E:\gdalautotest-1.11.0\run_all.py", line 30, in >> import gdaltest >> File "pymod\gdal

[gdal-dev] gdal autotest with gdal 1.11 (msvc2010)

2014-04-26 Thread David Tran
hi how does gdal autotest work? i compiled gdal 1.11 with vc10 and installed python 3.4 and run_all.py: Traceback (most recent call last): File "E:\gdalautotest-1.11.0\run_all.py", line 30, in import gdaltest File "pymod\gdaltest.py", line 37, in from osgeo import gdal ImportErr

Re: [gdal-dev] debug ogr2ogr on Windows

2014-04-26 Thread Martin Landa
Hi, 2014-04-26 14:56 GMT+02:00 Martin Landa : > I tried to rebuild GDAL with OCI (not as a plugin). Then I can place a > brakepoint (no warning) to OCI driver, but when I debug ogr2ogr.exe > the debugger doesn't stop on this brakepoint. If I place another > brakepoint for e.g to GML driver (input

Re: [gdal-dev] debug ogr2ogr on Windows

2014-04-26 Thread Martin Landa
Hi, 2014-04-26 12:51 GMT+02:00 Martin Landa : > have still problem with debugging OCI driver. When I add breakpoint to > `OGROCIDataSource::Open` it doesn't work (No symbols has been loaded > for this document). I checked output and I found I tried to rebuild GDAL with OCI (not as a plugin). Then

Re: [gdal-dev] Sentinel driver

2014-04-26 Thread Even Rouault
Le vendredi 25 avril 2014 21:21:15, shawn gong a écrit : > Hi, > > Will there be a Sentenel-1 gdal driver soon? Drivers don't appear out of spontaneous generation -;) > I heard that it contains a GTiff and XML. There are interesting resources online: * introduction https://earth.esa.int/web/sen

Re: [gdal-dev] debug ogr2ogr on Windows

2014-04-26 Thread Martin Landa
Hi, 2014-04-25 21:37 GMT+02:00 Joaquim Luis : > File -> Open -> Project/Solution > > and load the executable. Yes, the executable. Than go to Project -> > Properties and, if needed change the Working directory, fill the "Arguments" > field with the command line options (but NOT the programs name)