[Qgis-developer] Load SQLite table into QGIS

2011-10-10 Thread romain riviere
Hi, I know how to Load a spatiaLite spatial table into QGIS, but I can't find how to load a non spatial table (ie simple SQLite table). I've read the pyqgis cookbook, and QGs API, but didn't find any answer. I need a little help, Any hint ? Romain, * *

[Qgis-developer] Load non spatial data with pyqgis (csv, txt, sqlite)

2011-08-18 Thread romain riviere
Hi, I know that QGIS is able to load csv, txt and Sqlite tables (no geometry) via 'Load vector layer'. I wonder how to do this with pyqgis ? (the cookbook only describe loading spatial data). My goal is to Load a non geometric spatialite table, which is exactly the same as an sqlite table, in QG

Re: [Qgis-developer] Export MAPINFO: field DATE,DATETIME, ...

2011-08-12 Thread romain riviere
eger, Real and String field types can be created. The various list, >> and binary field types cannot be created. > > > I'm sure it could be patched to support datetime, just need to find someone > willing to do it. > > - Nathan > > On Fri, Aug 12, 2011 at 6:12 PM

[Qgis-developer] Export MAPINFO: field DATE,DATETIME, ...

2011-08-12 Thread romain riviere
Hi all, I was wondering why, in qgis 1.7, while saving an open mapinfo file as another mapinfo file, some fields are transformed: DATE, DATETIME, ... ex: mapinfo(DATE)->QGIS(DATE)->save as... mapinfo -> MAPINFO(TEXT) Is there a way to do that using QGIS Python API ? My goal was to export a laye

Re: [Qgis-developer] QGIS API: add new SRS to DataBase

2011-07-25 Thread romain riviere
Thanks ! That's exactly what I needed Romain, * * 2011/7/26 Giuseppe Sucameli > Hi Romain, > > On Mon, Jul 25, 2011 at 6:17 AM, romain wrote: > >> I'd like to allow my plugin's users to be able to create a new SRS ( from >> a >> proj4 string or wkt) within the plugin, and save it to QGIS srs

Re: [Qgis-developer] Re: QGIS API: change layer field length

2011-07-18 Thread romain riviere
Hi Martin, Thank you very much, this is exactly what i needed... However, you were right...the truncation seems to be a limitation of the OGR driver/Mapinfo Format. Thanks again, Romain, * * 2011/7/19 Martin Dobias > Hi Romain > > On Sun, Jul 17, 2011 at 11:23 PM, romain > wrote: > > Sorry

Re: [Qgis-developer] Re: QGIS API: change layer field length

2011-07-15 Thread romain riviere
I'm aware of that. But with python, i'd like to retrieve field length, and pass the values to qgsvectorlayer's fields. And I don't know how 2011/7/15, a.furi...@lqt.it : > On Fri, 15 Jul 2011 11:38:56 +0200, Tim Sutton wrote >> Hi >> >> I'm speaking under correction, but last time I read the s

[Qgis-developer] QGIS API: change layer field length

2011-07-07 Thread romain riviere
Hi, I'm using QGIS 1.7 (Windows Xp). I've created a layer in QGIS from a SpatiaLite DB ( qgsvectorlayer) I've checked with isValid(), every thing is all right. Now, I want to export this layer to MAPINFO, but before, I need to specify all fields length... Is it possible with QGIS API ? (Until no

[Qgis-developer] Calling GRASS From a Python QGIS Script

2011-06-27 Thread romain riviere
Hi all, I'm using windows XP and QGIS 1.7 (classic installation, python 2.5, grass 6.4.1 ). My Goal is to create a QGIS plugin for complex network analysis (TSP,steinman tree,...), using GRASS capabilities. It aims to be very user-friendly, and cross-platform. I'm trying to call GRASS from within