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
n...@lists.osgeo.org] On Behalf Of Frank Warmerdam Sent: Monday, November 22, 2010 9:24 AM To: Ludovic Granjon Cc: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] Delete a sqlite database Ludovic Granjon wrote: Hi all I try in a python script to delete a sqlite database that I use in an OGR Exe

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
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.Open("decoupe.shp") >>> layer = datasource.GetLayer() >>> joinLayer=datasource.ExecuteSQL("SELECT decoup

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
('/data/axe.shp') print couche.GetName() On 5 August 2010 17:23, Ludovic Granjon <mailto:ludovic.gran...@u-bourgogne.fr>> wrote: 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 o

[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