[Qgis-user] select features slow down

2008-11-18 Thread Lionel Roubeyrie
Hi all, needing to edit/copy/past features from a large vector layer (72,000 features), the select features tool takes ~5sec. each time we want to use it, where it is relatively faster on smalls vector layers (~4,000 features). Is there a flag at the compilation time to improve the speed, or

[Qgis-user] Error running fTools_preview2/Random points

2008-11-18 Thread Agustin Lobo
Barry, After entering the output file name and clicking OK in the fTools_preview2/Random points panel I get the following error (binary ubuntu preview2 version): An error has occured while executing Python code: Traceback (most recent call last): File

Re: [Qgis-user] QGIS Python Plugin Installer not UTF-8 aware?

2008-11-18 Thread Martin Dobias
2008/11/17 Borys Jurgiel [EMAIL PROTECTED]: def description(): return u'Danke schön' However... Installer do, but rest of QGIS doesn't support utf-8 in plugin metadata ;) I've fixed that in SVN trunk, from r9663 it supports also metadata in unicode :) Martin

Re: [Qgis-user] Error running fTools_preview2/Random points

2008-11-18 Thread Carson Farmer
Hi Agus, After entering the output file name and clicking OK in the fTools_preview2/Random points panel I get the following error (binary ubuntu preview2 version): This is an error due to the recent api changes... These must have been made after I updated fTools, and I missed it :-( Sorry

[Qgis-user] getting QgsMapCanvasSnapper to work

2008-11-18 Thread Möri Cedric
Hi all! I'm trying to snap a vertex with my python plugin. (Many thanks to Martin for the quick work with the bindings!) My code looks like this: def canvasReleaseEvent(self,event): x = event.pos().x() y = event.pos().y() startingPoint = QPoint(x,y) result = []

Re: [Qgis-user] getting QgsMapCanvasSnapper to work

2008-11-18 Thread Stefanie Tellex
Here's what I do for snapping in python: def canvasReleaseEvent(self, e): print mouse click, e mapcoords = self.canvas.getCoordinateTransform().toMapCoordinates(e.x(), e.y()) print map position, mapcoords snapdist = 2 r = qgis_utils.snap(self.layer,

AW: [Qgis-user] getting QgsMapCanvasSnapper to work

2008-11-18 Thread Hugentobler Marco
Hi Cedric I used your code lines and started the debugger. It seems that the QgsMapCanvasSnapper works correctly. I think the problem has to do with the QList reference in the binding: int snapToCurrentLayer( const QPoint p, QListQgsSnappingResult results, QgsSnapper::SnappingType snap_to,

Re: [Qgis-user] getting QgsMapCanvasSnapper to work

2008-11-18 Thread Carson Farmer
I used your code lines and started the debugger. It seems that the QgsMapCanvasSnapper works correctly. I think the problem has to do with the QList reference in the binding: int snapToCurrentLayer( const QPoint p, QListQgsSnappingResult results, QgsSnapper::SnappingType snap_to, double