[Qgis-developer] Python plugin: open a project file in "append" mode

2012-08-22 Thread luca_manganelli
Hi, in the documentation, at the QgsProject entry, I read this: boolread (QFileInfo const &file) read project file boolread () presuming that the caller has already reset the map canvas, map registry, and legend the first read (QFileInfo const &file) sets the project

Re: [Qgis-developer] Removing old labelling / polygons (in 1.9)

2012-03-12 Thread luca_manganelli
-qgis-developer-boun...@lists.osgeo.org ha scritto: ->Hi Martin,>>as I am tiling with QGIS-server, too, your suggestion might solve the>labelling problem and another problem I realized recently: I have a>SVG>fill for polygons and I experienced cut fills at tile edges. I would>expect the fil

Re: [Qgis-developer] Removing old labelling

2012-03-06 Thread luca_manganelli
-qgis-developer-boun...@lists.osgeo.org ha scritto: ->Per: Andreas Neumann >Da: bernhard.stro...@jena.de>Inviato da: qgis-developer-boun...@lists.osgeo.org>Data: 06/03/2012 02.26PM>Cc: qgis-developer@lists.osgeo.org>Oggetto: Re: [Qgis-developer] Removing old labelling>>I cannot confirm slow

Re: [Qgis-developer] Removing old labelling

2012-03-06 Thread luca_manganelli
-Werner Macho ha scritto: - >Per: luca_mangane...@comune.trento.it >Da: Werner Macho >Data: 06/03/2012 01.31PM >Cc: qgis-developer@lists.osgeo.org >Oggetto: Re: [Qgis-developer] Removing old labelling > > > >Any way to find the bottleneck? >It would be real nice to have the new labeling

Re: [Qgis-developer] Removing old labelling

2012-03-06 Thread luca_manganelli
-qgis-developer-boun...@lists.osgeo.org ha scritto: ->Please test it with an old PC, ora netbooK: in our case it is almost>unusable with <300 polygons.>Also, some of the bugs are pretty serious.>All the best.I can confirm the bad performance with new labelling. It's bad on new systems, too

Rif: [Qgis-developer] Removing old labelling

2012-03-06 Thread luca_manganelli
-qgis-developer-boun...@lists.osgeo.org ha scritto: ->Any objections for removing the old labelling stuff? See this bug:http://hub.qgis.org/issues/4634this is one cause that we still use the old labelling engine.___ Qgis-developer mailing list Qgi

Rif: [Qgis-developer] Backporting bugs for 1.7.5

2012-03-01 Thread luca_manganelli
-qgis-developer-boun...@lists.osgeo.org ha scritto: ->Are there plans for a 1.7.5 release? If so, it would be great to have>another table for 1.7.5 added to [1] and we can start collecting>potential backports.Agreed.+1___ Qgis-developer mailing li

[Qgis-developer] New labeling engine: problems

2011-12-15 Thread luca_manganelli
Hi, I have encountered problems with the new labelling engine. I have a cadastral layer and I set labels "over centroid", but the new labeling engine moves them very away from the centroid. See this attachment: http://hub.qgis.org/attachments/4116/label-bug.jpeg If I use the old engine, it wo

Re: [Qgis-developer] Benchmarking / optimization

2011-11-30 Thread luca_manganelli
qgis-developer-boun...@lists.osgeo.org scritti il 30/11/2011 11.24.23 > IMHO: > - it would be easy to setup a test engine for QGIS Server, and keep > updated a table of results, so we could spot promptly any change in > performances > - anyway, QGIS Server should be used as tiled, in any condition

Re: [Qgis-developer] Benchmarking / optimization

2011-11-29 Thread luca_manganelli
qgis-developer-boun...@lists.osgeo.org scritti il 28/11/2011 19.49.24 > Hi, > because I found QGIS to be terribly slow with larger vectors, I > started to work a bit on rendering optimization. I am still at the > beginning of the work, here are some first findings. > [CUT ALL] These benchmarks a

Re: [Qgis-developer] API proposal: fetching of features

2011-10-27 Thread luca_manganelli
Martin Dobias wrote on 27/10/2011 19.07.43 > What do you think? I would like to gather your opinions - is it > good/bad/complex/inefficient/nonintuitive/verbose/...? +1, .select() and derivates are, maybe, the most important function and it's crucial that they must be optimized. Using them in pyt

[Qgis-developer] QgisServer: enabled layers from project not taken

2011-10-19 Thread luca_manganelli
Hi, I noticed that QgisServer doen't take enabled layers from project file, but the user should enable them in the web client. Another request: is it possible to hide some layers from TOC in the web client (but they are visible in map)?___ Qgis-develop

Re: [Qgis-user] Re: [Qgis-developer] netiquette

2011-09-26 Thread luca_manganelli
qgis-user-boun...@lists.osgeo.org scritti il 26/09/2011 15.06.51 > Frankly I do not believe that posting these rules (or a link to them) > will improve the communication :-) ... mainly because the people who > do not respect the usual netiquette also tend to ask wrong questions, > do not read docu

Re: [Qgis-developer] netiquette

2011-09-26 Thread luca_manganelli
qgis-developer-boun...@lists.osgeo.org scritti il 26/09/2011 13.29.46 > I mean hi :-) Maybe its time we do formalise the rules then - at least > we can point people to a document describing our expectations RFC 1855, paragraph 3.0 and below, could be a good start: http://www.ietf.org/rfc/r

[Qgis-developer] Re: [Qgis-user] netiquette

2011-09-26 Thread luca_manganelli
qgis-user-boun...@lists.osgeo.org scritti il 26/09/2011 11.54.35 > Hi all. > Please avoid posting replies with very long citations. Many of us reads > the email with cell phones, and having long unnecessary citations is > quite annoying. > Thanks. We could "suspend" the n00b-user for one week :-D

Re: [Qgis-developer] 1.7.1 Branch created

2011-09-22 Thread luca_manganelli
Werner Macho wrote on 22/09/2011 15.49.35 > > could you backport this fix? > > > > http://hub.qgis.org/issues/3987 > pull request out on github .. I don't understand, how can I do it?___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http:/

Re: [Qgis-developer] 1.7.1 Branch created

2011-09-22 Thread luca_manganelli
qgis-developer-boun...@lists.osgeo.org scritti il 22/09/2011 12.14.05 > > and maybe: > > http://hub.qgis.org/issues/4173 > Also does not apply cleanly to the relase branch. Will need more > investigation. could you backport this fix? http://hub.qgis.org/issues/3987__

Re: [Qgis-developer] Re: API 2.0

2011-09-12 Thread luca_manganelli
Another useful method: QgsDataProvider.searchForFeatures ( fieldIndex, searchString, searchMethod = 0 ) fieldIndex: search on idx-th field; searchString: search terms; searchMethod: 0x1 = match whole searchString 0x2 =

Re: [Qgis-developer] Re: Release plans for 1.7.1

2011-08-25 Thread luca_manganelli
qgis-developer-boun...@lists.osgeo.org scritti il 24/08/2011 17.48.21 > We discovered that also the plugin repository never uses proxy > user/password. Be sure to set proxy type to HttpProxy.___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org

Re: [Qgis-developer] Re: Release plans for 1.7.1

2011-08-25 Thread luca_manganelli
Giuseppe: please don't send in HTML, on my client is horrible *** Giuseppe Sucameli wrote on 24/08/2011 19.56.23 > It work only with proxy anonymous (without user/pwd). > QGis uses a QT class (QNetworkAccessManager) to handle the user > authentication, > so I would exclude this is a QGis

Re: [Qgis-developer] Release plans for 1.7.1

2011-08-24 Thread luca_manganelli
qgis-developer-boun...@lists.osgeo.org scritti il 23/08/2011 21.19.36 > Hi All > I would like to put out a maintenance release of the 1.7 branch at the > end of this month. There won't be too much activity surrounding the > release as the branch is in feature freeze. There may have been some > s

[Qgis-developer] Problem with select() NOT working on spatialite and shapefile (with Plugin example)

2011-06-24 Thread luca_manganelli
Hi, on http://hub.qgis.org/issues/3987 I've attached a sample plugin that permits an user to make a selection on any feature, so you can test it yourself. It demonstrates that QgsVectorLayer.select() function works only on PostGIS layer, on RasterLite / ShapeFile layers you cannot select pol

[Qgis-developer] Re: [Qgis-user] Rubberband class in QGIS 1.7

2011-06-20 Thread luca_manganelli
qgis-user-boun...@lists.osgeo.org scritti il 20/06/2011 09.40.19 > Dear All, > I made features select plugin used rubberband class and extended > QgsMapTool class. > It work fine in QGIS 1.6, But not work in QGIS 1.7. > After rubberBand.movePoint() in canvasMoveEvent(), it was crashed. Confirmi

Re: [Qgis-developer] Annoying bug found in QGIS 1.7 (not present in 1.6)

2011-06-16 Thread luca_manganelli
Giovanni Manghi scritti il 16/06/2011 10.58.20 > Hi, did you filed a ticket? Yes: http://hub.qgis.org/issues/3987___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] Annoying bug found in QGIS 1.7 (not present in 1.6)

2011-06-15 Thread luca_manganelli
Hi, I wrote a PYTHON plugin that does a simple feature select on a QgsVectorLayer: pnt = myLayer= tolerance = 1 rectangle = QgsRectangle() rectangle.setXMinimum (pnt.x() - tolerance) rectangle.setXMaximum (pnt.x() + tolerance) rectangle.setYMinimum (pnt.y() - tolerance) rectang

Re: [Qgis-developer] release of 1.7

2011-05-31 Thread luca_manganelli
qgis-developer-boun...@lists.osgeo.org scritti il 31/05/2011 10.42.36 > wow > +1 for me on that .. > a really good idea .. beta + call for funding to solve last bugs .. > in that way some companys will probably see that there is a lot of > work and time invested in opensource and it would be nice

[Qgis-developer] QGIS doesn't use username and password in options dialog for proxy connections with WMS

2011-05-25 Thread luca_manganelli
QGIS doesn't use username and password inserted in the "options dialog" for proxy connections, to use with WMS connections. This problem affects 1.6.0 and trunk versions, on Linux and Windows. In the SQUID log, I see this when I try to connect to NASA WMS with Qgis: 1306326384.090 1 192.

Re: [Qgis-developer] QGIS latest SVN: some WMS-C tiles are not loaded

2011-04-28 Thread luca_manganelli
To Radim and Ivan: That bug is fixed :-) Thank you! qgis-developer-boun...@lists.osgeo.org scritti il 28/04/2011 21.19.25 > > This bug doesn't happen in QGIS 1.6, which works perfectly. > > > > http://oi56.tinypic.com/15zs56u.jpg > > > > We heve opened a ticket in osgeo, #3738. > Luca, isn't it

[Qgis-developer] addVectorLayer and PostGIS layer: forcing geometry type

2011-04-28 Thread luca_manganelli
Hi all, I have a PostGIS layer with multiple geometries: POINT, MULTIPOINT, LINESTRING and MULTILINESTRING. I tried to add a layer in this way: uri = QgsDataSourceURI() uri.setConnection ("cartografia", "5432", "schema", "postgres", "") uri.setSql ("sql=GeometryType('wkb_geometry') IN

[Qgis-developer] QGIS latest SVN: some WMS-C tiles are not loaded

2011-04-15 Thread luca_manganelli
Hi, I and a my colleague have found a WMS-C bug in latest 1.7 SVN builds. It seems that QGIS "forgets" some tiles. This bug doesn't happen in QGIS 1.6, which works perfectly. http://oi56.tinypic.com/15zs56u.jpg We heve opened a ticket in osgeo, #3738.__

[Qgis-developer] Python plugin: how to set a symbol for a layer?

2011-04-01 Thread luca_manganelli
Hi, I've searched across documentation and mailing list, but I didn't found a page explaining how to set a symbol. For example: - point layer: I want to use a circle with width 0.5 and gray colour with black border; - line layer: width 1 and continous green line any hint? Thank you in adv

Re: [Qgis-developer] Remove QgsTextAnnotationItem from canvas with Python

2011-01-25 Thread luca_manganelli
qgis-developer-boun...@lists.osgeo.org scritti il 25/01/2011 09.40.24 > Hi Stefan > If the text annotation is selected, you could do this: And what if I have a pointer of that textannotation stored in a variable? ___ Qgis-developer mailing list Qgis-d

Re: [Qgis-developer] A roadmap to QGIS 2.0

2011-01-19 Thread luca_manganelli
qgis-developer-boun...@lists.osgeo.org scritti il 19/01/2011 11.30.15 > You are definitely right! > I agree that we probably should do the same as we did with 1.0 (with > less success) and call 2.0 a "Long Term release". 1.0 was almost abbandoned in favour of more stable 1.2/1.4. So I think it w

Re: [Qgis-developer] 1.6?

2010-11-23 Thread luca_manganelli
qgis-developer-boun...@lists.osgeo.org scritti il 23/11/2010 22.58.11 > We are still testing them as there seems to be a problem with plugin > fetching. which bug? ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/ma

Re: [Qgis-developer] New classes for attribute table?

2010-11-12 Thread luca_manganelli
Martin Dobias scritti il 12/11/2010 10.25.29 > I'm not sure what classes do you mean. The attribute table classes are > in src/app/attributetable directory in the source tree, but they have > been there for several releases already (I think from 1.2). I remember a new class for attributes that i

[Qgis-developer] New classes for attribute table?

2010-11-11 Thread luca_manganelli
I remember that Martin has commited new classes for attribute table of a layer, in QGIS 1.6. Which are them? ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] Unable to compile QGIS under Ubuntu 10.04 LTS

2010-11-08 Thread luca_manganelli
Hi, I'm encounteering problems compiling latest SVN build of QGIS. I have this error: [ 44%] Building CXX object src/app/CMakeFiles/qgis.dir/qgisapp.cpp.o In file included from /usr/local/src/qgis_unstable/src/app/qgsrasterlayerproperties.h:23, from /usr/local/src/qgis_unstable/

Re: [Qgis-developer] labelling-ng in qgis 1.6?

2010-11-08 Thread luca_manganelli
Marco Hugentobler scritti il 08/11/2010 11.42.57 > Hi Luca > That should be the same as in 1.5: > Activate the vector layer and go to menu 'Layer->Labeling' aaah... I thought that was the old ABC Label plugin :-) why do you not remove the old labelling on Layer Properties? ___

[Qgis-developer] labelling-ng in qgis 1.6?

2010-11-08 Thread luca_manganelli
Hi, how can I use labelling-ng in QGIS 1.6? ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Bug in PAL labelling over the dateline

2010-10-07 Thread luca_manganelli
qgis-developer-boun...@lists.osgeo.org scritti il 07/10/2010 08.40.07 > There are already other PAL changes in the QGIS source tree that need to be > merged back into PAL, e.g. Martins curved labeling or the possibility to force > certain label positions for data defined labeling. So agreed, we >

Re: [Qgis-developer] Offline editing Plugin

2010-09-29 Thread luca_manganelli
Pirmin Kalberer scritti il 29/09/2010 13.13.41 > Paths are fixed. Please try again. Now they are OK. Thank you! ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Offline editing Plugin

2010-09-29 Thread luca_manganelli
qgis-developer-boun...@lists.osgeo.org scritti il 29/09/2010 11.37.21 > I wrote a little blog article about it: > http://www.sourcepole.ch/2010/9/29/offline-editing-plugin-for-qgis I cannot download sources and neither view the screenshot. ___ Qgis-dev

Re: [Qgis-developer] pyQgis-question

2010-09-27 Thread luca_manganelli
qgis-developer-boun...@lists.osgeo.org scritti il 28/09/2010 08.21.31 > myIdx = myLayer.fieldNameIndex( 'myfield' ) > newFeature.changeAttribute( myIdx, newValue ) > #does not change the field value to new value :-( > what is the second argument of changeAttribute supposed to be? >From my 'homem

[Qgis-developer] QgsMapTolerance: wrong value returned?

2010-09-23 Thread luca_manganelli
Hi, in my project options I've set snap tolerance for a layer of 10 pixels. How can I get this value with QgsTolerance (or similiar)? ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] [OT] SpatiaLite Is Not the Shapefile of the Future

2010-09-16 Thread luca_manganelli
from: http://www.spatiallyadjusted.com/2010/09/16/spatialite-is-not-the-shapefile-of-the-future/ "In this case SpatiaLite is dying a slow death because no one is actually implementing it. Now yes OGR, FDO and other libraries support it, but you don’t see that making its way into mainline software

Re: [Qgis-developer] Python dynamic forms

2010-09-16 Thread luca_manganelli
Bernhard Ströbl scritti il 16/09/2010 09.36.12 > > Because it's integrated into QT framework. > this certainly is a plus. > To all of you: Has anybody made any positive or negative experiences: > Ease of coding, amount of code needed ...? > Is there a recommendation by the devs? Should there be

Re: [Qgis-developer] Python dynamic forms

2010-09-16 Thread luca_manganelli
Bernhard Ströbl scritti il 16/09/2010 08.41.12 > Hi Luca, > what is the advantage? (I am curious) > regards > Bernhard Because it's integrated into QT framework. Again, in my QGIS 1.5 Windows install if I do this at Python Console: >>> import psycopg2 Traceback (most recent call last): File

Re: [Qgis-developer] Python dynamic forms

2010-09-15 Thread luca_manganelli
qgis-developer-boun...@lists.osgeo.org scritti il 16/09/2010 07.21.45 > Note I’m using psycopg2 for the database connections. Can I suggest you to use QSqlDatabase and QSqlQuery (both present in Qt classes) ?___ Qgis-developer mailing list Qgis-develope