Re: [Qgis-user] PyQGIS: how to create a layer in the console ?

2011-04-30 Thread Martin Dobias
Hi gene On Thu, Apr 28, 2011 at 8:38 PM, gene martin.lal...@gmail.com wrote: Hello, I'm trying to directly import Excel files with the Python module xlrd in the console:     from PyQt4.QtCore import *     import xlrd     wb = xlrd.open_workbook('testxy.xls')     sh = wb.sheet_by_index(0)  

[Qgis-user] PyQGIS: how to create a layer in the console ?

2011-04-28 Thread gene
Hello, I'm trying to directly import Excel files with the Python module xlrd in the console: from PyQt4.QtCore import * import xlrd wb = xlrd.open_workbook('testxy.xls') sh = wb.sheet_by_index(0) for rownum in range(sh.nrows): ...print