[Qgis-user] Ho retrieve the attributealias list

2015-11-02 Thread Andrea Peri
Hi, I need to retrieve a list of attribute alias. To do this, I try this code: for lid, orientation in self.templateTable.model().getObjectIter(): layer = QgsMapLayerRegistry.instance().mapLayer(lid) for idx, fld in enumerate(layer.attributeList()): ... The qgis report me this error:

Re: [Qgis-user] Ho retrieve the attributealias list

2015-11-02 Thread Matthias Kuhn
Hi layer.attributeList() works for me, I really don't know what goes wrong there for you. But it's a quite silly functions since the attribute indexes were changed to always be sequential. Now it just delivers a list each numbers from 0..count-1. So your enumerate will allways give you

Re: [Qgis-user] Geopackage on 2.12

2015-11-02 Thread Randal Hale
Excellent - I guess that is expected behavior then. Yep - I can add it also through the vector dialog also. Thanks! Randy On 11/02/2015 04:20 AM, James Wood wrote: Hey Randy, I get the same on Win7 x64, however, since I have to choose the "All files (*)" option to even see my geopackage,

[Qgis-user] How retrieve the info "hidden" from attribute table

2015-11-02 Thread Andrea Peri
Hi, is possible using QGIS python API retrieve the information "hidden" for a field ? I show the sample in this image attached. -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-user mailing list

Re: [Qgis-user] Ho retrieve the attributealias list

2015-11-02 Thread Andrea Peri
Hi, I resolved ! The solution was: for idx, fld in enumerate(layer.dataProvider().fields()): and after in the code retrieve the alias (or the fieldname) using: layer.attributeDisplayName(idx) and the real name of the field using: fld.name()

Re: [Qgis-user] How retrieve the info "hidden" from attribute table

2015-11-02 Thread Matthias Kuhn
Hi Hidden is a special type of a widget. layer.editorWidgetV2(idx) Best Matthias On 11/02/2015 09:42 PM, Andrea Peri wrote: > Hi, > > is possible using QGIS python API retrieve the information "hidden" > for a field ? > > I show the sample in this image attached. > > > > >

Re: [Qgis-user] wms-layer-legend in print composer distorted

2015-11-02 Thread Luigi Pirelli
How is the resolution of the same legend i the QGIS Layer panel? remember that you can set WMS getLegendGraphic resolution in: Options->settings->Canvas>WMS getLegendGraphics resolution regards Luigi Pirelli

[Qgis-user] wms-layer-legend in print composer distorted

2015-11-02 Thread Julian Schall
Hi all, if i want to include a wms-Layer into a print composition the associated legend is distorted (compare attached picture). Is there a possibility known to get the wms-legend in the correct format? Regards Julian ___ Qgis-user mailing

Re: [Qgis-user] wms-layer-legend in print composer distorted

2015-11-02 Thread Julian Schall
Hi Luigi, >>How is the resolution of the same legend i the QGIS Layer panel? >>remember that you can set WMS getLegendGraphic resolution in: >>Options->settings->Canvas>WMS getLegendGraphics resolution In the layer panel appears a legend icon if I set the resolution 0. Resolution >=1 prohibits

[Qgis-user] Using iphone as gps to log points

2015-11-02 Thread Susan Iremonger
Hi, does anyone know a good app that will enable me to log GPS points, taken when I visit different locations, into my iphone and then export them so I can use them in QGIS? Many thanks. --Susan. ___ Qgis-user mailing list Qgis-user@lists.osgeo.org

Re: [Qgis-user] Using iphone as gps to log points

2015-11-02 Thread Randal Hale
I've used two: Geopaparazzi (open source) and Fulcrum (commercial). Both are very good at what they do - both with well with QGIS. On 11/02/2015 05:03 PM, Susan Iremonger wrote: Hi, does anyone know a good app that will enable me to log GPS points, taken when I visit different locations,

Re: [Qgis-user] How retrieve the info "hidden" from attribute table

2015-11-02 Thread Andrea Peri
Hi Mathias, I resolve my code. Thx really for the help. A. 2015-11-02 21:46 GMT+01:00 Matthias Kuhn : > Hi > > Hidden is a special type of a widget. > layer.editorWidgetV2(idx) > > Best > Matthias > > On 11/02/2015 09:42 PM, Andrea Peri wrote: > > Hi, > > is possible

Re: [Qgis-user] Geopackage on 2.12

2015-11-02 Thread James Wood
Hey Randy, I get the same on Win7 x64, however, since I have to choose the "All files (*)" option to even see my geopackage, I'm guessing this dialog is .sqlite/.db specific. I can add my .gpkg just fine through the Add Vector Layer button of the same menu. James Sent from my iPhone > On Nov

[Qgis-user] How retrieve the size of a font truetype

2015-11-02 Thread Andrea Peri
Hi, I'm try-ing, in a python plugin, to retrieve the size of a font label. I have this code: unicode( fontDef).encode('utf8'), fm.height() ) But it is retrieve the wrong value. Infact If I try to set a font size of 9 dpi using the qgis interface, when try to retrieve it return me a value of

Re: [Qgis-user] GRASS Plugin ready

2015-11-02 Thread Radim Blazek
On Mon, Nov 2, 2015 at 12:52 AM, William Kyngesburye wrote: > As one of those packagers, is there any reason to include support for both in > a build? Or is GRASS 7 support good enough? The only reason to build version 6 is to support users who haven't switched yet to

Re: [Qgis-user] Using iphone as gps to log points

2015-11-02 Thread Nicolas Cadieux
Hi, You could easily just take a picture with the phone and take the coordinates from the image tags. You can then use a plugin like photo2kmz to create a point file of where the images where taken. This is a phone so I doubt that the quality of the coordinates will be much worse then with a

Re: [Qgis-user] QGIS 2.12 packaging for Ubuntu 14.04?

2015-11-02 Thread César Augusto Ramírez Franco
QGIS 2.12 is not a LTR version, so you need to change your repository from LTR to the normal release branch to get the update 2015-11-01 16:10 GMT-05:00 Brent Wood : > I understood the point of this thread was to discuss v2.12 for this > platform - & it is not there for me. > >

Re: [Qgis-user] Using iphone as gps to log points

2015-11-02 Thread Phil (The Geek) Wyatt
Hi Susan, It's probably over the top for simple needs but the Fulcrumapp has recently changed its pricing structure and for $18 a month you can use fully validated forms to collect points including photos etc. You can have as many forms as you want to collect different information. At this

Re: [Qgis-user] Using iphone as gps to log points

2015-11-02 Thread James Wood
Also, check out iGIS. James Sent from my iPhone > On Nov 2, 2015, at 16:03, Susan Iremonger wrote: > > Hi, does anyone know a good app that will enable me to log GPS points, taken > when I visit different locations, into my iphone and then export them so I > can use

Re: [Qgis-user] Using iphone as gps to log points

2015-11-02 Thread William Kyngesburye
Avenza's PDF Maps is an option. You need to add maps first, which you can easily do from GeoPDFs or from their store (US topo maps are free). > On Nov 2, 2015, at 4:03 PM, Susan Iremonger wrote: > > Hi, does anyone know a good app that will enable me to log GPS points,

[Qgis-user] order of shapes and polygons while drawing

2015-11-02 Thread ranjith kumar
Hi, What is the order QGIS uses while drawing shapes ? Is it from shape number 0 to shape number n-1 (n is total number of zones)? or Shape number n-1 to 0? Also each shape may contain more than 1 part and each part(polygon) may be a normal shape(vertices are clockwise direction) or a