Re: [Qgis-user] [QGIS-Developer] Pyqgis how to append existing gpkg layer

2023-04-20 Thread PIERRE Sylvain via QGIS-User
lt;http://www.instagram.com/toutelalsace> De : Germán Carrillo Envoyé : mercredi 19 avril 2023 17:16 À : PIERRE Sylvain Cc : qgis-user@lists.osgeo.org; qgis-develo...@lists.osgeo.org Objet : Re: [QGIS-Developer] Pyqgis how to append existing gpkg layer Soyez vigilant : ce courriel provient d'une

[Qgis-user] Pyqgis how to append existing gpkg layer

2023-04-19 Thread PIERRE Sylvain via QGIS-User
Hi dev and users I don't understand how to append an existing gpkg layer with pyqgis. I've tried many QgsVectorFileWriter options self.options.actionOnExistingFile = QgsVectorFileWriter.CreateOrOverwriteLayer reset final layer And self.options.EditionCapability =

Re: [Qgis-user] How to set PyQGIS imported in VS Code in Windows for a Python file?

2023-03-13 Thread PIERRE Sylvain via QGIS-User
t;http://www.alsace.eu> [facebook]<http://www.facebook.com/toutelalsace> [twitter] <http://www.twitter.com/toutelalsace> [insta] <http://www.instagram.com/toutelalsace> De : QGIS-User De la part de PIERRE Sylvain via QGIS-User Envoyé : lundi 13 mars 2023 08:56 À : LI,

Re: [Qgis-user] How to set PyQGIS imported in VS Code in Windows for a Python file?

2023-03-13 Thread PIERRE Sylvain via QGIS-User
Hi, Did you set these variable in env file in your user .vscode dir ? De : QGIS-User De la part de LI, Xin Stephen [MIT] via QGIS-User Envoyé : lundi 13 mars 2023 07:30 À : qgis-user@lists.osgeo.org Objet : [Qgis-user] How to set PyQGIS imported in VS Code in Windows for a Python file?

Re: [Qgis-user] PyQgis script not finding module in eclipse IDE

2020-11-26 Thread PIERRE Sylvain
Hello, Did you add a qgis entry in “Forced Builtins” Python parameters? [cid:image001.png@01D6C3D4.466FBF60] → Sylvain PIERRE Chef de projet système d’information Direction des Systèmes d’Information Service Projets et Applications Numériques Conseil

[Qgis-user] Delete a class from QgsPalettedRasterRenderer

2020-11-24 Thread PIERRE Sylvain
Hi List, I want to remove some class from a QgsPalettedRasterRenderer in a python script. I got the renderer and classes with : renderer = myLayer.renderer() clas = renderer.classes() I can iterate classes, modify label and so on. But I don’t find any tips to delete a class as I can do in the ui.

Re: [Qgis-user] Tool to copy the content of the map canvas to the clipboard

2016-12-22 Thread PIERRE Sylvain
Hi, For a standalone Pyqgis App I needed such function, so here it is (implemented for a QgsMapTool) : from PyQt4 import QtCore from PyQt4.QtGui import QPixmap , QApplication # QGIS bindings for mapping functions from qgis.gui import QgsMapTool import tempfile try: _fromUtf8 =

[Qgis-user] QGIS processing script repos

2016-04-01 Thread PIERRE Sylvain
Hi, With QGIS 2.12.1: Where can I set QGIS processing script repos? When I want to load R script from toolbox I get a python error like this : http://hub.qgis.org/issues/12515 Bug seems to be fix, but… Repos is located here: https://github.com/qgis/QGIS-Processing/tree/master/rscripts But I

Re: [Qgis-user] Message box "Unknown error"

2016-01-04 Thread PIERRE Sylvain
Téléphone: 514.381.5112 Fax: 514.381.4995 www.archeotec.ca<http://www.archeotec.ca> On Jan 4, 2016 11:19, "PIERRE Sylvain [via OSGeo.org] " <[hidden email]> wrote: Hello, When trying to load a qml file with complex polygon symbols saved with 2.6 into 2.12 I got a small

[Qgis-user] Message box "Unknown error"

2016-01-04 Thread PIERRE Sylvain
Hello, When trying to load a qml file with complex polygon symbols saved with 2.6 into 2.12 I got a small message box with "unknown error" (erreur inconnue in French) Layer doesn't display anymore and message still display until I remove the layer. Is there anybody here experienced such

[Qgis-user] pyqgis loading oracle table with sql expression

2015-06-29 Thread PIERRE Sylvain
Hi, I'm trying to load oracle table with sql expression like explain here: http://blog.georepublic.info/2013/joining-tables-with-sql-using-pyqgis/ My python code: uriOracle = QgsDataSourceURI() uriOracle.setSrid(EPSG:3948) uriOracle.setConnection('', 'x','x',

[Qgis-user] programmatically load a plugin

2015-04-02 Thread PIERRE Sylvain
Hello, I would like to programmatically load a plugin from QGIS official repository (eg in startup python script) I've found QgsPluginManagerInterface class but I'm not sure addPluginMetadatahttp://qgis.org/api/classQgsPluginManagerInterface.html#aeec85580f92725f55047069be6273c97 can do the

Re: [Qgis-user] Can't access Oracle sequences

2015-03-17 Thread PIERRE Sylvain
sequences Hi Sylvain, On Mon, 16. Mar 2015 at 18:01:35 +0100, PIERRE Sylvain wrote: With Postgis/QGIS configuration I can manage sequences on primary key when editing new object (editing forms show a nextval(‘xx’::regclass) formula in pk field) With my Oracle/QGIS conf I can’t manage

[Qgis-user] Can't access Oracle sequences

2015-03-16 Thread PIERRE Sylvain
Hello, With Postgis/QGIS configuration I can manage sequences on primary key when editing new object (editing forms show a nextval(‘xx’::regclass) formula in pk field) With my Oracle/QGIS conf I can’t manage sequences, and editing failed when I want to save. Where is the problem? Is it

[Qgis-user] Labeling or applying categorised symbology to layer field description

2015-01-21 Thread PIERRE Sylvain
Hello, Is it possible to label or to apply categorised symbology to a layer field not with the keys values but with values which are defined in the tool editing widget in layerfields form ? I suppose the answer is NO. May be is there a workaround but without dealing with relation...? Sylvain

Re: [Qgis-user] Problem refreshing map canvas with pyqgis

2014-03-20 Thread PIERRE Sylvain
May-be you’d better show first the window, load the layer and refresh the canvas NOT the window Sylvain De : qgis-user-boun...@lists.osgeo.org [mailto:qgis-user-boun...@lists.osgeo.org] De la part de Sylvie Perdriel Envoyé : jeudi 20 mars 2014 14:24 À : qgis-user@lists.osgeo.org Objet :

[Qgis-user] Qgis 2.0 : no ECW support

2013-09-26 Thread PIERRE Sylvain
Hi, With 2.0 standalone install I do not found ECW support. I've solved this by copying libecwj2.dll and gdal_ECW_JP2ECW.dll from my Lisboa install to Dufour. (It was inspired by http://fr.faunalia.eu/node/438) But for installing on many computers it does not look really professional... Should

Re: [Qgis-user] Qgis 2.0 : no ECW support

2013-09-26 Thread PIERRE Sylvain
For enterprise deployment of QGIS 2.0 with Windows 32, it will be bad publicity for QGIS... Should I ask to migrate all our computers from 32 to 64 bits ? ;-) -Message d'origine- De : qgis-user-boun...@lists.osgeo.org [mailto:qgis-user-boun...@lists.osgeo.org] De la part de Jürgen E.

Re: [Qgis-user] QGIS and Oracle native connection

2013-06-28 Thread PIERRE Sylvain
Done http://hub.qgis.org/issues/8190 -Message d'origine- De : HAUBOURG [mailto:regis.haubo...@eau-adour-garonne.fr] Envoyé : jeudi 27 juin 2013 13:25 À : PIERRE Sylvain; 'qgis-user@lists.osgeo.org' Objet : RE: [Qgis-user] QGIS and Oracle native connection Hi, Just create a osgeo

Re: [Qgis-user] QGIS and Oracle native connection

2013-06-27 Thread PIERRE Sylvain
scanning will have to wait for QGIS 2.0x or 2.1. Andreas On Wed, 26 Jun 2013 09:38:38 +0200, PIERRE Sylvain wrote: Hi everybody, I’ve installed Qgis-dev yesterday in order to test Oracle connection. I work in a french local government. 95% of our data are stored into Oracle. So this new

Re: [Qgis-user] QGIS and Oracle native connection

2013-06-27 Thread PIERRE Sylvain
Hello Régis, I never put a request for bugtracking, what's the way? -Message d'origine- De : qgis-user-boun...@lists.osgeo.org [mailto:qgis-user-boun...@lists.osgeo.org] De la part de Régis Haubourg Envoyé : jeudi 27 juin 2013 10:23 À : qgis-user@lists.osgeo.org Objet : Re:

Re: [Qgis-user] QGIS and Oracle native connection

2013-06-26 Thread PIERRE Sylvain
Hi everybody, I’ve installed Qgis-dev yesterday in order to test Oracle connection. I work in a french local government. 95% of our data are stored into Oracle. So this new connection looks very interesting for us. The main things is definitively slowness at scanning DB. We have more than 20

[Qgis-user] Error installing Qgis-dev using OSGEO4w

2012-10-26 Thread PIERRE Sylvain
I got already the same but with Windows 7 and the message is Not possible to find procedure entry point ?GEOPROJ4@@3VQString@@B in the qgis_core.dll dynamic library Your solution fails. Such kind of problem is realy boring: I'm triyng to developp QGis uses in my local government, QGis is

[Qgis-user] code running inside QGis, failing outside

2012-10-19 Thread PIERRE Sylvain
Hello list, The following code is running perfectly inside Qgis (1.7.2) from the python console : from PyQt4 import QtCore, QtGui uri = QgsDataSourceURI() uri.setDatabase( C:/APPLI_PDT/CANAL_DEV/bd_canal.sqlite) uri.setDataSource( , AOT_POINT, GEOMETRY ) layer = QgsVectorLayer( uri.uri(), AOT,

Re: [Qgis-user] code running inside QGis, failing outside

2012-10-19 Thread PIERRE Sylvain
Sylvain Cc : qgis-user@lists.osgeo.org Objet : Re: [Qgis-user] code running inside QGis, failing outside Hi, looks like you didn't initialize QGIS. See PyQGIS CookBook [0] [0] http://www.qgis.org/pyqgis-cookbook/intro.html#python-applications 2012/10/19 PIERRE Sylvain sylvain.pie...@cg67.fr: Hello

Re: [Qgis-user] Reading Qsettings outside QGis

2012-10-12 Thread PIERRE Sylvain
new questions each day, and each day, I find answers... Great job made by all developpment teams and plugins developpers , where I can find lots of code. -Message d'origine- De : Etienne Tourigny [mailto:etourigny@gmail.com] Envoyé : jeudi 11 octobre 2012 16:13 À : PIERRE Sylvain Cc

[Qgis-user] Reading Qsettings outside QGis

2012-10-11 Thread PIERRE Sylvain
I'm developping a standalone application (Python, Qt, Qgis) and I would like to read some settings that I currently use in my Qgis projects : PostGis and Spatialite connections. I suppose I can get this values with QSettings, but I'm not sure. Is it the right way to do this ? I'm testing with

[Qgis-user] pyqgis: setting transparent color (alpha channel) to a polygon layer

2012-07-11 Thread PIERRE Sylvain
Hi, What's the best way to set transparent color (alpha channel) to a polygon layer ? I did some test using code like : rendererV2.symbol().setColor(QColor(0,128,128,2)), color is ok but layer is not transparent at all... Thanks ___ Qgis-user