Re: [Qgis-developer] QGIS on Mac with Qt5, PyQt5 and Py3

2016-06-05 Thread Larry Shaffer
Hey Nyall,

On Sat, Jun 4, 2016 at 4:24 PM, Nyall Dawson  wrote:
>
> I suspect you're building with deprecated code enabled. Can you change the
> cmake option (I think it's "with_deprecated") and rebuild/retest?
>
Looks like it was already set: DISABLE_DEPRECATED:BOOL=ON.
http://drive.dakotacarto.com/qgis/CMakeCache.txt

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota

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

Re: [Qgis-developer] Python Sorting a Layer Selector

2016-06-05 Thread Heikki Vesanto
Hey Nyall,

That seems to have work perfectly.

My code is condensed to:
selecting_layer = self.dlg.selectWithCombo.currentLayer()
select_from_layer = self.dlg.selectFromCombo.currentLayer()

Making much of the former functions of.

Clearing:

self.dlg.selectWithCombo.clear()
self.dlg.selectFromCombo.clear()

And populating :
for layer in layers:
if layer.type() == QgsMapLayer.VectorLayer:
self.dlg.selectWithCombo.addItem( layer.name(), layer )
self.dlg.selectFromCombo.addItem( layer.name(), layer )

Redundant.

Thanks for the help!

-Heikki

On Mon, Jun 6, 2016 at 12:10 AM, Nyall Dawson  wrote:
> On 6 June 2016 at 08:23, Heikki Vesanto  wrote:
>> Hi Nyall,
>>
>> That seems like a great solution. I can get the combo boxes looking as
>> expected with ordering an layer type indicators.
>
> Another advantage is that the built in box automatically handles layer
> removal and additions, without any extra code required :)
>
>>
>> Do you have an example of getting the selection results from that, or
>> a plugin that is currently using it?
>
> Use QgsMapLayerComboBox.currentLayer()
>
> (see 
> https://qgis.org/api/classQgsMapLayerComboBox.html#ae2ca2dd3e8cbc81cf0e19244e63efe5a)
>
> Nyall
>
>
>>
>> With the QComboBox I use:
>>
>> index1 = self.dlg.selectWithCombo.currentIndex()
>> selecting_layer = self.dlg.selectWithCombo.itemData(index1)
>> index2 = self.dlg.selectFromCombo.currentIndex()
>> select_from_layer = self.dlg.selectFromCombo.itemData(index2)
>>
>> # Either select with all features or just selected ones
>> selected_test = self.dlg.selectedFeaturesCheckbox.isChecked()
>> if selected_test == 1:
>>selecting_feats = selecting_layer.selectedFeatures()
>>else:
>>selecting_feats_iterator = selecting_layer.getFeatures()
>>
>> Changing my boxes to QgsMapLayerComboBox results in:
>> Traceback (most recent call last):
>>   File "C:/Users/heikk/.qgis2/python/plugins\SelectWithin\select_within.py",
>> line 217, in run
>> selecting_feats_iterator = selecting_layer.getFeatures()
>> AttributeError: 'NoneType' object has no attribute 'getFeatures'
>
>>
>> -Heikki
>>
>>
>> On Sun, Jun 5, 2016 at 9:31 PM, Nyall Dawson  wrote:
>>>
>>> On 6 Jun 2016 6:28 AM, "Heikki Vesanto"  wrote:

 Hey,

 I had a feature request through for a python plugin to sort layer
 drop-down lists alphabetically:

 https://github.com/HeikkiVesanto/QGIS_Centroid_Within/issues/3

 This is a list of vector layers that are open, that are selected using
 a QComboBox QT drop-down. I get the layers using:

 layers = QgsMapLayerRegistry.instance().mapLayers().values()

 Before adding them to the QT dialog:

 for layer in layers:
 if layer.type() == QgsMapLayer.VectorLayer:
 self.dlg.selectWithCombo.addItem( layer.name(), layer )
 self.dlg.selectFromCombo.addItem( layer.name(), layer )

 I would like to sort these layers based on their name, so layer.name().

 I got as far as sorting by name:
 layers.sort(key=operator.methodcaller("name"), reverse=False)

 However this is case sensitive, with upper case appearing first. Does
 anyone know of a plugin that implements sorting? Or an easy way to do
 it. If all else fails I can revert back to case sensitive sorting.
>>>
>>> Why not use QgsMapLayerComboBox instead? This has sorting built in, and will
>>> help your plugin match the standard QGIS layer selector behaviour.
>>>
>>> Nyall

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

Re: [Qgis-developer] Python Sorting a Layer Selector

2016-06-05 Thread Nyall Dawson
On 6 June 2016 at 08:23, Heikki Vesanto  wrote:
> Hi Nyall,
>
> That seems like a great solution. I can get the combo boxes looking as
> expected with ordering an layer type indicators.

Another advantage is that the built in box automatically handles layer
removal and additions, without any extra code required :)

>
> Do you have an example of getting the selection results from that, or
> a plugin that is currently using it?

Use QgsMapLayerComboBox.currentLayer()

(see 
https://qgis.org/api/classQgsMapLayerComboBox.html#ae2ca2dd3e8cbc81cf0e19244e63efe5a)

Nyall


>
> With the QComboBox I use:
>
> index1 = self.dlg.selectWithCombo.currentIndex()
> selecting_layer = self.dlg.selectWithCombo.itemData(index1)
> index2 = self.dlg.selectFromCombo.currentIndex()
> select_from_layer = self.dlg.selectFromCombo.itemData(index2)
>
> # Either select with all features or just selected ones
> selected_test = self.dlg.selectedFeaturesCheckbox.isChecked()
> if selected_test == 1:
>selecting_feats = selecting_layer.selectedFeatures()
>else:
>selecting_feats_iterator = selecting_layer.getFeatures()
>
> Changing my boxes to QgsMapLayerComboBox results in:
> Traceback (most recent call last):
>   File "C:/Users/heikk/.qgis2/python/plugins\SelectWithin\select_within.py",
> line 217, in run
> selecting_feats_iterator = selecting_layer.getFeatures()
> AttributeError: 'NoneType' object has no attribute 'getFeatures'

>
> -Heikki
>
>
> On Sun, Jun 5, 2016 at 9:31 PM, Nyall Dawson  wrote:
>>
>> On 6 Jun 2016 6:28 AM, "Heikki Vesanto"  wrote:
>>>
>>> Hey,
>>>
>>> I had a feature request through for a python plugin to sort layer
>>> drop-down lists alphabetically:
>>>
>>> https://github.com/HeikkiVesanto/QGIS_Centroid_Within/issues/3
>>>
>>> This is a list of vector layers that are open, that are selected using
>>> a QComboBox QT drop-down. I get the layers using:
>>>
>>> layers = QgsMapLayerRegistry.instance().mapLayers().values()
>>>
>>> Before adding them to the QT dialog:
>>>
>>> for layer in layers:
>>> if layer.type() == QgsMapLayer.VectorLayer:
>>> self.dlg.selectWithCombo.addItem( layer.name(), layer )
>>> self.dlg.selectFromCombo.addItem( layer.name(), layer )
>>>
>>> I would like to sort these layers based on their name, so layer.name().
>>>
>>> I got as far as sorting by name:
>>> layers.sort(key=operator.methodcaller("name"), reverse=False)
>>>
>>> However this is case sensitive, with upper case appearing first. Does
>>> anyone know of a plugin that implements sorting? Or an easy way to do
>>> it. If all else fails I can revert back to case sensitive sorting.
>>
>> Why not use QgsMapLayerComboBox instead? This has sorting built in, and will
>> help your plugin match the standard QGIS layer selector behaviour.
>>
>> Nyall
>>>
>>> -Heikki
>>> ___
>>> Qgis-developer mailing list
>>> Qgis-developer@lists.osgeo.org
>>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Python Sorting a Layer Selector

2016-06-05 Thread Heikki Vesanto
Hi Nyall,

That seems like a great solution. I can get the combo boxes looking as
expected with ordering an layer type indicators.

Do you have an example of getting the selection results from that, or
a plugin that is currently using it?

With the QComboBox I use:

index1 = self.dlg.selectWithCombo.currentIndex()
selecting_layer = self.dlg.selectWithCombo.itemData(index1)
index2 = self.dlg.selectFromCombo.currentIndex()
select_from_layer = self.dlg.selectFromCombo.itemData(index2)

# Either select with all features or just selected ones
selected_test = self.dlg.selectedFeaturesCheckbox.isChecked()
if selected_test == 1:
   selecting_feats = selecting_layer.selectedFeatures()
   else:
   selecting_feats_iterator = selecting_layer.getFeatures()

Changing my boxes to QgsMapLayerComboBox results in:
Traceback (most recent call last):
  File "C:/Users/heikk/.qgis2/python/plugins\SelectWithin\select_within.py",
line 217, in run
selecting_feats_iterator = selecting_layer.getFeatures()
AttributeError: 'NoneType' object has no attribute 'getFeatures'

-Heikki


On Sun, Jun 5, 2016 at 9:31 PM, Nyall Dawson  wrote:
>
> On 6 Jun 2016 6:28 AM, "Heikki Vesanto"  wrote:
>>
>> Hey,
>>
>> I had a feature request through for a python plugin to sort layer
>> drop-down lists alphabetically:
>>
>> https://github.com/HeikkiVesanto/QGIS_Centroid_Within/issues/3
>>
>> This is a list of vector layers that are open, that are selected using
>> a QComboBox QT drop-down. I get the layers using:
>>
>> layers = QgsMapLayerRegistry.instance().mapLayers().values()
>>
>> Before adding them to the QT dialog:
>>
>> for layer in layers:
>> if layer.type() == QgsMapLayer.VectorLayer:
>> self.dlg.selectWithCombo.addItem( layer.name(), layer )
>> self.dlg.selectFromCombo.addItem( layer.name(), layer )
>>
>> I would like to sort these layers based on their name, so layer.name().
>>
>> I got as far as sorting by name:
>> layers.sort(key=operator.methodcaller("name"), reverse=False)
>>
>> However this is case sensitive, with upper case appearing first. Does
>> anyone know of a plugin that implements sorting? Or an easy way to do
>> it. If all else fails I can revert back to case sensitive sorting.
>
> Why not use QgsMapLayerComboBox instead? This has sorting built in, and will
> help your plugin match the standard QGIS layer selector behaviour.
>
> Nyall
>>
>> -Heikki
>> ___
>> Qgis-developer mailing list
>> Qgis-developer@lists.osgeo.org
>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] useful info

2016-06-05 Thread Gabriel Roldan
Hello,
I've recently read some useful information, I guess it might be useful for you 
too, please read at 

Take care, Gabriel Roldan

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

Re: [Qgis-developer] Python Sorting a Layer Selector

2016-06-05 Thread Nyall Dawson
On 6 Jun 2016 6:28 AM, "Heikki Vesanto"  wrote:
>
> Hey,
>
> I had a feature request through for a python plugin to sort layer
> drop-down lists alphabetically:
>
> https://github.com/HeikkiVesanto/QGIS_Centroid_Within/issues/3
>
> This is a list of vector layers that are open, that are selected using
> a QComboBox QT drop-down. I get the layers using:
>
> layers = QgsMapLayerRegistry.instance().mapLayers().values()
>
> Before adding them to the QT dialog:
>
> for layer in layers:
> if layer.type() == QgsMapLayer.VectorLayer:
> self.dlg.selectWithCombo.addItem( layer.name(), layer )
> self.dlg.selectFromCombo.addItem( layer.name(), layer )
>
> I would like to sort these layers based on their name, so layer.name().
>
> I got as far as sorting by name:
> layers.sort(key=operator.methodcaller("name"), reverse=False)
>
> However this is case sensitive, with upper case appearing first. Does
> anyone know of a plugin that implements sorting? Or an easy way to do
> it. If all else fails I can revert back to case sensitive sorting.

Why not use QgsMapLayerComboBox instead? This has sorting built in, and
will help your plugin match the standard QGIS layer selector behaviour.

Nyall
>
> -Heikki
> ___
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] Python Sorting a Layer Selector

2016-06-05 Thread Heikki Vesanto
Hey,

I had a feature request through for a python plugin to sort layer
drop-down lists alphabetically:

https://github.com/HeikkiVesanto/QGIS_Centroid_Within/issues/3

This is a list of vector layers that are open, that are selected using
a QComboBox QT drop-down. I get the layers using:

layers = QgsMapLayerRegistry.instance().mapLayers().values()

Before adding them to the QT dialog:

for layer in layers:
if layer.type() == QgsMapLayer.VectorLayer:
self.dlg.selectWithCombo.addItem( layer.name(), layer )
self.dlg.selectFromCombo.addItem( layer.name(), layer )

I would like to sort these layers based on their name, so layer.name().

I got as far as sorting by name:
layers.sort(key=operator.methodcaller("name"), reverse=False)

However this is case sensitive, with upper case appearing first. Does
anyone know of a plugin that implements sorting? Or an easy way to do
it. If all else fails I can revert back to case sensitive sorting.

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

Re: [Qgis-developer] [Processing] AttributeError: 'NoneType' object has no attribute 'update'

2016-06-05 Thread Paolo Cavallini
Please upgrade to our next ltr, 2.14.3, and report back.
Thanks.

Il 5 giugno 2016 18:30:01 CEST, "Niccolò Marchi"  ha 
scritto:
>Hi all,
>adding a tool to the the graphical modeler I got the error
>“AttributeError: 'NoneType' object has no attribute 'update' ”. In
>other discussions on the web it seems due to an algorithm not properly
>working within the sequence.
>
>I tried then:
>
>-  to remove the last tool
>
>-  To substitute the algoritms with similar ones,
>
>-  removing one tool a time,
>but still the error persists.
>
>any idea?
>
>Thank you in advance!
>All the best,
>
>Nic
>
>
>
>AttributeError: 'NoneType' object has no attribute 'update'
>Traceback (most recent call last):
>File
>"C:/OSGEO4~1/apps/qgis/./python/plugins\processing\modeler\ModelerDialog.py",
>line 247, in runModel
>alg = self.alg.getCopy()
>File
>"C:/OSGEO4~1/apps/qgis/./python/plugins\processing\modeler\ModelerAlgorithm.py",
>line 201, in getCopy
>newone.algs = copy.deepcopy(self.algs)
>  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 163, in deepcopy
>y = copier(x, memo)
>File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 257, in
>_deepcopy_dict
>y[deepcopy(key, memo)] = deepcopy(value, memo)
>  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 163, in deepcopy
>y = copier(x, memo)
>File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 298, in
>_deepcopy_inst
>state = deepcopy(state, memo)
>  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 163, in deepcopy
>y = copier(x, memo)
>File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 257, in
>_deepcopy_dict
>y[deepcopy(key, memo)] = deepcopy(value, memo)
>  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 163, in deepcopy
>y = copier(x, memo)
>File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 298, in
>_deepcopy_inst
>state = deepcopy(state, memo)
>  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 163, in deepcopy
>y = copier(x, memo)
>File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 257, in
>_deepcopy_dict
>y[deepcopy(key, memo)] = deepcopy(value, memo)
>  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 190, in deepcopy
>y = _reconstruct(x, rv, 1, memo)
>File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 334, in _reconstruct
>state = deepcopy(state, memo)
>  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 163, in deepcopy
>y = copier(x, memo)
>File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 257, in
>_deepcopy_dict
>y[deepcopy(key, memo)] = deepcopy(value, memo)
>  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 163, in deepcopy
>y = copier(x, memo)
>File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 230, in
>_deepcopy_list
>y.append(deepcopy(a, memo))
>  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 163, in deepcopy
>y = copier(x, memo)
>File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 298, in
>_deepcopy_inst
>state = deepcopy(state, memo)
>  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 163, in deepcopy
>y = copier(x, memo)
>File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 257, in
>_deepcopy_dict
>y[deepcopy(key, memo)] = deepcopy(value, memo)
>  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 190, in deepcopy
>y = _reconstruct(x, rv, 1, memo)
>File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 334, in _reconstruct
>state = deepcopy(state, memo)
>  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 163, in deepcopy
>y = copier(x, memo)
>File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 257, in
>_deepcopy_dict
>y[deepcopy(key, memo)] = deepcopy(value, memo)
>  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 163, in deepcopy
>y = copier(x, memo)
>File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 257, in
>_deepcopy_dict
>y[deepcopy(key, memo)] = deepcopy(value, memo)
>  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 190, in deepcopy
>y = _reconstruct(x, rv, 1, memo)
>File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 334, in _reconstruct
>state = deepcopy(state, memo)
>  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 163, in deepcopy
>y = copier(x, memo)
>File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 257, in
>_deepcopy_dict
>y[deepcopy(key, memo)] = deepcopy(value, memo)
>  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 190, in deepcopy
>y = _reconstruct(x, rv, 1, memo)
>File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 334, in _reconstruct
>state = deepcopy(state, memo)
>  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 163, in deepcopy
>y = copier(x, memo)
>File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 257, in
>_deepcopy_dict
>y[deepcopy(key, memo)] = deepcopy(value, memo)
>  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 190, in deepcopy
>y = _reconstruct(x, rv, 1, memo)
>File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 334, in _reconstruct
>state = deepcopy(state, memo)
>  File 

[Qgis-developer] [Processing] AttributeError: 'NoneType' object has no attribute 'update'

2016-06-05 Thread Niccolò Marchi
Hi all,
adding a tool to the the graphical modeler I got the error “AttributeError: 
'NoneType' object has no attribute 'update' ”. In other discussions on the web 
it seems due to an algorithm not properly working within the sequence.

I tried then:

-  to remove the last tool

-  To substitute the algoritms with similar ones,

-  removing one tool a time,
but still the error persists.

any idea?

Thank you in advance!
All the best,

Nic



AttributeError: 'NoneType' object has no attribute 'update'
Traceback (most recent call last):
  File 
"C:/OSGEO4~1/apps/qgis/./python/plugins\processing\modeler\ModelerDialog.py", 
line 247, in runModel
alg = self.alg.getCopy()
  File 
"C:/OSGEO4~1/apps/qgis/./python/plugins\processing\modeler\ModelerAlgorithm.py",
 line 201, in getCopy
newone.algs = copy.deepcopy(self.algs)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 163, in deepcopy
y = copier(x, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 257, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 163, in deepcopy
y = copier(x, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 298, in _deepcopy_inst
state = deepcopy(state, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 163, in deepcopy
y = copier(x, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 257, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 163, in deepcopy
y = copier(x, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 298, in _deepcopy_inst
state = deepcopy(state, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 163, in deepcopy
y = copier(x, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 257, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 190, in deepcopy
y = _reconstruct(x, rv, 1, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 334, in _reconstruct
state = deepcopy(state, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 163, in deepcopy
y = copier(x, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 257, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 163, in deepcopy
y = copier(x, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 230, in _deepcopy_list
y.append(deepcopy(a, memo))
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 163, in deepcopy
y = copier(x, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 298, in _deepcopy_inst
state = deepcopy(state, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 163, in deepcopy
y = copier(x, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 257, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 190, in deepcopy
y = _reconstruct(x, rv, 1, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 334, in _reconstruct
state = deepcopy(state, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 163, in deepcopy
y = copier(x, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 257, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 163, in deepcopy
y = copier(x, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 257, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 190, in deepcopy
y = _reconstruct(x, rv, 1, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 334, in _reconstruct
state = deepcopy(state, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 163, in deepcopy
y = copier(x, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 257, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 190, in deepcopy
y = _reconstruct(x, rv, 1, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 334, in _reconstruct
state = deepcopy(state, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 163, in deepcopy
y = copier(x, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 257, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 190, in deepcopy
y = _reconstruct(x, rv, 1, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 334, in _reconstruct
state = deepcopy(state, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 163, in deepcopy
y = copier(x, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 257, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
  File 

Re: [Qgis-developer] QtWebKit (Debian testing) future

2016-06-05 Thread mederic . ribreux
Hello,

Qwebengine is not in Debian yet and there is a risk that it will not be for 
some time: 
http://perezmeyer.blogspot.com/2016/05/do-you-want-qt5s-qwebengine-in-debian.html

Cheers...

Le 5 juin 2016 16:59:06 CEST, Matthias Kuhn  a écrit :
>
>
>On 05/06/16 10:27, Richard Duivenvoorde wrote:
>> On 03-06-16 14:55, Matthias Kuhn wrote:
>>> On 06/03/2016 10:31 AM, Paolo Cavallini wrote:
 Il 03/06/2016 10:14, Richard Duivenvoorde ha scritto:

> Any hints we could give python dev's?
 Please start an howto where to accumulate tips and tricks for
>plugin
 migration.
 Thanks.

>>> This is not related to migration.
>>>
>>> It's only Debian that decided to remove QtWebKit for Qt4 (on
>unstable if
>>> I am not mistaken).
>>> QtWebKit is available for Qt5. And on every other platform still for
>Qt4.
>>>
>>> The time may eventually come when QWebEngine will be a full
>replacement
>>> for QtWebKit. But as far as I know, it's not yet there.
>>>
>>> So I'd not make any noise around the issue.
>> yes, sorry for the noise, it is currently a problem for us as 'Debian
>> testing' users only, but the rest of the world is still ok..
>>
>> @Matthias so part of the migration script/notes would be porting to
>> QWebEngineView/QtWebEngine from QWebview/QtWebKit
>
>No, that will not be part of the migration.
>
> * QtWebKit is still there and will still be there in the near future.
>With Qt5 builds even on Debian testing.
>* As far as I know QtWebEngine is not yet on par with respect to
>features.
>
>Matthias
>>
>> Regards,
>>
>> Richard
>> ___
>> Qgis-developer mailing list
>> Qgis-developer@lists.osgeo.org
>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>___
>Qgis-developer mailing list
>Qgis-developer@lists.osgeo.org
>List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

-- 
Envoyé de mon appareil Android avec K-9 Mail. Veuillez excuser ma brièveté.___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] QtWebKit (Debian testing) future

2016-06-05 Thread Matthias Kuhn


On 05/06/16 10:27, Richard Duivenvoorde wrote:
> On 03-06-16 14:55, Matthias Kuhn wrote:
>> On 06/03/2016 10:31 AM, Paolo Cavallini wrote:
>>> Il 03/06/2016 10:14, Richard Duivenvoorde ha scritto:
>>>
 Any hints we could give python dev's?
>>> Please start an howto where to accumulate tips and tricks for plugin
>>> migration.
>>> Thanks.
>>>
>> This is not related to migration.
>>
>> It's only Debian that decided to remove QtWebKit for Qt4 (on unstable if
>> I am not mistaken).
>> QtWebKit is available for Qt5. And on every other platform still for Qt4.
>>
>> The time may eventually come when QWebEngine will be a full replacement
>> for QtWebKit. But as far as I know, it's not yet there.
>>
>> So I'd not make any noise around the issue.
> yes, sorry for the noise, it is currently a problem for us as 'Debian
> testing' users only, but the rest of the world is still ok..
>
> @Matthias so part of the migration script/notes would be porting to
> QWebEngineView/QtWebEngine from QWebview/QtWebKit

No, that will not be part of the migration.

 * QtWebKit is still there and will still be there in the near future.
With Qt5 builds even on Debian testing.
 * As far as I know QtWebEngine is not yet on par with respect to features.

Matthias
>
> Regards,
>
> Richard
> ___
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

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

Re: [Qgis-developer] QtWebKit (Debian testing) future

2016-06-05 Thread tudorbarascu
Hi,
As python-qt4 doesn't contain QtWebKit anymore, python support gets disabled 
when running qgis.
Only building pyqt4 from source with webkit worked. Hope this helps somebody!
I would have stayed to debian jessie but intel skylake users only have GPU 
support from kernel 4.3 (full support from 4.4) so I was forced to debian 
testing some months ago.
All the best!






On Sun, Jun 5, 2016 at 1:28 AM -0700, "Richard Duivenvoorde" 
 wrote:










On 03-06-16 14:55, Matthias Kuhn wrote:
> On 06/03/2016 10:31 AM, Paolo Cavallini wrote:
>> Il 03/06/2016 10:14, Richard Duivenvoorde ha scritto:
>>
>>> Any hints we could give python dev's?
>>
>> Please start an howto where to accumulate tips and tricks for plugin
>> migration.
>> Thanks.
>>
> 
> This is not related to migration.
> 
> It's only Debian that decided to remove QtWebKit for Qt4 (on unstable if
> I am not mistaken).
> QtWebKit is available for Qt5. And on every other platform still for Qt4.
> 
> The time may eventually come when QWebEngine will be a full replacement
> for QtWebKit. But as far as I know, it's not yet there.
> 
> So I'd not make any noise around the issue.

yes, sorry for the noise, it is currently a problem for us as 'Debian
testing' users only, but the rest of the world is still ok..

@Matthias so part of the migration script/notes would be porting to
QWebEngineView/QtWebEngine from QWebview/QtWebKit

Regards,

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




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

Re: [Qgis-developer] QtWebKit (Debian testing) future

2016-06-05 Thread Richard Duivenvoorde
On 03-06-16 14:55, Matthias Kuhn wrote:
> On 06/03/2016 10:31 AM, Paolo Cavallini wrote:
>> Il 03/06/2016 10:14, Richard Duivenvoorde ha scritto:
>>
>>> Any hints we could give python dev's?
>>
>> Please start an howto where to accumulate tips and tricks for plugin
>> migration.
>> Thanks.
>>
> 
> This is not related to migration.
> 
> It's only Debian that decided to remove QtWebKit for Qt4 (on unstable if
> I am not mistaken).
> QtWebKit is available for Qt5. And on every other platform still for Qt4.
> 
> The time may eventually come when QWebEngine will be a full replacement
> for QtWebKit. But as far as I know, it's not yet there.
> 
> So I'd not make any noise around the issue.

yes, sorry for the noise, it is currently a problem for us as 'Debian
testing' users only, but the rest of the world is still ok..

@Matthias so part of the migration script/notes would be porting to
QWebEngineView/QtWebEngine from QWebview/QtWebKit

Regards,

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

Re: [Qgis-developer] Report 2 - QGIS Symbology Sharing Tools

2016-06-05 Thread Richard Duivenvoorde
On 05-06-16 09:02, Akbar Gumbira wrote:

> *Are you blocked on anything?*
> ... In Github or Bitbucket they provide a direct link to
> the raw file. But I think I should look at more general approach without
> manipulating the URL depending on the host. If you have some input, I
> would be happy to assess it.

Thanks Akbar,

I did some googling:
http://stackoverflow.com/questions/14405782/git-fetch-single-file-from-remote-repository-programatically
If you really want to keep it git, it looks like a shallow clone/copy is
the only way? That post also talks about some undocumented feature, but
I would not depend on that?

Personally I would be ok when both Github and Gitlab/Gog would work (as
both a closed source and open source member of the git-web-world)...

Or: a script running somewhere on our server, (shallow) cloning all
registred repositories periodically, and making just the metadata.txt
files available via http/webserver? (maybe giving us some time to check
the repo's on structure and (malicious?) content?

Or else: a django app for the metadata...

Regards,

Richard


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

[Qgis-developer] Report 2 - QGIS Symbology Sharing Tools

2016-06-05 Thread Akbar Gumbira
Hi All,

Here is the report for the 2nd week of GSoC

*What did you get done this week?*
This week I implemented the basic UI. I created a repository here (
https://github.com/akbargumbira/qgis_symbology_sharing).  It's a QGIS
python plugin so you can clone it to your local python plugin directory to
try it. I made it similar to the Python Plugin Repositories as they both
have the same functionalities. Here is a screenshot of the UI
What it can do now is saving the repositories to the QSettings.

*What do you plan on doing next week?*
This week I will have 3 final exams and one in next monday. I will not
focus on GSoC this week. But I will start looking at fetching the metadata
file from the git repository. This metadata file contains collections
definition. After adding a connection and fetching the metadata, the tools
will save the collections defined there and save it to local db (thinking
of simple sqlite). Later this database will be used for browsing or
searching collections.

I am also going to set up Travis there (trying out the new QGIS testing
module as well).

*Are you blocked on anything?*
Not really, but I haven't figured out yet on how to fetch the metadata file
from the git repository using simple HTTP request without depending on the
host site. In Github or Bitbucket they provide a direct link to the raw
file. But I think I should look at more general approach without
manipulating the URL depending on the host. If you have some input, I would
be happy to assess it.

Cheers
​

-- 

*---*
*Akbar Gumbira *
*www.akbargumbira.com *
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer