[QGIS-Developer] Python libraries default of QGIS

2021-06-30 Thread Luiz Motta
Hi guys, I use a long times ago the Numpy in my plugins. But, for my surprise, recently i discover that is possible use the PILLOW(PIL) no need to install. I would like know how i find which the Python libraries are installed by QGIS? Example, can i use "import scipy" can i use "import scipy"

[QGIS-Developer] Fwd: Change values Temporal Controller Panel

2020-11-06 Thread Luiz Motta
Hi Richard, Your code was exactly what I needed. Thanks so much! Regards, Luiz Motta Em sex., 6 de nov. de 2020 às 11:08, Richard Duivenvoorde < rdmaili...@duif.net> escreveu: > Hi Luiz, > > We have fixed stuff to be able to use temporal stuff in pyqgis just before > 3.1

[QGIS-Developer] Change values Temporal Controller Panel

2020-11-06 Thread Luiz Motta
Hi All, I would like to change the values of the Temporal Controller Panel in my plugin. How do I change the Range of datetimes and the values of step and unit time using python? Regards, Luiz Motta ___ QGIS-Developer mailing list QGIS-Developer

[QGIS-Developer] Crash for signal layerOrderChanged

2018-10-29 Thread Luiz Motta
Hi, I need get the signal when have change of layers order of legend. I tried use the signal of layerOrderChanged, but, crash QGIS. Version: 3.4 Code 4a4b62e OS: Kubuntu 18.04 I used the Terminal Python: def changeOrder(): print('Change

Re: [QGIS-Developer] Factorizing a dbf

2018-01-22 Thread Luiz Motta
Hi Paolo, A possible insight can be this: - Create a table with two columns: 'string from SHP' and 'respective number code'. - In SHP create the Union with the table above. - Use Calculator for populate the new field in SHP with value of code. Good lucky. 2018-01-22 9:18 GMT-02:00 Paolo

Re: [QGIS-Developer] Thanks!

2017-12-27 Thread Luiz Motta
Hi Guys, Recently, I received the issue about Catalog Planet Labs Plugin, and I after fixed, the message of user[1] had the phrase: "It makes my life much easier" YES, the QGIS is making the life os people around the world "easier". This year is ending, then, I desire for you a new year

Re: [QGIS-Developer] Deploy plugin by setting QGIS_PLUGINPATH

2017-11-16 Thread Luiz Motta
Hi Zhang, In my plugins, I use the '__file__' for get the path of my plugin. Example in '__ini__.py': import os dirPlugin = os.path.dirname(__file__) 2017-11-16 8:47 GMT-02:00 Patrick Dunford : > There are sometimes reasons why this method may not work (I think

Re: [QGIS-Developer] Enable/Disable contextual menu layer

2017-10-02 Thread Luiz Motta
> > Hi Devs, > > I am writing a plugin and i have this issue: > The action inside the contextual menu of one layer when this is disabled, > it not is show with gray color(default for disable item) > > Example code: > https://pastebin.com/hSefEM7m > > ___

Re: [Qgis-developer] Difference for transform reference system between QGIS and GDAL

2014-01-17 Thread Luiz Motta
[Meter,1]] Proj4 for QGIS: +proj=utm +zone=21 +south +ellps=aust_SA +towgs84=-57,1,-41,0,0,0,0 +units=m +no_defs Proj4 for GDAL: +proj=utm +zone=21 +south +ellps=aust_SA +units=m +no_defs Regards, Luiz Motta 2014/1/17 Andre Joost andre+jo...@nurfuerspam.de Am 17.01.2014 03:01, schrieb Luiz

Re: [Qgis-developer] Difference for transform reference system between QGIS and GDAL

2014-01-17 Thread Luiz Motta
all parameters of reference system. I resolve my problem, creating the GML file, in this case, the refefence system is identical of source. How suggested Etienne i will raise this issue in gdal-dev list. If someone want to see the script example: http://pastebin.com/PbjwdrHR Regards, Luiz Motta

[Qgis-developer] Difference for transform reference system between QGIS and GDAL

2014-01-16 Thread Luiz Motta
/diff_qgis-gdal/diff_transform.png The code of python print the two geometries in WKT format. I use the QuickWKT plugin for view these geometries Regards, Luiz Motta ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org

Re: [Qgis-developer] Announcing the release of QGIS 1.7 'Wrocław'

2011-06-19 Thread Luiz Motta
Tim, Congratulations for release. At moment, i opened the QGIS's homepage(www.qgis.org), this page yet has the old name (Copiapó), lets go starting well this week with good news for QGIS's users. Regards, Luiz 2011/6/19 Tim Sutton li...@linfiniti.com: We are very pleased to announce the

Re: [Qgis-developer] Announcing the release of QGIS 1.7 'Wrocław'

2011-06-19 Thread Luiz Motta
Tim, At moment, i opened the QGIS's homepage(www.qgis.org), this page yet has the old name (Copiapó), lets go starting well this week with good news for QGIS's users. Its probably just your cache - I updated the web page before sending out the notice to reflect the new version. Based on

[Qgis-developer] Presentations with QGIS in FOSS4G 2011

2011-06-11 Thread Luiz Motta
with QGIS server 8) Cellular Automata QuantumGIS plugin and web-based application 9) Lifemapper Moves Forward: Bringing Together Geospatial and Biodiversity Informatics Tools to Save the World 10) FOSS4G: Technology Enabling Humanitarian Relief Efforts * I am here! Regards, Luiz Motta 2011/5/5

Re: [Qgis-developer] new ubuntu compile problem

2011-05-02 Thread Luiz Motta
Marco, I just upgraded to ubuntu 11.04 and had the same problem about SIP(Couldn't load PyQGIS) I am running perfectly QGIS, to this i follow this steps: 1) Remove all files and directories in 'build' directory 2) Inside 'build' directory: 2.1) Set the makefile: sudo ccmake .. 2.2) Make

Re: [Qgis-developer] Status of Release 1.7 and Raster-on-the-Fly

2011-03-17 Thread Luiz Motta
Alexander, I already made a post in QGIS Brazil community about Raster on the Fly: http://qgisbrasil.wordpress.com/ Sorry, it is in Portuguese. I wrote, this a new feature will appear in release 1.7 Luiz 2011/3/17 Alexander Bruy alexander.b...@gmail.com: On Thu, 17 Mar 2011 10:53:25 -0500

[Qgis-developer] Compiling Linux/ubuntu 64 bits

2011-03-17 Thread Luiz Motta
Hi Devs, At now, i compile the QGIS R15530, Linux/Ubuntu 10.10 64 bits I can't use plugins python, i receive this error: Couldn't load PyQGIS. Python support will be disabled. Traceback (most recent call last): File , line 1, in ImportError: /usr/local/share/qgis/python/qgis/core.so:

Re: [Qgis-developer] Not able to save a layer as a tab file

2011-03-16 Thread Luiz Motta
Milena, I confirm yours comment about write file in format TAB. I read the source and i believe has a procedure inconsistent in file: http://trac.osgeo.org/qgis/browser/trunk/qgis/src/core/qgsvectorfilewriter.cpp I would like that Tim could see the method

Re: [Qgis-developer] crash addind wms server from mapproxy

2011-03-14 Thread Luiz Motta
Duarte, I can see OMS layer. Enviroment: Windows XP QGIS trunck R15470 The problem is the on the fly. It is need use the same CRS of the OSM (EPSG: 4326) to work with others layers. Luiz 2011/3/14 Duarte Carreira dcarre...@edia.pt: Can anyone confirm this? 1)  Add wms server

Re: [Qgis-developer] Multipart to Singlepart: empty result

2011-03-12 Thread Luiz Motta
, open the ticket to Carson make the best solution for BUG Regards, Luiz Motta 2011/3/12 Agustin Lobo alobolis...@gmail.com: Hi! Having https://sites.google.com/site/openfiles2/home/ikn2_testsites_dis.zip as input, I want to get a layer in which each point be an independent object keeping

Re: [Qgis-developer] Raster on the fly

2011-03-11 Thread Luiz Motta
QGIS r15426 for Windows by OSGEO4W is working one simple image (CBERS satellite image). I will continue testing with a lot of image (example PALSAR with diferent zone). 2011/3/11 Ramon Andinach cust...@westnet.com.au: On 10/03/2011, at 08:11 , Ramon Andinach wrote: On 09/03/2011, at 18:35

Re: [Qgis-developer] Raster on the fly

2011-03-09 Thread Luiz Motta
Nole, I update the QGIS trunk by OSGEO4W, at the moment, the version is R15409, but when i enable the on the fly the QGIS crash. I tested with same image of Ubuntu 10.10 in QGIS R15400 this run perfect. 2011/3/9 Noli Sicad nsi...@gmail.com: Ramon, Try to tweak your Osgeo4w installer and

[Qgis-developer] Compile QGIS r15395 - ui_qgisapp.h not found

2011-03-08 Thread Luiz Motta
diretório não encontrado compilation terminated. make[2]: ** [src/app/CMakeFiles/qgis.dir/main.cpp.o] Erro 1 make[1]: ** [src/app/CMakeFiles/qgis.dir/all] Erro 2 make: ** [all] Erro 2 I followed the qgis-1.6.0_coding-compilation_guide_en.pdf (using ccmake). Regards, Luiz Motta

Re: [Qgis-developer] Shapefile: prj vs qpj (CRS info)

2011-03-01 Thread Luiz Motta
Hi Benoit, I created a new shapefile by QGIS with same CRS of Town (EPSG 32630). The QGIS created two files of projections: PRJ and QPJ. The PRJ have the same value of yours (Town.prj) but the QPJ don´t have same value (see below): 1) Default -PRJ :

[Qgis-developer] Get name FID of vector Layer

2011-02-18 Thread Luiz Motta
(lyr.source(), test_subset, lyr.providerType()) addLyr.setSubsetString(FID IN (0,1,2)) core.QgsMapLayerRegistry.instance().addMapLayer(addLyr) The script run in shapefile, but, i need find the name of Key in layer from database. Regards, Luiz Motta ___ Qgis

[Qgis-developer] Icons for update spatialquery plugin

2011-02-14 Thread Luiz Motta
of selection the features inside list of FIDs 4) selectesubsetlayer.png: create a subset for target layer with the list of FIDs It is the expression of query to target layer. The result is the target layer with only the FID's I will appreciate your help. Regards, Luiz Motta

[Qgis-developer] Update plugin spatialquery

2011-02-06 Thread Luiz Motta
Devs, Please, see if is possible make update of spatialquery plugin for trunk. The patch is in ticket #2634. Regards, Luiz Motta ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] Open Raster WGS84/Geographic call for setting system reference

2011-02-01 Thread Luiz Motta
Hi Dev, Today i had open one image in WGS84/Geographic. The QGIS (trunk 15118) ask me for setting the reference system of image. When image have the one projection system reference, the QGIS don´t ask about system reference. The QGIS 1.6 open the image in WGS84/Geographic without asking about

Re: [Qgis-developer] Openlayers plugin python error

2011-01-19 Thread Luiz Motta
Giovanni, The message error occurr in MemoryLayerSaver's plugins. Disable all plugins and work only OpenLayers's plugin. Open the layer (ex.: shapefile with projection) and try 2011/1/19 Giovanni Manghi giovanni.man...@gmail.com Hi, under Ubuntu linux (10.04) and qgis trunk I get the

Re: [Qgis-developer] Error for use Coordinate Transform

2011-01-19 Thread Luiz Motta
the plugin, the directory was setting correct Regards, Luiz 2011/1/19 Martin Dobias wonder...@gmail.com On Mon, Jan 17, 2011 at 3:36 AM, Luiz Motta motta.l...@gmail.com wrote: Hi Devs, I am making the plugin, where i use this method core.QgsCoordinateTransform.transform, the QGis showed

[Qgis-developer] Error for use Coordinate Transform

2011-01-16 Thread Luiz Motta
When i continue running the plugin, the next time call this methods the error does not appear. I need initialize one library before call the transform's method ? Regards, Luiz Motta ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http

Re: [Qgis-developer] Any GPX to PostGIS and GPX to Spatialite plugin

2010-12-14 Thread Luiz Motta
Hi, Maybe it is better to make the plugin for write vector layers(any source) to Database (Postgis or Spatialite). 2010/12/14 Noli Sicad nsi...@gmail.com Hi, Any QGIS plugin for GPX to PostGIS and GPX to Spatialite? http://www.postneo.com/2007/01/20/from-gpx-to-postgis What do you think

Re: [Qgis-developer] Error for postgres's provider when table(statement SELECT ) is outside public's schema

2010-12-14 Thread Luiz Motta
is created perfect. I saved the project of QGIS (with the created layer) and open again this project the message of error was showed. In this point isolat the factor of plugin, then, have some problem with provider. Regards, Luiz Motta 2010/12/14 Giuseppe Sucameli sucam...@faunalia.it Hi Luiz

[Qgis-developer] Error for postgres's provider when table(statement SELECT ) is outside public's schema

2010-12-13 Thread Luiz Motta
3329. Regards, Luiz Motta ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] python error

2010-11-18 Thread Luiz Motta
Hi, I read your code(db.py), your problem is use both, spaces(4 space) and TAB. Use only one, not possible use both. I setting my text editor to change TAB to 2 spaces. See in your code the lines 33 and 34, have TAB, you need change for spaces. If you use WINDOWS, i liked the Notepad++ editor

Re: [Qgis-developer] image show hide plugin error

2010-10-10 Thread Luiz Motta
Paolo, Correction bug when initialize plugin already containing layer of polygon Fix this bug at version 0.3 (QGIS User-Contributed Python Plugin Repository). Thank Paolo Cavallini escreveu: Just installed, I get an error: === Couldn't load plugin imgshowhide due an error when calling its

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

2010-09-12 Thread Luiz Motta
Hi all, I am starting an plugin for work with spatialite and postgresql/postgis, then, maybe is usefull (part of code for make an list with connections of spatialite): lstConnection = QGisDatabase.getListConnection(SpatiaLite) if lstConnection.count() 0: lstPaths = QtCore.QStringList()