Re: [gdal-dev] Problem with gdal_pansharpen tool

2016-04-22 Thread Even Rouault
Le vendredi 22 avril 2016 18:30:28, Lorenzo Bernardi a écrit : > Sorry. The same error: ERROR 1: Missing one of rasterXSize, rasterYSize or > bands on VRTDataset You still didn't reply to all ;-) OK, I see from the code that my proposed workaround will not work. You do need the Python bindings t

Re: [gdal-dev] Problem with gdal_pansharpen tool

2016-04-22 Thread Even Rouault
(Please keep the list CC'ed) > I tryed the solutions: gdal_pansharpen -of VRT panchro.tif > multispectral.tif pansharpend_output.vrt > but it does not work. That's not very informative for people not viewing your screen... Error message ? > > i'm not sure if i'm using the gdal-dev environment.

Re: [gdal-dev] Problem with gdal_pansharpen tool

2016-04-22 Thread Even Rouault
Le vendredi 22 avril 2016 17:57:57, Lorenzo Bernardi a écrit : > I'm using the gdal version provided with the OSGeo4W suite. > i have performed and updated just yesterday. > Do you know some solutions? I presume you use the gdal-dev environement ? If so, have a look at https://lists.osgeo.org/pipe

Re: [gdal-dev] Problem with gdal_pansharpen tool

2016-04-22 Thread Even Rouault
Le vendredi 22 avril 2016 17:37:19, Lorenzo Bernardi a écrit : > Hi, > i'm trying to perfom a pansharpening process using the gdal_pansharpen > tool. I used the following code: > > #!/usr/bin/env python > # -*- coding: utf-8 -*- > > > import sys, os > from osgeo import gdal > > def Usage(): >

[gdal-dev] Problem with gdal_pansharpen tool

2016-04-22 Thread Lorenzo Bernardi
Hi, i'm trying to perfom a pansharpening process using the gdal_pansharpen tool. I used the following code: #!/usr/bin/env python # -*- coding: utf-8 -*- import sys, os from osgeo import gdal def Usage(): print('Usage: gdal_pansharpen [--help-general] pan_dataset {spectral_dataset[,band=num