Re: [QGIS-Developer] Web based admin interface for processing models

2018-05-31 Thread johnrobot
Thank you, looks interesting. I will have a look at it.



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html
___
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] Web based admin interface for processing models

2018-05-31 Thread David Marteau
Hi,

The project  is actually on github: https://github.com/3liz/py-qgis-wps

It is fully functional (while still in beta) and we use it actually in our 
infrastructure.  The project has been presented at the Foss4G.fr and we expect
to talk about it at Foss4G is Dar es Salaam.




> Le 31 mai 2018 à 13:50, johnrobot  a écrit :
> 
> Hi
> Is there any more information on this work? I would love to hear more about
> current status and roadmap.
> 
> Magnus
> 
> 
> 
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html
> ___
> 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] Web based admin interface for processing models

2018-05-31 Thread johnrobot
Hi
Is there any more information on this work? I would love to hear more about
current status and roadmap.

Magnus



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html
___
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] Can I refresh PostGIS DB connection in pyqgis

2018-05-31 Thread Stefan Blumentrath
Dear devs,

When I try to load a layer from a PostGIS data source where the connection has 
timed out, is there a way in pyqgis (2.18) to refresh the connection 
programmatically like in DBmanager before loading the layer?

psycopg2 connections are no problem...

The following however:

# Add new layer
uri = QgsDataSourceURI()
uri.setConnection(host, port, db_name, user, password)
uri.setDataSource('', query, 'geom','', 'ID')
lyr = QgsVectorLayer(uri.uri(), layer_name, 'postgres')

gives me "No result buffer" error in PostGIS...

Thanks for any hint in advance.

Kind regards,
Stefan
___
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 [1472] Geomapfish Locator approval notification.

2018-05-31 Thread noreply

Plugin Geomapfish Locator approval by zimbogisgeek.
The plugin version "[1472] Geomapfish Locator 0.0.3 Experimental" is now 
approved
Link: http://plugins.qgis.org/plugins/geomapfish_locator/
___
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] i18n for Processing plugins not working

2018-05-31 Thread matteo
Hi devs,

with a simple Processing plugin I'm noticing that the i18n strings are
not taken into account when QGIS is loaded in another language.

Here the steps I'm following:

* using self.tr() to set strings as translatable
* changin the Makefile by adding the new locale and other .py file
containing strings to be translated
* make transupdate to generate the .ts file for each language
* translation the strings with linguist
* make transcompile to compile the ts in qm

even if in the ts file the strings are set to  **without**
the tag , if QGIS is loaded in one of the translated
language, the dialog and all the strings are in the source language and
not in the translated one.

BTW: this seems happen only with Processing plugins and not with default
one.

Should I open a ticket?

Thanks!

Cheers

Matteo

___
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] Load layer with style in Processing plugin

2018-05-31 Thread matteo
Hi Nyall,

thanks for the answer.

> In 3.2 it should be possible, using a subclass of
> QgsProcessingLayerPostProcessorInterface and
> 
> context.layerToLoadOnCompletionDetails( output_dest_id
> ).setPostProcessor( my_layer_post_processor() )
> 
> Your QgsProcessingLayerPostProcessorInterface subclass would set the
> style for the layer in its postProcessLayer implementation.
> 
> This is the canonical, thread safe way to do this in processing... any
> other approach (and there's other hacky ways to do this) will not be
> thread safe and may crash! We probably should make this a bit easier
> and have a direct `context.layerToLoadOnCompletionDetails(
> output_dest_id ).setLayerStyle(. )` call, but it's too late for
> 3.2

eheh, sorry too late to test all Processing options (too many of them ;) ).

what you suggested to implement in the future sounds as the smoothest idea.

Thanks again for the hints!

Matteo
___
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