[Qgis-user] Processing modeler inputs and PostgreSQL execute SQL

2019-01-29 Thread Alexandre Busquets
Is it possible to add "Input" parameters to "PostgreSQL execute SQL" sql query, like [buffer] {buffer}? Thanks Alexandre Busquets Triola GIS Software Analyst & Developer - Skype: alexandre.busquets ___ Qgis-user mailing list Q

[Qgis-user] Qgis Server 2.12 - WFS no data

2015-11-23 Thread Alexandre Busquets
Hi, I'm using ubuntu 14.04.3 LTS and qgis-server_2.12.0. The wms service is working correctly but wfs no, I can't get data. For testing I install qgis-mapserver, the default package from ubuntu 14.04 and wfs returns data. Any idea? Thanks. ___ Qgis-us

Re: [Qgis-user] pyqgis change field editwidget

2015-03-03 Thread Alexandre Busquets
I have found this post that explains how to do it http://gis.stackexchange.com/questions/66878/how-to-programmatically-associate-a-layer-with-a-custom-ui Thanks. 2015-03-02 15:09 GMT+01:00 Alexandre Busquets : > Hi, > > is possible change the editwidget with pyqgis? > >

Re: [Qgis-user] pyqgis vector layer with an accented path

2015-03-03 Thread Alexandre Busquets
Thanks for your help. I post here my solution for everyone: from __future__ import unicode_literals ,... for fn in os.listdir(cad_dir): fitxer = fn.decode('utf-8') if fitxer.endswith('.dxf'): vlayer = QgsVectorLayer(fitxer, 'layer_test', 'ogr') ,... 2015-03-03 8:43 GMT

[Qgis-user] pyqgis vector layer with an accented path

2015-03-02 Thread Alexandre Busquets
Hi, How should I load a vector layer with an accented path without error? This my code sample: f = "/home/abusquets/aviĆ³/dades.shp" vlayer = QgsVectorLayer(f, "layer_name_you_like", "ogr") print vlayer.isValid() Thanks ___ Qgis-user mailing list Qgis

[Qgis-user] pyqgis change field editwidget

2015-03-02 Thread Alexandre Busquets
Hi, is possible change the editwidget with pyqgis? I have made an extension that loads a postgis layer and I want to edit the date fields with the date widget by default without any change in the settings of layer ( "layer properties dialog"). Thanks _

Re: [Qgis-user] Fwd: pyqgis dxf

2015-02-25 Thread Alexandre Busquets
the solution: fitxer="/tmp/prova.dxf|layername=entities|geometrytype=Point" layer = QgsVectorLayer(fitxer, 'prova', 'ogr') QgsMapLayerRegistry.instance().addMapLayer(layer) 2015-02-25 11:03 GMT+01:00 Alexandre Busquets : > Hi Ricard, > > thanks for your h

Re: [Qgis-user] Fwd: pyqgis dxf

2015-02-25 Thread Alexandre Busquets
Hi Ricard, thanks for your help, but this is not a valid option for me. I need load the layer directly, without the "Select vector layers to add" dialog. 2015-02-25 10:55 GMT+01:00 Richard Duivenvoorde : > On 25-02-15 08:05, Alexandre Busquets wrote: > > Hi, > >

[Qgis-user] Fwd: pyqgis dxf

2015-02-24 Thread Alexandre Busquets
Hi, can somebody help me with load a dxf file as a vector layer? Is QgsDataSourceURI an option? I tried with this code, but I haven't been lucky. fitxer="/tmp/prova.dxf" uri = QgsDataSourceURI() uri.setDatabase(fitxer) uri.setDataSource('', 'entities', 'OGR_GEOMETRY', "OGR_GEOMETRY='POINT'", '

[Qgis-user] Relations in features window.

2015-02-11 Thread Alexandre Busquets
Hi, in my qgis project I have defined a relation. When I identify a feature the "features window" shows the relation, but by default not shows the relation as a table, I have to push the especific button. Is it possible, by default, show the relation in table mode? Thanks. ___