Re: [Qgis-user] Number of vertices

2017-04-23 Thread Nyall Dawson
On 24 April 2017 at 11:52, Martin Bain wrote: > Hi Anke, > > The asPolyline() function of a geometry returns a list of points. You can > then simply get the length of the list: > > > > > > lyr=iface.activeLayer() > > sel=lyr.selectedFeatures() > >

Re: [Qgis-user] Number of vertices

2017-04-23 Thread Martin Bain
Hi Anke, The asPolyline() function of a geometry returns a list of points. You can then simply get the length of the list: lyr=iface.activeLayer() sel=lyr.selectedFeatures() obj=sel[0].geometry() verts=obj.asPolyline() print verts [(526002,6.81305e+06), (526011,6.81309e+06),

[QGIS-it-user] QGIS 2.18.7 DB Manager e Geopackage

2017-04-23 Thread Totò
Salva a tutti, conosco poco il Geopackage, ma ho fatto delle prove: ho creato, da QGIS, un db.gpkg aggiungendo un layer puntuale definendo tutti i campi necessari; in una seconda fase ho provato a importare altri layer nel db.gpkg facendo uso del DB Manager, ma niente da fare mi da sempre questo

Re: [Qgis-user] r.relief HELP

2017-04-23 Thread Micha Silver
Hi Ben On 04/23/2017 12:48 PM, Benjamin Higgs wrote: Hi Micha, Thanks for your response.  I ran g.region -p And it prints -  zone: 0 datum: nzgd2k

Re: [Qgis-user] Number of vertices

2017-04-23 Thread Werner Macho
Hi! You mean something like that? http://plugins.qgis.org/plugins/Vertices_Counter/ As it is GPL the python source should not be a problem. regards Werner On Sun, Apr 23, 2017 at 8:39 AM, Anke zur Gölden wrote: > Good morning > > is there a way to get the number of

[Qgis-user] Number of vertices

2017-04-23 Thread Anke zur Gölden
Good morning is there a way to get the number of vertices for a Polyline? I am looking for the python method to get if possible thx Anke ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user