Re: [QGIS-Developer] Regular paid positions for PR reviews

2023-12-08 Thread Germán Carrillo via QGIS-Developer
Hi All, Thanks Alessandro for raising this. First of all, thanks a lot to all PR reviewers for their outstanding work. As an occasional QGIS contributor (for a long time), I've definitely noticed a lack of PR reviewers lately. It'd be great if the QGIS association could pay more core devs to

Re: [QGIS-Developer] Paste geometry functionality

2023-11-29 Thread Germán Carrillo via QGIS-Developer
Hi Tomas, Let's say we have a layer L (PostgreSQL/PostGIS) with features A, B > > and C with corresponding attribute values set. > Now some external party sends us a shapefile S with an updated > geometry G which we want to apply to feature B. > We want to: > 1. Select G in layer S and

Re: [QGIS-Developer] pyqgis QgsGeometrySnapper does not snap to a source created inside a function

2023-10-20 Thread Germán Carrillo via QGIS-Developer
*> The underlying C++ code expects a pointer to the reference layer. If the python wrapper just passes the pointer of the object that was created in the call, the object will be out of scope after the function call returns and will be garbage collected. Someone who actually knows the code details

Re: [QGIS-Developer] pyqgis QgsGeometrySnapper does not snap to a source created inside a function

2023-10-19 Thread Germán Carrillo via QGIS-Developer
Hi Gabriel, Does the result change if you first create a Python variable for storing your new layer? I mean: *referenceSource = create_scratch_reference_layer()* *snapper = QgsGeometrySnapper(referenceSource)* instead of: *snapper = QgsGeometrySnapper(* *

Re: [QGIS-Developer] It is possible to protect qgisserver's wms service using authentication?

2023-07-20 Thread Germán Carrillo via QGIS-Developer
Hi Francisco, I show in detail how to set up basic Apache authentication for QGIS Server (using a Python plugin) in this post: https://geotux.tuxfamily.org/2019/05/07/accediendo-a-datos-de-qgis-server-con-base-en-roles-de-usuario/ The post is in Spanish and is based on Windows, you would need

Re: [QGIS-Developer] Adding a plugin collaborator

2023-06-22 Thread Germán Carrillo via QGIS-Developer
Hi All, last year in Firenze I contacted Richard by e-mail, and asked Alessandro personally what was the rationale of the "Owners" field. I had this use case in mind: add a person as contributor to allow him/her to upload plugin versions. The "Author" field was already filled with the

Re: [QGIS-Developer] PyQGIS read project from postgresql database

2023-05-12 Thread Germán Carrillo via QGIS-Developer
Hi, what do you get if you run the following line on your QGIS Python console in a QGIS session where your project (the one stored in PG) is loaded? QgsProject.instance().fileName() Regards, Germán El vie, 12 may 2023 a las 19:22, Alexandre Neto via QGIS-Developer (<

Re: [QGIS-Developer] [Qgis-user] New community voting member

2023-04-24 Thread Germán Carrillo via QGIS-Developer
Congratulations Adelcides! Well done! Regards, Germán El lun, 24 abr 2023 a las 8:32, Peter Petrik via QGIS-Developer (< qgis-developer@lists.osgeo.org>) escribió: > Hi Adelcides, > > welcome and wish you many good and wise decisions as the voting member :) > > Peter > > > > > > On Mon, Apr

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

2023-04-19 Thread Germán Carrillo via QGIS-Developer
Bonjour Sylvain, J'espère que vous allez bien. If you want to append features from a source layer to another layer that already exists in a GPKG file, you can do this: - options =

Re: [QGIS-Developer] PyQGIS code: setting filter expression for value relation widget

2023-02-18 Thread Germán Carrillo via QGIS-Developer
Hi Andreas, you can modify your Value Relation widget's filter expression using the QgsEditorWidgetSetup class, in this way: 1) Get the editor widget setup and get a copy of its config dictionary: ews = layer.editorWidgetSetup(3) # *Let's assume your Value Relation widget is set for a

Re: [QGIS-Developer] Skip loading plugin if errors

2022-12-28 Thread Germán Carrillo via QGIS-Developer
Hi Matteo, I've added a few validations for this plugin to gently inform users of missing dependencies: https://github.com/SwissTierrasColombia/Asistente-LADM-COL/blob/master/asistente_ladm_col/__init__.py Hope that helps. Regards, Germán El mié, 28 dic 2022 a las 9:58, matteo via

Re: [QGIS-Developer] createAlgorithmDialog in Processing script (within plugin)

2022-08-11 Thread Germán Carrillo via QGIS-Developer
t; algorithm/model id, but with an instance of the algorithm? > > In the docs I read "Either an instance of an algorithm, or an > algorithm's ID", therefore I'm trying to set up an instance of my > algorithm and then passing it to the method > > Cheers and thanks > &g

Re: [QGIS-Developer] createAlgorithmDialog in Processing script (within plugin)

2022-08-01 Thread Germán Carrillo via QGIS-Developer
Hi Matteo, I've been successfully using *execAlgorithmDialog()* instead [0]: *processing.execAlgorithmDialog("my_provider:my_algorithm", params)* where, *params* is a dict with the pre-filled values you have. You can see an example at [1]. Regards, Germán --- [0]

Re: [QGIS-Developer] [Plugins]: is 'plugin_dependencies' being enforced somewhere?

2022-03-29 Thread Germán Carrillo via QGIS-Developer
Hi Richard, see the first part of the answer to "Using QGIS plugin from another plugin" at GIS.SE [1] In short, you need to use the independent plugin's name from metadata.txt (i.e., "name" field) in your dependent plugin's "plugin_dependencies" field. For instance, the plugin "LADM-COL

Re: [QGIS-Developer] Specifying minimum Qt version for plugin?

2022-01-12 Thread Germán Carrillo
Hallo Johannes, here you have an example of version checks in the *classFactory()* itself (file *__init__.py* of your plugin). https://github.com/SwissTierrasColombia/Asistente-LADM-COL/blob/master/asistente_ladm_col/__init__.py Regards, Germán ( *mit Akzent :) *) El mié, 12 ene 2022 a las

Re: [QGIS-Developer] Run python script whit QProcess and show into textEdit the result in realtime

2021-09-26 Thread Germán Carrillo
Hi, it might be useful for you to have a look at how QgisModelBaker does it: https://github.com/opengisch/QgisModelBaker/blob/master/QgisModelBaker/libili2db/iliexecutable.py#L139-L185 Regards, Germán El dom, 26 sept 2021 a las 5:28, Enzo Cocca () escribió: > I wolud print the result during

Re: [QGIS-Developer] process bar in processing algs

2021-07-20 Thread Germán Carrillo
Hi Pierluigi, you need to create your own *feedback* object and connect its *progressChanged* SIGNAL to your progressbar's *setValue* SLOT, in this way: feedback = QgsProcessingFeedback() feedback.progressChanged.connect(progressBarGrid.setValue) params_creategrid = { # Set key-value

Re: [QGIS-Developer] Appending Features to a layer

2020-05-13 Thread Germán Carrillo
Hi Luis, if you are fine with a plugin solution, then there is one called "Append Features to Layer" [1] that adds a new algorithm to QGIS Processing. If you run it once via Processing Toolbox, then in the Processing History you'll get the Python command, which you could use in your code to

Re: [QGIS-Developer] EditInPlace Processing script

2020-04-23 Thread Germán Carrillo
Hi Matteo, the sample script I mentioned in my previous e-mail in this thread should be working on master now. Nyall fixed the bug reported. Regards, Germán El mar., 21 abr. 2020 a las 1:45, matteo () escribió: > Hi Stefanos, > > yep, but digging into this I was wondering how to use the

Re: [QGIS-Developer] EditInPlace Processing script

2020-04-18 Thread Germán Carrillo
Hi Matteo, confirmed! Then, we've found a bug: https://github.com/qgis/QGIS/issues/35844 Regards, Germán El vie., 17 abr. 2020 a las 2:29, matteo () escribió: > Hola Germàn, > > thanks for the hint. While it is perfectly working on QGIS 3.10 > installed from repository. QGIS is crashing with

Re: [QGIS-Developer] EditInPlace Processing script

2020-04-14 Thread Germán Carrillo
Hi Matteo, yes, it's possible to write custom Processing scripts for editing layers in-place. Here you can find an example (buffer): https://github.com/gacarrillor/QGIS-Resources/blob/master/collections/processing_scripts/processing/processing_script_edit_in_place.py >From the example we can

[QGIS-Developer] Avoid running a Processing algorithm twice by accident

2020-02-21 Thread Germán Carrillo
Hi all, would you like to vote about a small adjustment after running Processing algorithms in QGIS? https://github.com/qgis/QGIS/issues/34484 Regards, Germán -- --- |\__ (:>__)( |/ Soluciones Geoinformáticas Libres http://geotux.tuxfamily.org/ https://twitter.com/GeoTux2

Re: [QGIS-Developer] [Qgis-user] QGIS Voting Member Ballot Results

2019-02-19 Thread Germán Carrillo
Well deserved! Congratulations Hugo! Regards, Germán El mar., 19 feb. 2019 a las 14:41, Marco Bernasocchi () escribió: > It is with great pleasure that I'd like to announce our latest community > voting member Hugo Mercier. > > Thanks to everybody for voting and thanks already Hugo for your

Re: [QGIS-Developer] (Native) Difference algorithm not working with MultiPoints on Windows

2018-06-13 Thread Germán Carrillo
Monday) does not include an updated GEOS yet. Regards, Germán 2018-05-30 2:27 GMT-05:00 andreaerdna : > > Nyall Dawson wrote > > Maybe related to the GEOS version in use? > > > Germán Carrillo-2 wrote > > On Windows:      GEOS v3.5.0-CAPI-1.9.0 r4084 > > On GNU/Linu

Re: [QGIS-Developer] (Native) Difference algorithm not working with MultiPoints on Windows

2018-05-28 Thread Germán Carrillo
! Germán 2018-05-28 18:44 GMT-05:00 Nyall Dawson : > On 29 May 2018 at 05:10, Germán Carrillo > wrote: > > > > Hi, > > > > > > just open an issue [1] regarding the (native) Difference algorithm on > Windows for multipoint geometries. > > > > Y

[QGIS-Developer] (Native) Difference algorithm not working with MultiPoints on Windows

2018-05-28 Thread Germán Carrillo
Hi, just open an issue [1] regarding the (native) Difference algorithm on Windows for multipoint geometries. You could replicate it creating one multipoint layer and adding one point to it. Running the difference algorithm wiith such layer as both input and difference parameters should return

Re: [QGIS-Developer] Can we remove a confirmation dialog in Refactor Fields algorithm?

2018-04-26 Thread Germán Carrillo
hild widgets signals should be correctly disconnected. > > Arnaud > > > > Le 25/04/2018 à 16:55, Germán Carrillo a écrit : > > Hi All, > > > In the Refactor Fields algorithm dialog there is an "Input layer" combo > box. Each time the user selects one layer a mo

[QGIS-Developer] Can we remove a confirmation dialog in Refactor Fields algorithm?

2018-04-25 Thread Germán Carrillo
Hi All, In the Refactor Fields algorithm dialog there is an "Input layer" combo box. Each time the user selects one layer a modal dialog (message box) appears, letting her select whether the fields mapping should be reset or not. See image: [1]. I'd like to ask you if we can get rid of such

Re: [QGIS-Developer] Awating plugin review...

2018-04-03 Thread Germán Carrillo
ote: > > Hi all. > Sorry, I asked Admire from Kartoza to help me in this period, he might > have overlooked this one. > Done now. > Thanks for your patience. > > Il 3 aprile 2018 00:30:02 GMT-04:00, "Germán Carrillo" < > carrillo.ger...@gmail.com&g

Re: [QGIS-Developer] Awating plugin review...

2018-04-02 Thread Germán Carrillo
It seems it's not Paolo who is approving plugins lately, but zimbogisgeek. 2018-04-02 23:11 GMT-05:00 Nyall Dawson <nyall.daw...@gmail.com>: > On 3 April 2018 at 13:40, Germán Carrillo <carrillo.ger...@gmail.com> > wrote: > > > > And it's a great work he does!

Re: [QGIS-Developer] Awating plugin review...

2018-04-02 Thread Germán Carrillo
public. Regards, Germán 2018-04-02 22:23 GMT-05:00 Nyall Dawson <nyall.daw...@gmail.com>: > On 3 April 2018 at 13:16, Germán Carrillo <carrillo.ger...@gmail.com> > wrote: > > > > Hi All, > > > > > > 16 days waiting for a review of my Remove Empty L

Re: [QGIS-Developer] Awating plugin review...

2018-04-02 Thread Germán Carrillo
Hi All, 16 days waiting for a review of my Remove Empty Layers plugin... I think it's fair to say that something in the Plugin approval process is not working properly. Regards, Germán 2018-03-25 9:48 GMT-05:00 Germán Carrillo <carrillo.ger...@gmail.com>: > Hi All, > > m

[QGIS-Developer] Awating plugin review...

2018-03-25 Thread Germán Carrillo
Hi All, my "Remove Empty Layers" plugin was submitted last Monday, but I still didn't get any reply. Could you please review it? Regards, Germán -- --- |\__ (:>__)( |/ Soluciones Geoinformáticas Libres http://geotux.tuxfamily.org/ http://twitter.com/GeoTux2

Re: [QGIS-Developer] Does Polyline.intersects(Point) work in QGIS master?

2017-11-30 Thread Germán Carrillo
GMT-05:00 Nyall Dawson <nyall.daw...@gmail.com>: > On 29 November 2017 at 02:22, Germán Carrillo <carrillo.ger...@gmail.com> > wrote: > > > > Hi devs, > > > > > > do you know why this polyline > > > > >>> my_line = QgsGeometry().fr

Re: [QGIS-Developer] Does Polyline.intersects(Point) work in QGIS master?

2017-11-29 Thread Germán Carrillo
g that: [1] and [2]. Regards, Germán --- [1] https://issues.qgis.org/issues/17585 [2] https://issues.qgis.org/issues/17586 2017-11-28 11:22 GMT-05:00 Germán Carrillo <carrillo.ger...@gmail.com>: > Hi devs, > > > do you know why this polyline > > >&g

[QGIS-Developer] Does Polyline.intersects(Point) work in QGIS master?

2017-11-28 Thread Germán Carrillo
Hi devs, do you know why this polyline >>> my_line = QgsGeometry().fromWkt('0 0, 963461.4299970197678 1077875.7919943375587, 1 1') and this point >>> my_point = QgsGeometry().fromWkt("Point (963461.430 1077875.792)") don't intersect? >>> my_line.intersects(my_point) # returns False

[QGIS-Developer] Handy methods to Copy/Paste Features via QgisInterface

2017-11-09 Thread Germán Carrillo
Hi qgis-devs, what do you think about exposing methods to copy/paste features from/to *given layers* through QgisInterface? Such methods are available in qgisapp.cpp already [1], but plugin devs cannot access them. What is exposed right now are the actionCopyFeatures and actionPasteFeatures,

[QGIS-Developer] Is PySpatiaLite needed for QGIS v3?

2017-10-23 Thread Germán Carrillo
Hi devs, there are known issues using pyspatialite that lead to QGIS v3 crashes (see [1] and [2]). In fact, using DB Manager these days to explore a SpatiaLite database leads to a QGIS crash on Windows. :( The easy fix for such issue could be to avoid pyspatialite (see why [3]) and use sqlite3

Re: [QGIS-Developer] qgis master freeze with transaction groups activated

2017-07-26 Thread Germán Carrillo
Hi Régis, I've experienced such behavior in master as well. In my case, using the Project Generator plugin [1] (which configures a QGIS project from Interlis models or PostgreSQL/PostGIS schemas and by default activates transaction groups), as soon as I finish digitizing a geometry and the

Re: [Qgis-developer] Dropping the "render" checkbox

2017-02-28 Thread Germán Carrillo
Hi All, I use mapCanvas().setRenderFlag( False ) before loading a (potentially) large number of layers using the 'Load Them All' plugin [1]. I acknowledge I needed to toggle such flag years ago (the plugin was mainly developed in 2012) and still use it. For another plugin (private according to

Re: [Qgis-developer] Error is QgsFeature API Documentation

2017-02-14 Thread Germán Carrillo
Hi Calvin, have a look at the corresponding PyQGIS documentation for the QgsFeature.attribute() method: http://geoapis.sourcepole.com/qgispyapi/qgsfeature#QgsFeature.attribute Regards, Germán 2017-02-14 16:31 GMT-05:00 Jürgen E. Fischer : > Hi Calvin, > > On Tue, 14. Feb

Re: [Qgis-developer] Qgis private plugin repository

2016-10-28 Thread Germán Carrillo
There is another option that I'm currently using: https://github.com/mstuyts/phpQGISrepository/ You just upload you plugin ZIP file into the downloads folder and you're done. If you have issues with it, make sure you have installed the dependencies. Regards, Germán -- --- |\__

[Qgis-developer] Issues with a Python test for Processing

2016-10-20 Thread Germán Carrillo
Hi All, I'm having troubles trying to run a custom test [1] for my PR [2]. I'm able to run it against my local build in this way: $ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/apps/lib/ $ QGIS_PREFIX_PATH=/apps PYTHONPATH=/apps/share/qgis/python:/apps/share/qgis/python/plugins:$PYTHONPATH

Re: [Qgis-developer] [processing] OGR imports full of "None" strings, lately

2016-10-19 Thread Germán Carrillo
set an empty string as value > > see: https://github.com/qgis/QGIS/commit/d911671b0669d3654d85954b52e38a > 9f5e952d4a > > I adapted the test to check that, and it is passing > > see: https://github.com/qgis/QGIS/commit/0d09ad1ecd4a850c421bb1820e3d58 > 23dde5d33f > >

Re: [Qgis-developer] [processing] OGR imports full of "None" strings, lately

2016-10-19 Thread Germán Carrillo
After rebasing a few hours ago, I'm still having issues (None appearing in ogr2ogr commands) with the same example described in this comment [1] (OGR "Convert format" algorithm). Am I doing something wrong? Should I fix/adjust/add something to OGR algorithms? Regards, Germán -- [1]

Re: [Qgis-developer] [processing] OGR imports full of "None" strings, lately

2016-10-18 Thread Germán Carrillo
2016-10-18 8:42 GMT-05:00 Sandro Santilli : > https://github.com/qgis/qgis/commit/61a10df45283a47782bf49ac62f9c5 > e5f9b27b21 Hi All, what would be the way to deal with this? It's currently preventing me from pushing my final commit to this PR [1], which I hope can make it into

Re: [Qgis-developer] ogrLayerName in processing/tools/vector.py

2016-10-17 Thread Germán Carrillo
Hi All, I've been studying ogrLayerName and GDAL/OGR algorithms in recent days. I understand ogrLayerName expects a URI from QGIS layers. One valid QGIS layer URI might be (talking about Spatialite layers): 'dbname=\'/tmp/test.sqlite\' table="test" (geometry) sql=' The PR you merged [1] made

Re: [Qgis-developer] Let's clean up hub.qgis.org

2016-09-08 Thread Germán Carrillo
Hi Paolo, please remove the following plugins from hub.qgis.org. They all have been uploaded to GitHub and, at least their latest version reflects such change in the metadata file: Load Them All, Remove Empty Layers, Synchronize QGIS with a dir. Thanks in advance, Germán 2016-08-25 4:25

Re: [Qgis-developer] Issue with QgsVectorLayerUndoCommand class (QGIS crashes)

2016-07-19 Thread Germán Carrillo
Hi All, just to let you know that I created an issue in the QGIS issue Tracking with this problem: http://hub.qgis.org/issues/15311 Regards, Germán 2016-07-15 12:26 GMT-05:00 Germán Carrillo <carrillo.ger...@gmail.com>: > Hi All, > > I've discovered an issue with QgsVectorL

[Qgis-developer] Issue with QgsVectorLayerUndoCommand class (QGIS crashes)

2016-07-15 Thread Germán Carrillo
Hi All, I've discovered an issue with QgsVectorLayerUndoCommand class (QgsVectorLayerUndoCommandChangeAttribute.undo() method) when updating an attribute value after featureAdded SIGNAL is emitted. Steps to reproduce: 1. Open QGIS, load a sample vector layer like this (

Re: [Qgis-developer] QgsVectorLayer's attributeValueChanged SIGNAL emitted when it should not

2016-07-13 Thread Germán Carrillo
Great. I'll open an issue in the QGIS issue tracker. I'll see what I can do. Regards, Germán 2016-07-13 8:23 GMT-05:00 Matthias Kuhn <matth...@opengis.ch>: > Hi Germán > > On 07/13/2016 03:19 PM, Germán Carrillo wrote: > > What you say about edit widgets makes sense, wha

Re: [Qgis-developer] QgsVectorLayer's attributeValueChanged SIGNAL emitted when it should not

2016-07-13 Thread Germán Carrillo
> Please check which field is affected, what edit type is set and what's the > value of the first (topmost) feature on the attribute table for this field. > > Thanks > Matthias > > > On 13/07/16 00:33, Germán Carrillo wrote: > > Hi All, > > I'm working on a plugin and t

[Qgis-developer] QgsVectorLayer's attributeValueChanged SIGNAL emitted when it should not

2016-07-12 Thread Germán Carrillo
Hi All, I'm working on a plugin and trying to connect a SLOT to layer.attributeValueChanged SIGNAL. However, I found that such SIGNAL is (weirdly) emitted in the following scenario: 1. Load a vector file (I've tested this with a Shapefile and an SQLITE file) with a numeric (int or real) field,

Re: [Qgis-developer] Segmentation fault when using layersRemoved SIGNAL.

2016-06-20 Thread Germán Carrillo
For reference, this is the ticket I've just opened: http://hub.qgis.org/issues/15088 Regards, Germán 2016-06-18 5:56 GMT-05:00 René-Luc Dhont <rldh...@gmail.com>: > Open a ticket with your code example. > > Regards, > > > Le 18/06/2016 00:28, Germán Carrillo a é

Re: [Qgis-developer] Segmentation fault when using layersRemoved SIGNAL.

2016-06-17 Thread Germán Carrillo
Should I open a ticket reporting this issue to the QGIS issue tracker? Regards, Germán 2016-06-13 15:53 GMT-05:00 Germán Carrillo <carrillo.ger...@gmail.com>: > Hi All, > > there seems to be an issue connecting the SIGNAL layersRemoved from > QgsMapLayerRegistry. > >

[Qgis-developer] Segmentation fault when using layersRemoved SIGNAL.

2016-06-13 Thread Germán Carrillo
Hi All, there seems to be an issue connecting the SIGNAL layersRemoved from QgsMapLayerRegistry. For example, if I save this script to a file, and run it from the Linux terminal: import unittest from qgis.core import QgsApplication,

Re: [Qgis-developer] SIGNAL to know when a feature is added to vector layer using PyQGIS

2016-06-10 Thread Germán Carrillo
o this, you could also produce the signalling on > your side. > > Matthias > > On 06/09/2016 11:24 PM, Germán Carrillo wrote: > > Hi, > > > > I'd like to ask you whether you know any way of being notified when a > > feature is being added to a vector

Re: [Qgis-developer] Layer Name and originalName, was: [QGIS-Server] Add a Short Name to layers for OGC Web Services

2016-06-09 Thread Germán Carrillo
Does anybody have any thought on this? 2016-06-01 10:31 GMT-05:00 Germán Carrillo <carrillo.ger...@gmail.com>: > Hi All, > > what is the purpose of originalName() method in QgsMapLayer class? > > Documentation states: >Get the original name of

[Qgis-developer] SIGNAL to know when a feature is added to vector layer using PyQGIS

2016-06-09 Thread Germán Carrillo
Hi, I'd like to ask you whether you know any way of being notified when a feature is being added to a vector layer without opening and closing an edit session, e.g., by using: myLayer.dataProvider().addFeatures( [feature] ) Which directly writes the new feature to the provider. When working

Re: [Qgis-developer] Layer Name and originalName, was: [QGIS-Server] Add a Short Name to layers for OGC Web Services

2016-06-01 Thread Germán Carrillo
Hi All, what is the purpose of originalName() method in QgsMapLayer class? Documentation states: Get the original name of the layer. Returns the original layer name Which perhaps isn't clear enough. Plugin developers reading the API would generally expect originalName to

[Qgis-developer] How to store a QIcon in QGIS project file?

2015-03-07 Thread Germán Carrillo
for this problem? Perhaps something about storing the QIcon somehow serialized? Regards, Germán Carrillo -- --- |\__ (:__)( |/ Soluciones Geoinformáticas Libres http://geotux.tuxfamily.org/ http://twitter.com/GeoTux2 ___ Qgis-developer mailing

Re: [Qgis-developer] How to store a QIcon in QGIS project file?

2015-03-07 Thread Germán Carrillo
look like: QIconWithPath(QIcon): def __init__(self,iconPath): super(QIconWithPath,self).__init__(iconPath) self.setIconPath(iconPath) I'm not sure this is considered elegant... Alain Le 07/03/2015 17:06, Germán Carrillo a écrit : Hi All, I'd like to add a Set Group

[Qgis-developer] Problems while including .h files in QGIS code

2015-03-07 Thread Germán Carrillo
Hi All, I'd like to let (PyQGIS) users choose between Table and Form View when calling showAttributeTable() via QgisInterface. I'm preparing a pull request for that. However, I'm having a hard time with includes, since once I add #include qgsdualview.h in my qgisInterface.h file, I get the

Re: [Qgis-developer] How to store a QIcon in QGIS project file?

2015-03-07 Thread Germán Carrillo
? - Nathan On Sun, 8 Mar 2015 at 02:06 Germán Carrillo carrillo.ger...@gmail.com wrote: Hi All, I'd like to add a Set Group Icon... action to the context menu for groups in the layer tree. I'm preparing a pull request for that. Everything is working fine, but I have a doubt on how to make

Re: [Qgis-developer] Moving a layer with PyQGIS using the new layer tree

2014-12-21 Thread Germán Carrillo
] http://www.lutraconsulting.co.uk/blog/2014/07/25/qgis-layer-tree-api-part-2/ 2014-12-21 8:55 GMT-05:00 Martin Dobias wonder...@gmail.com: Hi On Thu, Dec 18, 2014 at 9:50 PM, Germán Carrillo carrillo.ger...@gmail.com wrote: Thank you Luigi. So, I guess the following code would be enough

Re: [Qgis-developer] Moving a layer with PyQGIS using the new layer tree

2014-12-18 Thread Germán Carrillo
as root to remove his child Regards Luigi Pirelli On Wednesday, 17 December 2014, Germán Carrillo carrillo.ger...@gmail.com wrote: Hi all (and Martin D.), I've been trying to reproduce the instructions given here [1] for moving layers. It seems that the code doesn't work if the layer

[Qgis-developer] Moving a layer with PyQGIS using the new layer tree

2014-12-17 Thread Germán Carrillo
but I cannot get the original layer removed, i.e., the following command doesn't work: root.removeChildNode( originalLayer ) It doesn't throw any message nor change the map/ToC status. Can you reproduce the problem? I'm using QGIS 2.6.1 on Ubuntu. Regards, Germán Carrillo -- [1] http

Re: [Qgis-developer] [Qgis-user] How load Postgis layer from command line?

2014-12-10 Thread Germán Carrillo
Exactly Richard, that would be the expected behaviour. Regards, Germán 2014-12-10 4:37 GMT-05:00 Richard Duivenvoorde rdmaili...@duif.net: On 10-12-14 10:11, Uggla Henrik wrote: In Linux it is very easy to setup a ramdisk for fast temporal file storage. --help really gives the

Re: [Qgis-developer] QGIS standalone app - layer tree, legend and co.

2014-07-05 Thread Germán Carrillo
Matthias, have a look at the Layer list widget for PyQGIS applications [1], perhaps it could fit your needs. Not sure if it works on recent QGIS versions, though. Regards, Germán - [1]

Re: [Qgis-developer] XSLT in a QGIS plugin

2012-10-10 Thread Germán Carrillo
Hi, not sure if there is another way, but I added something similar for displaying XML Exception reports in the WPS client. Have a look at the 'errorHandler' function in [1]. Regards, Germán --- [1] https://www.kappasys.ch/svn/wps/trunk/QgsWpsDockWidget.py 2012/10/10 Jakob

Re: [Qgis-developer] Python ogr driver issue (was ---- (no subject))

2012-08-25 Thread Germán Carrillo
Hi Ludovic, probably the prefix path you are using is wrong. Try with '/usr/local/' or check where qgis bins and libraries are located and adjust the prefix path accordingly. Regards, Germán 2012/8/25 ludo ludovic.gran...@wanadoo.fr Hi Yes you are right, I forgot the title I'm sorry I

Re: [Qgis-developer] What will be in QGIS 2.0

2012-07-11 Thread Germán Carrillo
Hi all, please don't forget the QGIS legend and its issues when keeping track of both layer and group positions. Since there could be too many new functionalities, what about publishing a survey in qgis.org for prioritizing and, perhaps, postponing them for minor 2.x releases? Focusing on too

Re: [Qgis-developer] 'reload' a layer

2012-06-26 Thread Germán Carrillo
attempting to visualize a tile-based raster, from which I cannot get all tiles at once. Do you think it could be possible in QGIS? P.S. Loading each tile as a separate layer wouldn't be possible because of performance. Thanks in advance, Germán Carrillo 2012/5/21 Germán Carrillo carrillo.ger

[Qgis-developer] Fwd: Displaying local file's geometries as rubber bands

2012-05-29 Thread Germán Carrillo
? I'm using QGIS 1.8.0-Lisboa, rev. a1255fc, Python v.2.7.2, GDAL/OGR v.1.7.3 Thanks in advance, Germán -- Forwarded message -- From: Germán Carrillo carrillo.ger...@gmail.com Date: 2012/5/21 Subject: Displaying local file's geometries as rubber bands To: qgis-developer qgis

Re: [Qgis-developer] 'reload' a layer

2012-05-21 Thread Germán Carrillo
Hi Carson, have you tried updateFieldMap() from QgsVectorLayer? I've just had a similar problem with memory layers and it turned out to do the trick. Regards, Germán - [1] http://qgis.org/api/classQgsVectorLayer.html#ae703a20367b66ef0200e972f83d1 2012/5/17 G.

[Qgis-developer] Displaying local file's geometries as rubber bands

2012-05-21 Thread Germán Carrillo
Hi all, I'd like to get geometries from a local file (e.g. GML) displayed as QgsRubberBands. However, I wouldn't like to load the layer into the map because in the real scenario there could be a large number of files to get geometries from. I've been attempting it with the following code (you

[Qgis-developer] Couldn't load PyQGIS after downgrading PyQt4

2012-05-16 Thread Germán Carrillo
Hi devs, does anyone know why I'm getting a Couldn't load PyQGIS error when starting QGIS? I'm working with QGIS 1.8.0-Lisboa, a1255fc, Python 2.7.2. I've just downgraded PyQt4 from 4.8.5 to 4.8.3 on Ubuntu Oneiric. I had to remove qgis-python before downgrading but I already installed it again.

Re: [Qgis-developer] Next Hackfest Location

2012-05-07 Thread Germán Carrillo
Auch Ich möchte Essen. :) Perhaps I could attend my first HF there. Regards, Germán 2012/5/7 Werner Macho werner.ma...@gmail.com On 07/05/12 16:26, Horst Düster wrote: Please let me know what are the next steps to find a decsison. Regards Horst Don't know what the steps are but ..

[Qgis-developer] New version of a plug-in to be approved

2012-03-29 Thread Germán Carrillo
Hi all, could some dev please approve the new version of my plug-in Load them all [1]? Regards, Germán [1] http://planet.qgis.org/plugins/loadthemall/ -- --- |\__ (:__)( |/ Soluciones Geoinformáticas Libres http://geotux.tuxfamily.org/

Re: [Qgis-developer] New version of a plug-in to be approved

2012-03-29 Thread Germán Carrillo
Thanks a lot! 2012/3/29 Nathan Woodrow madman...@gmail.com Done Also added you as a trusted author so it will auto approve from now on. - Nathan Sent from some fancy phone looking thingo From: Germán Carrillo Sent: 29/03/2012 8:35 PM To: qgis-developer Subject: [Qgis-developer] New

Re: [Qgis-developer] current layer changed signal

2012-02-28 Thread Germán Carrillo
Hi, what about this? http://www.qgis.org/api/classQgisInterface.html#7e502c8c406538e6b518c4d93cc741d8 Regards, Germán 2012/2/28 Denis Rouzaud denis.rouz...@gmail.com Hi all, I could not find any signal emitted when the current layer of the map canvas changes. I only found the

[Qgis-developer] Plugin not yet accepted

2012-02-06 Thread Germán Carrillo
Hi all, some days ago I uploaded a couple of plugins to [1]. One of them was approved but the other one [2] was not. Could somebody please check it? If necessary, my user account is gcarrillo. Regards, Germán [1] http://plugins.qgis.org/plugins/ [2]

Re: [Qgis-developer] How to debug and unit test Python plugins outside QGIS (e.g. in Ecplise IDE + PyDev)

2012-01-10 Thread Germán Carrillo
Hi, you can find an example at [1], namely a class called QgisInterface in the postgis_viewer.py, line 313. Hope it helps. Regards, Germán --- [1] http://downloads.tuxfamily.org/tuxgis/geoblogs/visor_postgis_pgadmin_3/postgis_viewer.zip 2012/1/10 Tim Sutton

Re: [Qgis-developer] Quality assurance (was: Georeferencer produces wrong (shifted) result)

2011-12-17 Thread Germán Carrillo
I agree with Agustin. Here in my University, QGIS is seen as a 'buggy' software, so some professors and lecturers are not considering it anymore and are choosing proprietary software for the exercises. In such a scenario there is nothing a promoter of FOSS4G (and specially QGIS) like me can do to

Re: [Qgis-developer] Quality assurance

2011-12-17 Thread Germán Carrillo
acknowledge their effort! Regards, Germán 2011/12/17 Paolo Cavallini cavall...@faunalia.it Il 17/12/2011 11:04, Germán Carrillo ha scritto: Here in my University, QGIS is seen as a 'buggy' software, so some professors and lecturers are not considering it anymore and are choosing proprietary

Re: [Qgis-developer] quick noob python question

2011-12-16 Thread Germán Carrillo
() ** ** So now for the final 1 million dollar question: can I change the first textbox in the dialog? ** ** Thanks, Duarte ** ** *De:* Germán Carrillo [mailto:carrillo.ger...@gmail.com] *Enviada:* quinta-feira, 15 de Dezembro de 2011 13:26 *Para:* Duarte Carreira; qgis

Re: [Qgis-developer] quick noob python question

2011-12-15 Thread Germán Carrillo
an additional question: generally speaking the gui is not accessible from python? We cannot simulate a toolbar button click, or menu item? ** ** Duarte ** ** *De:* Duarte Carreira [mailto:dcarre...@edia.pt] *Enviada:* quarta-feira, 14 de Dezembro de 2011 17:05 *Para:* Germán Carrillo

Re: [Qgis-developer] Re: Python - recreate the exact Legend in a QTreeWidget

2011-06-20 Thread Germán Carrillo
Hi Kimaidou, may you share your solution? It may be useful for some people here (including myself). Regards, Germán 2011/6/20 kimaidou kimai...@gmail.com Hi all I managed to reconstruct my legend in my QTreeWidget by using a dictionary to store the item I have already added in the tree

Re: [Qgis-developer] Re: Python - recreate the exact Legend in a QTreeWidget

2011-06-20 Thread Germán Carrillo
I appreciate it! Regards 2011/6/20 kimaidou kimai...@gmail.com Of course ! This is basically what I have done : http://pastebin.com/1yhyuRxA Regards, Kimaidou 2011/6/20 Germán Carrillo carrillo.ger...@gmail.com Hi Kimaidou, may you share your solution? It may be useful for some

Re: [Qgis-developer] Antialiasing not working in standalone PyQGIS app

2011-03-02 Thread Germán Carrillo
Hi Ivan, right now I am working on the plugin and I have finally gotten the antialiasing working as expected with these two lines: --- self.canvas.useImageToRender( True ) self.canvas.enableAntiAliasing( True ) --- I am not sure if that is

[Qgis-developer] Re: PyQGIS Cookbook, MySQL geometries and Graduated symbol renderer

2011-03-01 Thread Germán Carrillo
Hi Martin, I was unable to get the code highlighted in an appropriate way. However, here is the patch [1]. Regards, Germán -- [1] https://trac.osgeo.org/qgis/ticket/3536 2011/2/28 Martin Dobias wonder...@gmail.com 2011/2/28 Germán Carrillo carrillo.ger...@gmail.com: Hi

[Qgis-developer] PyQGIS Cookbook, MySQL geometries and Graduated symbol renderer

2011-02-27 Thread Germán Carrillo
Hi Martin, I would like to propose a couple of Python snippets to be included in the PyQGIS Cookbook. 1) Load of MySQL geometries: -- uri = MySQL:dbname,host=localhost,port=3306,user=root,password=xxx|layername=my_table vLayer = QgsVectorLayer( uri, 'my_table', 'ogr' )

[Qgis-developer] Layer list widget for PyQGIS applications

2011-01-17 Thread Germán Carrillo
Hi all, first of all, sorry for the delay in publishing this :-) At [1] you can find a basic layer list (legend) widget for PyQGIS standalone applications. It's under GPL v.2. and it is based on the OpenOceanMap legend [2] written by Aaron Racicot and, of course, on the QGIS layer list widget.

Re: [Qgis-developer] Determine QGIS version from Python

2011-01-05 Thread Germán Carrillo
Try this: from qgis.core import QGis print QGis.QGIS_VERSION if QGis.QGIS_VERSION[0:3] = 1.5: ... Regards, Germán 2011/1/5 Chris Crook ccr...@linz.govt.nz Hi All I'm looking for help on how to find the Qgis version that is running from Python, in order to put version conditional code

Re: [Qgis-developer] Plugin GdalTools - Build Virtual Raster (catalog) idea to develop

2010-11-24 Thread Germán Carrillo
Hi all, I think you may reuse some code of the Load Them All Plugin [1] to accomplish this. Regards, Germán --- [1] http://geotux.tuxfamily.org/index.php?option=com_myblogtask=viewid=264Itemid=59lang=en 2010/11/24 Giuseppe Sucameli sucam...@faunalia.it Hi Santiago, On Wed,

Re: [Qgis-developer] Plugin GdalTools - Build Virtual Raster (catalog) idea to develop

2010-11-24 Thread Germán Carrillo
. Regards, Germán 2010/11/24 Giuseppe Sucameli sucam...@faunalia.it Hi Germán, 2010/11/24 Germán Carrillo carrillo.ger...@gmail.com I think you may reuse some code of the Load Them All Plugin [1] to accomplish this. what did you mean writing to accomplish this, to load the layers

Re: [Qgis-developer] Plugin GdalTools - Build Virtual Raster (catalog) idea to develop

2010-11-24 Thread Germán Carrillo
more than one layer, but anyway you need to look for layers in subdirectories. I'm just trying to help, if you find my comments causing troubles please ignore them :) Regards, Germán 2010/11/24 Giuseppe Sucameli sucam...@faunalia.it Germán, 2010/11/25 Germán Carrillo carrillo.ger

Re: [Qgis-developer] QgsMapCanvas - Special zoom

2010-09-30 Thread Germán Carrillo
Hi, not sure if it's the same, but the Aaron Racicot's MirrorMap plugin does something similar. Have a look at it: http://www.reprojected.com/geoblog/2009/02/17/mirrormap/ Regards, Germán On Thu, Sep 30, 2010 at 2:13 PM, GOO Creations goocreati...@gmail.comwrote: Hello, Is there any

Re: [Qgis-developer] PyQGIS - Selecting Spatialite Datasource at runtime

2010-09-11 Thread Germán Carrillo
?js=nprev=_thl=enie=UTF-8layout=2eotf=1sl=autotl=enu=http%3A%2F%2Fgeotux.tuxfamily.org%2Findex.php%3Foption%3Dcom_myblog%26task%3Dview%26id%3D251%26Itemid%3D59 German, would be able to share the whole source code of the project? Thanks again. Regards, Noli On 9/11/10, Germán Carrillo

Re: [Qgis-developer] PyQGIS - Selecting Spatialite Datasource at runtime

2010-09-10 Thread Germán Carrillo
Hi Noli, you could use this [1] (sorry, it's in Spanish). It uses the Sqlite3 Python module [2]. Regards, Germán [1] http://geotux.tuxfamily.org/index.php?option=com_myblogtask=viewid=251Itemid=59 [2] http://docs.python.org/library/sqlite3.html On Fri, Sep 10,

  1   2   >