[Qgis-user] Toolbars - SVG icons management - QGIS 2.16

2016-08-18 Thread Christophe Damour

Hi,

Has anything changed regarding the way SVG icons are handled in QGIS 2.16 ?

My python plugin's toolbar doesn't display well anymore in QGIS 2.16 :
- QGIS 2.14 :

- QGIS 2.16 :


My SVGs are 64x64 pixels, and I add them to the toolbar using this code :
QIcon(os.path.join(pluginDir, 'icons/config.svg'))

Thanks for any hint.

--
Christophe


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Many problems with qlonglong/Integer64 fields

2016-05-04 Thread Christophe Damour

Hi,

I opened a ticket related to this :
https://hub.qgis.org/issues/14742

No answer so far...

--
Christophe

Le 04/05/2016 à 12:29, magerlin a écrit :

Am I the only one having trouble with 64 bit integer fields (qlonglong or
Integer64) either being regarded as text or simply being ignored by plugins?

"Group Stats" regards them as text, while "Join attributes by location"
ignores them when making attribute summarys.

I am using the windows 64 bit version in win 7 installed from Osgeo4w.



-
Regards Morten

Currently using Qgis 2.12.1 (OSGeo4),
Windows 7, 64bit
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Many-problems-with-qlonglong-Integer64-fields-tp5264507.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Problems importing layers to SpatiaLite database

2016-04-07 Thread Christophe Damour

Hi,

Sorry for double posting, but my first message is waiting for moderation 
because of attach file size...


I am trying to import a PostGis layer into a SpatiaLite database, using 
QGIS Database Manager import function.


The PostGis layer has a string primary key, and I want to keep that 
primary key.


To keep the primary key, I check "Primary key" option and type the name 
of the PostGis primary key field, but the result is an empty column...
I tried to workaround this problem by keeping primary key values in a 
second column and getting them back after the import, this used to work 
with QGIS V2.8, but doesn't anymore with QGIS V2.14.


Here is the result I get :
- When opened in QGIS Database Manager, I can see correct values in the 
id column.

- When opened in QGIS, every record has the same id value.

So my questions are :
- Why isn't it possible to keep PostGis primary key when importing to 
SpatiaLite with QGIS Database Manager ?

- How to workaround this problem ?

Thank you for helping,

--
Christophe

Le 07/04/2016 à 14:01, Christophe Damour a écrit :

Hi,

I am trying to import a PostGis layer into a SpatiaLite database, 
using QGIS Database Manager import function.


The PostGis layer has a string primary key, and I want to keep that 
primary key.


To keep the primary key, I check "Primary key" option and type the 
name of the PostGis primary key field, but the result is an empty 
column...
I tried to workaround this problem by keeping primary key values in a 
second column and getting them back after the import, this used to 
work with QGIS V2.8, but doesn't anymore with QGIS V2.14.


Attached to this message is an example SpatiaLite database that 
illustrates the result I get :
- When opened in QGIS Database Manager, I can see correct values in 
the id column.

- When opened in QGIS, every record has the same id value.

So my questions are :
- Why isn't it possible to keep PostGis primary key when importing to 
SpatiaLite with QGIS Database Manager ?

- How to workaround this problem ?

Thank you for helping,
--
Christophe



___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS 2.14 LTR ?

2016-03-05 Thread Christophe Damour

Thank you for clarifying.

--
Christophe

Le 05/03/2016 à 15:29, Richard Duivenvoorde a écrit :

On 05-03-16 15:07, Christophe Damour wrote:

Hi,

I am wondering which QGIS version is current LTR.

Changelog says that 2.14 is LTR :
http://qgis.org/en/site/forusers/visualchangelog214/

But QGIS home page says current LTR is 2.8.7 :
https://www.qgis.org/en/site/

Do I miss something ?

2.14 will be the next LTR, but it will be 'named' LTR and be available
in the LTR repository when we release 2.16

See:
https://lists.osgeo.org/pipermail/qgis-community-team/2016-March/004554.html

So depending on your goals you could start with 2.14 knowing it is still
2.14.zero(!) maybe hitting a .0 bug, but then you know what to work with
when it will be the true LTR within a 3 of months.

But if you want current rock solid LTR: grab 2.8 for the upcoming months.

Regards,

Richard Duivenvoorde

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] QGIS 2.14 LTR ?

2016-03-05 Thread Christophe Damour

Hi,

I am wondering which QGIS version is current LTR.

Changelog says that 2.14 is LTR :
http://qgis.org/en/site/forusers/visualchangelog214/

But QGIS home page says current LTR is 2.8.7 :
https://www.qgis.org/en/site/

Do I miss something ?

--
Christophe




___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Database manager don't keep primary key when importing vector layer from PostGis to SpatiaLite database

2015-06-12 Thread Christophe Damour

Hi,

I am using the Database Manager to import vector layers from a PostGis 
dabase to a SpatiaLite one.
If I check Primary Key option and type the name of an existing field, 
the values of this field are replaced by serial values.
When I import the same way from SpatiaLite to PostGis, existing values 
are kept as expected.


This is quite annoying because SQLite fields can't be modified easily 
aftwards (name, constraints...).


Has anyone had the same problem ? Is it a bug ?

Thanks for any hint,

--
Christophe


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Re: Labels not visible when setting them programmatically.

2015-04-02 Thread Christophe Damour

Hi,

I have the same problem when I tried to set labels from a python plugin :

With this code, labels are correctly displayed without having to apply 
layer properties, but only for points or polygons layers.
For lines layers, I have to apply layer properties in order to display 
labels.

palLayer = QgsPalLayerSettings()
palLayer.readFromLayer(self.serpLayer)
palLayer.enabled = True
palLayer.fieldName = 'id'
palLayer.textFont.setPointSize(10)
palLayer.writeToLayer(self.serpLayer)

With this code, I get the same problem for points, lines and polygons 
layers :

self.serpLayer.setCustomProperty('labeling', 'pal')
self.serpLayer.setCustomProperty('labeling/enabled', 'true')
self.serpLayer.setCustomProperty('labeling/fieldName', 'id')
self.serpLayer.setCustomProperty('labeling/fontSize', '10')

self.serpLayer.triggerRepaint() and/or self.iface.mapCanvas().refresh() 
don't help.


Hope someone can help...

--
Christophe

Le 01/04/2015 14:20, Werner Macho a écrit :

hmm -
well - as the qchainage plugin clearly sets labeling (when enabled)
you could take it and search for the missing piece..
regards
Werner

On Wed, Apr 1, 2015 at 2:19 PM, Casper Børgesen (CABO)  wrote:

No the triggerRepaint() didn't work, just to clarify that I tried that :)

Regards, Casper

-Original Message-
From: Werner Macho [mailto:werner.ma...@gmail.com]
Sent: 1. april 2015 13:52
To: Casper Børgesen (CABO)
Cc: qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] Labels not visible when setting them programmatically.

Hi!

I thought maybe it is the
triggerRepaint()

but it was just a guess.

regards
Werner

On Wed, Apr 1, 2015 at 1:48 PM, Casper Børgesen (CABO)  wrote:

Hi Werner

Sadly no, it does not.


Regards, Casper

-Original Message-
From: Werner Macho [mailto:werner.ma...@gmail.com]
Sent: 1. april 2015 13:43
To: Casper Børgesen (CABO)
Cc: qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] Labels not visible when setting them programmatically.

Hi,
does
https://github.com/mach0/qchainage/blob/master/chainagetool.py

line 150 ff help you?

regards
Werner

On Wed, Apr 1, 2015 at 1:25 PM, Casper Børgesen (CABO)  wrote:

I’m trying to programmatically set and enable labelling on a layer
using Python in QGis 2.9.0.



 label = QgsPalLayerSettings()

 label.readFromLayer(myLayer)



 label.enabled = True

 label.fieldName = 'myField'



 # Just to change something clearly visible.

 label.textColor = QColor(255,0,0,255)



 label.writeToLayer(myLayer)



This doesn’t enable labelling, but if I enter the Layer Properties on
myLayer, everything looks okay and when pressing Apply, the labels
become visible.



Is there something I need to set to avoid having to manually click
Apply to get the labels visible?



Calling iface.mapCanvas().refresh() afterwards doesn’t work.





Regards, Casper


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user



---
Ce courrier électronique ne contient aucun virus ou logiciel malveillant parce 
que la protection avast! Antivirus est active.
http://www.avast.com

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Integer fields converted to text when exported from SQLite

2015-03-05 Thread Christophe Damour

Hi,

When I save a SpatiaLite layer as a shp or tab layer, every integer 
field gets converted to a text field.

Same problem if I export the layer to shp from DB Manager.
Did someone ever experienced this problem ?

I work on Windows 7 64 bits, with QGis 2.6.1 64 bits.

Thanks for any hint,

--
Christophe


---
Ce courrier électronique ne contient aucun virus ou logiciel malveillant parce 
que la protection avast! Antivirus est active.
http://www.avast.com

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user