[gdal-dev] Re: several No data value

2010-12-10 Thread ludovic
ot; but we can add a flag option for that we try to open a file we can merge all no data value. I had read the rfc15 and i will think about this Best Regards Ludovic On 8 déc, 18:46, Frank Warmerdam wrote: > I have lost track of what driver we are discussing.  It is certainly > possibl

[gdal-dev] Re: patch for ISIS2 driver

2010-12-07 Thread Ludovic Mercier
s reference document appendix I.3.3 it is normal to have two sections compressed and uncompressed in the same label. But your link have only compressed_file tag. I m agree with you in the case of we have compressed file the driver for this time must report an appropriate warning. Regards, Lud

[gdal-dev] Re: patch for ISIS2 driver

2010-12-07 Thread Ludovic Mercier
thms for working on hyperspectral data from spacecraft (planetary mission) : OMEGA, CRISM, VIRTIS, etc. Regards Ludovic Response to comment : /i have a patch for gdal 1.7.3 to improve isis2 driver./ /* writing functionality for QUBE object //-/ again I would like to see an attempt at supporti

[gdal-dev] Re: patch for ISIS2 driver

2010-12-07 Thread ludovic
lpful for testing I > think. Ok i'm looking to it. Ludovic ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] Re: several No data value

2010-12-06 Thread ludovic
ot; (or "change") the gdal read function in a driver ? If is the reading behaviour of gdal can't be changed in a driver, too bad ! I would do this has a higher level software. Best regards Ludovic. ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] patch for ISIS2 driver

2010-12-06 Thread Ludovic Mercier
easily merge pdsdataset.cpp and isis2dataset.cpp pdsdataset work on IMAGE tag and isis2 on QUBE tag but it is the same workflow for all object (QUBE, IMAGE or SPECTRAL_QUBE) Warning for writing no geographical information are writing now, and create_copy is not implemented. Ludovic. Index: gdal

[gdal-dev] several No data value

2010-12-02 Thread Ludovic Mercier
n for this case ? A practical exemple is : data is REAL typically [-2E-5, 2E-5] no data value is -1004 instrument saturation is -1001 thanks by advance for yours suggestions. Ludovic ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.

Re: [gdal-dev] Delete a sqlite database

2010-11-29 Thread Ludovic Granjon
Hello Even Yes you are right, it works perfectly Thanks a lot Ludovic Le 28/11/2010 17:23, Even Rouault a écrit : Le lundi 22 novembre 2010 10:26:26, Ludovic Granjon a écrit : Hi all I try in a python script to delete a sqlite database that I use in an OGR ExecuteSQL. Let me give you an

Re: [gdal-dev] Delete a sqlite database

2010-11-24 Thread Ludovic Granjon
Hi all Finally I solved my problem with an over way : I don't call a datasource.executeSQL for my join. Now I did my join with python and than I can manage my sqlite connection and than I'm able to close it correctly. So it works for me now Thanks Ludovic Le 22/11/2010 15:42, Jason

Re: [gdal-dev] Delete a sqlite database

2010-11-22 Thread Ludovic Granjon
Le 22/11/2010 15:24, Frank Warmerdam a écrit : Ludovic Granjon wrote: Hi all I try in a python script to delete a sqlite database that I use in an OGR ExecuteSQL. Let me give you an example : If I do : >>> from osgeo import * >>> import os >>> datasource = ogr.Op

[gdal-dev] Delete a sqlite database

2010-11-22 Thread Ludovic Granjon
s ne peut pas accéder au fichier car ce fichier est utilisé par un autre processus: 'project.sqlite' Do you know a way to do that ? Thanks Best regards Ludovic <>___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] OGR - GetLength in Python

2010-11-22 Thread Ludovic Granjon
Le 19/11/2010 07:22, Ari Jolma a écrit : On 11/18/2010 03:52 PM, Ludovic Granjon wrote: Hi all I try to calculate the length of a linestring in python. But is there a way in python with ogr to calculate this. I see there's a GetLength() in the OGRLineString Class Reference

[gdal-dev] OGR - GetLength in Python

2010-11-18 Thread Ludovic Granjon
Hi all I try to calculate the length of a linestring in python. But is there a way in python with ogr to calculate this. I see there's a GetLength() in the OGRLineString Class Reference http://www.gdal.org/ogr/classOGRLineString.html#7b3dc3abefd16aea17ac9fcc0ccd0010 , but I don't see if there

Re: [gdal-dev] get back a layer objet with ogr in python

2010-08-05 Thread Ludovic Granjon
Ok I understand Thanks it work perfectly Ludovic Le 05/08/2010 09:36, Francis Markham a écrit : The driver and datasource are going out of scope. The former can be fixed by using ogr.Open instead of driver.Open The latter can be fixed by returning it from the function. A revised version of

[gdal-dev] get back a layer objet with ogr in python

2010-08-05 Thread Ludovic Granjon
Hello I'm trying to develop with ogr in python. I'm on ubuntu 10.4 and I use gdal 1.7 When I try to get back a layer object from a function, I have the following message when I do python monscript.py : "Erreur de segmentation" This is my code : --- # import modules from o

[gdal-dev] how to acces to PDS meta data

2009-01-13 Thread Ludovic Mercier
Hi all, I try to use gdal and otb (http://smsc.cnes.fr/PLEIADES/lien3_vm.htm) with pds file. I try to get value associated to a key (meta-data). for an exemple the file : Index of /gdal/data/mc02.img contain : SPACECRAFT_NAME= "MARS GLOBAL SURVEYOR" INSTRUMENT_NAME=