Re: [QGIS-Developer] Another QGIS 2 to 3 API Change - How to Adapt

2017-05-12 Thread Luigi Pirelli
Some example directly from the qgis source code,

https://qgis.org/api/qgssymbol_8cpp_source.html#l01304

generally speaking, in this transitional phase, the source code is the
preferred documentation.

regards


Luigi Pirelli

**
* Boundless QGIS Support/Development: lpirelli AT boundlessgeo DOT com
* LinkedIn: https://www.linkedin.com/in/luigipirelli
* Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
* GitHub: https://github.com/luipir
* Mastering QGIS 2nd Edition:
* 
https://www.packtpub.com/big-data-and-business-intelligence/mastering-qgis-second-edition
**


On 12 May 2017 at 21:56, C Hamilton  wrote:
> Here is another problem I have encountered converting a plugin from QGIS 2
> to 3.
>
> In my plugin I want to automatically create a point layer and have the point
> labeled. Here is how I used to do it:
>
> label = QgsPalLayerSettings()
> label.readFromLayer(ptLayer)
> label.enabled = True
> label.fieldName = 'label'
> label.placement= QgsPalLayerSettings.AroundPoint
>
> label.setDataDefinedProperty(QgsPalLayerSettings.Size,True,True,'9','')
> label.writeToLayer(ptLayer)
>
> In QGIS 3 setDataDefinedProperty() is no longer a method. It looks like it
> has been replaced with setDataDefinedProperties()
>
> How do I set the font size in QGIS 3 similar to what I was doing in QGIS 2?
>
> Thanks!!!
>
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] How has QgsRubberBand changed in QGIS 3?

2017-05-12 Thread Luigi Pirelli
https://qgis.org/api/api_break.html

QGis = Qgis
Luigi Pirelli

**
* Boundless QGIS Support/Development: lpirelli AT boundlessgeo DOT com
* LinkedIn: https://www.linkedin.com/in/luigipirelli
* Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
* GitHub: https://github.com/luipir
* Mastering QGIS 2nd Edition:
* 
https://www.packtpub.com/big-data-and-business-intelligence/mastering-qgis-second-edition
**


On 12 May 2017 at 18:34, C Hamilton  wrote:
> In my plugin I have the following line:
>
> self.crossRb = QgsRubberBand(self.canvas, QGis.Line)
>
> QGis seems to have been removed from qgis.core. What needs to be done
> differently for QGIS 3?
>
> I'm error by error trying to migrate Lat Lon Tools to QGIS 3.
>
> Thanks!!!
>
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] QGIS PyQt version conflict

2017-05-12 Thread lesgeotrucs
Hi,

With pyuic4,  there is a retranslate function.
What about the internationalization with this approach ?

Regards,



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-QGIS-PyQt-version-conflict-tp5320159p5320386.html
Sent from the QGIS - Developer mailing list archive at Nabble.com.
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] How has QgsRubberBand changed in QGIS 3?

2017-05-12 Thread C Hamilton
In my plugin I have the following line:

self.crossRb = QgsRubberBand(self.canvas, QGis.Line)

QGis seems to have been removed from qgis.core. What needs to be done
differently for QGIS 3?

I'm error by error trying to migrate Lat Lon Tools to QGIS 3.

Thanks!!!
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] Plugin [730] Line direction histogram approval notification.

2017-05-12 Thread noreply

Plugin Line direction histogram approval by pcav.
The plugin version "[730] Line direction histogram 2.0" is now approved
Link: http://plugins.qgis.org/plugins/LineDirectionHistogram/
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Converting plugins to QGIS 3

2017-05-12 Thread C Hamilton
With the OSGeo4W installer I see that 2to3 is located at

C:\OSGeo4W64\apps\Python36\Tools\scripts\2to3.py

It made some changes but does not seem to migrate PyQt4 to PyQt5. What am I
doing wrong? I just tried running this on one of my files in this manner
from the OSGeo4W Shell.

python C:\OSGeo4W64\apps\Python36\Tools\scripts\2to3.py -w copyLatLonTool.py

Thanks!!!


> The point is, that some classes have been moved between modules from
> PyQt4 to PyQt5 (e.g. all widgets from QtGui to QtWidgets).
> The migration tool 2to3 can help with this - but only if the imports are
> fully qualified.
>
> There are other ways to upgrade your code than 2to3, the advantage of
> the proposed approach is that it makes your code closer to "best
> practice" - but it's up to you to decide.
>
> Matthias
>
>
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] Call for tests on attribute table

2017-05-12 Thread Alessandro Pasotti
Hi,

we've been working on fixing a few bugs on the attribute table for 2.18 and
master:

https://issues.qgis.org/issues/16492
https://issues.qgis.org/issues/15803
https://issues.qgis.org/issues/15974

The patches should land soon in the latest builds of master and 2.18.x

If anybody could test the attribute table for regressions or slowdowns that
might have been inadvertenly introduced that would be highly appreciated.

Thanks!

-- 
Alessandro Pasotti
w3:   www.itopen.it
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Remaining "blocking" operations

2017-05-12 Thread Marco Bernasocchi


On 12.05.2017 12:29, Matthias Kuhn  wrote:

> 
> Having to click out of a bazillion connection dialogs when a PG server
> is not available. I wonder if there's anyone else who regularly is
> affected by this.

Heck yeah...

-- 
Marco Bernasocchi
OPENGIS.ch - berna.io - 27summits.ch



signature.asc
Description: OpenPGP digital signature
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Remaining "blocking" operations

2017-05-12 Thread Paolo Cavallini
Il 12/05/2017 12:29, Matthias Kuhn  ha scritto:

> Having to click out of a bazillion connection dialogs when a PG server
> is not available. I wonder if there's anyone else who regularly is
> affected by this.

+1
thanks

-- 
Paolo Cavallini - www.faunalia.eu
QGIS & PostGIS courses: http://www.faunalia.eu/training.html
https://www.google.com/trends/explore?date=all=IT=qgis,arcgis
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] PyQGIS: how to retrieve symbolLayers in renderPass order

2017-05-12 Thread Tom Chadwin
Hello all

I need to get a list of symbolLayers, but in renderPass order. In other
words, in default order if symbol levels are not enabled, or in symbol level
order if they are.

Can I do that via the API, or do I just have to retrieve the renderPass
value for every symbolLayer and then sort the symbolLayers in a new step in
my script?

Thanks

Tom



-
Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon 
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/PyQGIS-how-to-retrieve-symbolLayers-in-renderPass-order-tp5320327.html
Sent from the QGIS - Developer mailing list archive at Nabble.com.
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Remaining "blocking" operations

2017-05-12 Thread Matthias Kuhn 
Hi Nyall,

Loving it, this makes QGIS so much more pleasant to use.

One thing that is not related technologically but the thing the most
often freaks me out:

Having to click out of a bazillion connection dialogs when a PG server
is not available. I wonder if there's anyone else who regularly is
affected by this.

Cheers
Matthias
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Remaining "blocking" operations

2017-05-12 Thread Giovanni Manghi
Hi Nyall,


> Hi all,
>
> With a recent PR merge by Matthias, another one of the remaining
> interface blocking operations is gone and moved to task manager. This
> means that task manager is now being used for:
> - saving vector/raster layers
> - importing data to browser destinations via drag and drop
> - saving maps as rasters/pdf from canvas (not composer)
> - calculating feature counts for layer tree
>
> There's also been some recent changes in composer which prevents the
> interface blocking while refreshing map item, and a funded change by
> the Swiss user group which dramatically decreases project load times
> while compositions are present


very exciting improvements, thanks to everyone that made them possible.


> - running processing algs (work underway to fix this)

I think that having this will fill one of the major gaps we have now
in comparison with proprietary packages, and I'm really looking
forward to start test it.

Thanks!

-- G --
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] Plugin [740] qgis2web approval notification.

2017-05-12 Thread noreply

Plugin qgis2web approval by pcav.
The plugin version "[740] qgis2web 2.17.1" is now approved
Link: http://plugins.qgis.org/plugins/qgis2web/
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] multi-layered pdf, attribute support in pdf outputs

2017-05-12 Thread Neumann, Andreas
Hi Hilpers, 

I'll explain why this isn't so easy to solve - even with GDAL. 

QGIS has a very rich set of symbology and labeling options. For PDF
generation it relies on the qt libraries - which did not support
attributes and layered PDFs so far - at least in version 4 that QGIS
used so far. I don't know if qt5 improved in that respect. GDAL/OGR has
a quite limited set of feature styling options. There is no easy
translation between the two - and in 95% of the cases your map would
look different when translating to OGR/GDAL - unless you rasterize all
layers - which is probably not what you want. 

So unless either qt supports output in layered PDF and supports
attributes, it won't happen any time soon. Alternatively, QGIS could use
an alternative PDF library, which probably isn't trivial either. 

Unless someone would heavily invest in development time or money, or
better both - this probably won't happen. 

Your best option would be to try to improve qt5, so that it supports
layered PDFs and attributes or try to switch to a different PDF renderer
- not sure how feasible that would be. 

Andreas 

On 2017-05-12 08:18, hilpers wrote:

> Hello everyone, 
> 
> i am wondering whether it is going to be possible to generate multi-layered
> pdfs using print composer anytime soon. While GDAL supports that QGIS does
> not seem to do so yet. For making maps available to the public it would be
> practival to implement layer attributes within pdf (similarly to ArcGIS). Is
> this technically possible using GDAL?
> 
> Thanks, 
> hilpers
> 
> --
> View this message in context: 
> http://osgeo-org.1560.x6.nabble.com/multi-layered-pdf-attribute-support-in-pdf-outputs-tp5320273.html
> Sent from the QGIS - Developer mailing list archive at Nabble.com.
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] QGIS PyQt version conflict

2017-05-12 Thread Michal Zimmermann
Hey gus,
thanks for the tips, I'll give it a try!

On Fri, May 12, 2017 at 9:36 AM, Ismail Sunni  wrote:

> Hi, I (or we) also use the same method as Arnaud.
>
> The only drawback is you can’t get the autocomplete from the python file
> (from the ui file). But the benefit is greater: no need to ship generated
> python code, no need to compile every time we change the .ui file. The
> development is faster now.
>
> I don’t think we need to see the generated python code from the .ui file.
>
> You can see here for the utilities method : https://github.com/inasafe/
> inasafe/blob/develop/safe/utilities/resources.py#L107
>
> Best Regards
>
>
> On 12May, 2017, at 12:34, Michal Zimmermann  wrote:
>
> Hi,
> that looks like an interesting workaround! What are the pitfalls? Don't
> you need to see the real python code when developing?
>
> On Thu, May 11, 2017 at 1:55 PM, Arnaud Morvan  camptocamp.com> wrote:
>
>> Hello Michal,
>>
>> I've also had this error some times ago, I do not remember if I succeed
>> with pyuic4, nor the solution.
>>
>> But IMHO it is simpler to load "ui" files at runtime.
>> Here is an example from "processing" plugin :
>>
>> import os
>> from qgis.PyQt import uic
>>
>> pluginPath = os.path.split(os.path.dirname(__file__))[0]
>> WIDGET, BASE = uic.loadUiType(
>> os.path.join(pluginPath, 'ui', 'DlgConfig.ui'))
>>
>> class ConfigDialog(BASE, WIDGET):
>>
>>
>> => no need to run make or similar to create python files each time you
>> change something in your ui files.
>>
>> load the plugin from the source folder (create a symbolic link from home
>> QGIS plugins dir to plugin source dir)
>> change something in the ui file
>> reload the plugin using "plugin reloader" and you immediately see the
>> result in QGIS.
>>
>> Regards
>>
>> Arnaud Morvan
>> Ingénieur logiciel
>> Tél: +33 (0)4 58 48 20 32 <+33%204%2058%2048%2020%2032>
>>
>> Camptocamp France SAS
>> Savoie Technolac, BP 352
>> 73377 Le Bourget du Lac Cedexhttp://www.camptocamp.com
>>
>> Le 11/05/2017 à 12:44, Michal Zimmermann a écrit :
>>
>> Hi,
>> I'm starting with qgis plugin development on ubuntu-based Mint OS (v 18.1
>> Serena). I created a very simple form in Qt Designer 4.8.7 and tried to
>> convert it to python file with
>>
>> pyuic4 -d form.ui -o form.py
>>
>> This results in
>>
>> Traceback (most recent call last):
>>   File "/usr/lib/python2.7/dist-packages/PyQt4/uic/port_v2/invoke.py",
>> line 34, in invoke
>> exit_status = driver.invoke()
>>   File "/usr/lib/python2.7/dist-packages/PyQt4/uic/driver.py", line 59,
>> in invoke
>> self._generate()
>>   File "/usr/lib/python2.7/dist-packages/PyQt4/uic/driver.py", line 98,
>> in _generate
>> self._opts.resource_suffix)
>>   File "/usr/lib/python2.7/dist-packages/PyQt4/uic/__init__.py", line
>> 173, in compileUi
>> winfo = compiler.UICompiler().compileUi(uifile, pyfile,
>> from_imports, resource_suffix)
>>   File "/usr/lib/python2.7/dist-packages/PyQt4/uic/Compiler/compiler.py",
>> line 55, in __init__
>> CompilerCreatorPolicy())
>>   File "/usr/lib/python2.7/dist-packages/PyQt4/uic/uiparser.py", line
>> 170, in __init__
>> self.factory = QObjectCreator(creatorPolicy)
>>   File "/usr/lib/python2.7/dist-packages/PyQt4/uic/objcreator.py", line
>> 94, in __init__
>> modinfo = plugin_locals["moduleInformation"]()
>>   File "", line 52, in moduleInformation
>>   File "/usr/lib/python2.7/dist-packages/qgis/__init__.py", line 26, in
>> 
>> from qgis.PyQt import QtCore
>>   File "/usr/lib/python2.7/dist-packages/qgis/PyQt/QtCore.py", line 28,
>> in 
>> sip.setapi(api, 2)
>> ValueError: API 'QDate' has already been set to version 1
>>
>> If I change /usr/lib/python2.7/dist-packages/qgis/PyQt/QtCore.py line 28
>> to sip.setapi(api, 1), it works, QGIS starts with a following message
>> though:
>>
>> Couldn't load PyQGIS.
>> Python support will be disabled.
>>
>>
>> Traceback (most recent call last):
>>   File "", line 1, in
>>   File "/usr/lib/python2.7/dist-packages/qgis/__init__.py", line 26, in
>> from qgis.PyQt import QtCore
>>   File "/usr/lib/python2.7/dist-packages/qgis/PyQt/QtCore.py", line 28, in
>> sip.setapi(api, 1)
>> ValueError: API 'QDate' has already been set to version 2
>>
>>
>> Python version:
>> 2.7.12 (default, Nov 19 2016, 06:48:10)
>> [GCC 5.4.0 20160609]
>>
>> QGIS version:
>> 2.18.7 'Las Palmas', 3b30e6a
>>
>> What exactly do I have to do to make the both sides work?
>>
>> --
>> Michal Zimmermann (zimmi)
>> WWW: https://www.zimmi.cz
>>
>>
>> ___
>> QGIS-Developer mailing listqgis-develo...@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>>
>>
>>
>
>
> --
> Michal Zimmermann (zimmi)
> WWW: https://www.zimmi.cz
> ___
> QGIS-Developer mailing list
> 

Re: [QGIS-Developer] QGIS PyQt version conflict

2017-05-12 Thread Ismail Sunni
Hi, I (or we) also use the same method as Arnaud.

The only drawback is you can’t get the autocomplete from the python file (from 
the ui file). But the benefit is greater: no need to ship generated python 
code, no need to compile every time we change the .ui file. The development is 
faster now.

I don’t think we need to see the generated python code from the .ui file.

You can see here for the utilities method : 
https://github.com/inasafe/inasafe/blob/develop/safe/utilities/resources.py#L107
 

 

Best Regards


> On 12May, 2017, at 12:34, Michal Zimmermann  wrote:
> 
> Hi,
> that looks like an interesting workaround! What are the pitfalls? Don't you 
> need to see the real python code when developing? 
> 
> On Thu, May 11, 2017 at 1:55 PM, Arnaud Morvan  > wrote:
> Hello Michal, 
> 
> I've also had this error some times ago, I do not remember if I succeed with 
> pyuic4, nor the solution.
> 
> But IMHO it is simpler to load "ui" files at runtime.
> Here is an example from "processing" plugin :
> 
> import os
> from qgis.PyQt import uic
> 
> pluginPath = os.path.split(os.path.dirname(__file__))[0]
> WIDGET, BASE = uic.loadUiType(
> os.path.join(pluginPath, 'ui', 'DlgConfig.ui'))
> 
> class ConfigDialog(BASE, WIDGET):
> 
> 
> => no need to run make or similar to create python files each time you change 
> something in your ui files.
> 
> load the plugin from the source folder (create a symbolic link from home QGIS 
> plugins dir to plugin source dir)
> change something in the ui file
> reload the plugin using "plugin reloader" and you immediately see the result 
> in QGIS.
> 
> Regards
> Arnaud Morvan
> Ingénieur logiciel
> Tél: +33 (0)4 58 48 20 32 
> 
> Camptocamp France SAS
> Savoie Technolac, BP 352
> 73377 Le Bourget du Lac Cedex
> http://www.camptocamp.com 
> Le 11/05/2017 à 12:44, Michal Zimmermann a écrit :
>> Hi,
>> I'm starting with qgis plugin development on ubuntu-based Mint OS (v 18.1 
>> Serena). I created a very simple form in Qt Designer 4.8.7 and tried to 
>> convert it to python file with 
>> 
>> pyuic4 -d form.ui -o form.py
>> 
>> This results in 
>> 
>> Traceback (most recent call last):
>>   File "/usr/lib/python2.7/dist-packages/PyQt4/uic/port_v2/invoke.py", line 
>> 34, in invoke
>> exit_status = driver.invoke()
>>   File "/usr/lib/python2.7/dist-packages/PyQt4/uic/driver.py", line 59, in 
>> invoke
>> self._generate()
>>   File "/usr/lib/python2.7/dist-packages/PyQt4/uic/driver.py", line 98, in 
>> _generate
>> self._opts.resource_suffix)
>>   File "/usr/lib/python2.7/dist-packages/PyQt4/uic/__init__.py", line 173, 
>> in compileUi
>> winfo = compiler.UICompiler().compileUi(uifile, pyfile, from_imports, 
>> resource_suffix)
>>   File "/usr/lib/python2.7/dist-packages/PyQt4/uic/Compiler/compiler.py", 
>> line 55, in __init__
>> CompilerCreatorPolicy())
>>   File "/usr/lib/python2.7/dist-packages/PyQt4/uic/uiparser.py", line 170, 
>> in __init__
>> self.factory = QObjectCreator(creatorPolicy)
>>   File "/usr/lib/python2.7/dist-packages/PyQt4/uic/objcreator.py", line 94, 
>> in __init__
>> modinfo = plugin_locals["moduleInformation"]()
>>   File "", line 52, in moduleInformation
>>   File "/usr/lib/python2.7/dist-packages/qgis/__init__.py", line 26, in 
>> 
>> from qgis.PyQt import QtCore
>>   File "/usr/lib/python2.7/dist-packages/qgis/PyQt/QtCore.py", line 28, in 
>> 
>> sip.setapi(api, 2)
>> ValueError: API 'QDate' has already been set to version 1
>> 
>> If I change /usr/lib/python2.7/dist-packages/qgis/PyQt/QtCore.py line 28 to 
>> sip.setapi(api, 1), it works, QGIS starts with a following message though:
>> 
>> Couldn't load PyQGIS.
>> Python support will be disabled.
>> 
>> Traceback (most recent call last):
>>   File "", line 1, in 
>>   File "/usr/lib/python2.7/dist-packages/qgis/__init__.py", line 26, in 
>> from qgis.PyQt import QtCore
>>   File "/usr/lib/python2.7/dist-packages/qgis/PyQt/QtCore.py", line 28, in 
>> sip.setapi(api, 1)
>> ValueError: API 'QDate' has already been set to version 2
>> 
>> Python version:
>> 2.7.12 (default, Nov 19 2016, 06:48:10) 
>> [GCC 5.4.0 20160609]
>> 
>> QGIS version:
>> 2.18.7 'Las Palmas', 3b30e6a
>> 
>> What exactly do I have to do to make the both sides work?
>> 
>> -- 
>> Michal Zimmermann (zimmi) 
>> WWW: https://www.zimmi.cz 
>> 
>> ___
>> QGIS-Developer mailing list
>> QGIS-Developer@lists.osgeo.org 
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer 
>> 
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer 
>> 

[QGIS-Developer] Support for "segments" in the QgsGeometryAnalyzer buffer function

2017-05-12 Thread Havard Tveite

Dear QGIS developers,

Giovanni Manghi encouraged me to raise this in the dev
list.

The QgsGeometry buffer function has two parameters:
distance (double) and segments (int).
"distance" is used to specify the buffer distance.
"segments" is used to specify the number of straight
line segments used to approximate a quarter circle.

The QgsGeometryAnalyzer buffer function makes only the
"distance" parameter available.

In Feature request #15905
(https://issues.qgis.org/issues/15905) I have suggested
that the "segments" parameter is made in the
QgsGeometryAnalyzer buffer function.

To me this seems like a trivial change, and I have
created a pull request to demonstrate it
(https://github.com/qgis/QGIS/pull/4302).

Are there any reasons for not having the segments
parameter available in the QgsGeometryAnalyzer buffer
function?
Could curved geometry have anything to do with it?


Håvard
--
Håvard Tveite
Faculty of Sciences and Technology, NMBU
Drøbakveien 31, POBox 5003, N-1432 Ås, NORWAY
Phone: +47 67231548   Web: http://www.nmbu.no
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] multi-layered pdf, attribute support in pdf outputs

2017-05-12 Thread hilpers
Hello everyone, 

i am wondering whether it is going to be possible to generate multi-layered
pdfs using print composer anytime soon. While GDAL supports that QGIS does
not seem to do so yet. For making maps available to the public it would be
practival to implement layer attributes within pdf (similarly to ArcGIS). Is
this technically possible using GDAL?

Thanks, 
hilpers



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/multi-layered-pdf-attribute-support-in-pdf-outputs-tp5320273.html
Sent from the QGIS - Developer mailing list archive at Nabble.com.
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer