[QGIS-Developer] my qgis standalone application can't load *.qgz file's saved extent

2018-04-19 Thread weskerjiang
I make a standalone application,i save a *.qgz,when i saved this file,the 
extent is 1:500.but when i open it from my application,the initialized
 extent is not 1:500 but the full extent,when i open it in QGIS 3.0,everything 
is fine,the initialized extent is 1:500,so what is wrong with it?
i use  QgsProject::instance()->read(projectFile) to load the file
___
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 [821] RasterStats approval notification.

2018-04-19 Thread noreply

Plugin RasterStats approval by pcav.
The plugin version "[821] RasterStats 0.4.1" is now approved
Link: http://plugins.qgis.org/plugins/rasterstats/
___
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 [821] RasterStats approval notification.

2018-04-19 Thread noreply

Plugin RasterStats approval by pcav.
The plugin version "[821] RasterStats 0.4" is now approved
Link: http://plugins.qgis.org/plugins/rasterstats/
___
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 [324] PDOK BAG Geocoder approval notification.

2018-04-19 Thread noreply

Plugin PDOK BAG Geocoder approval by pcav.
The plugin version "[324] PDOK BAG Geocoder 0.6.1 Experimental" is now approved
Link: http://plugins.qgis.org/plugins/pdokbaggeocoder/
___
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 [324] PDOK BAG Geocoder approval notification.

2018-04-19 Thread noreply

Plugin PDOK BAG Geocoder approval by pcav.
The plugin version "[324] PDOK BAG Geocoder 0.6.0 Experimental" is now approved
Link: http://plugins.qgis.org/plugins/pdokbaggeocoder/
___
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 [1354] PisteCreator approval notification.

2018-04-19 Thread noreply

Plugin PisteCreator approval by pcav.
The plugin version "[1354] PisteCreator 1.6" is now approved
Link: http://plugins.qgis.org/plugins/PisteCreator/
___
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] QEP 122 - Python vector data providers

2018-04-19 Thread Alessandro Pasotti
Hi everyone,

Here is a new proposal to add support for Python vector data providers

https://github.com/qgis/QGIS-Enhancement-Proposals/issues/122

Any comments would be highly appreciated!

PS: A QEP a day keeps the doctor away ;-)

-- 
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] Issue with global variables don't get assigned

2018-04-19 Thread Adam Borczyk
I discovered, that my old Config file was ~ 10MB of size. Each time I was
assigning globals, they were appended into the file with their values,
instead of being replaced. Is it correct behaviour?

*Adam Borczyk*

*-*
*GIS Support Sp. z o.o.*
DobrzaƄskiego 3,
Lublin
20-262

tel. 814511490, NIP: 9462641761,
*www.gis-support.pl *
i...@gis-support.pl

On 19 April 2018 at 13:26, Adam Borczyk  wrote:

> Hi everyone,
>
> I recently sent an e-mail here about JSON string variables messing up my
> globals in QGIS 2.18. Today I experienced another bug (?) - very simple
> global variable just does not get loaded. The code is:
>
> # Inside SocketIO worker class:
>
> def get_srid(self):
> # socket request to the server, returning EPSG code as integer
> self.emit('srid', {}, lambda data: self.assign_srid(data))
>
> def assign_srid(self, data):
> QgsExpressionContextUtils.setGlobalVariable('srid', str(data))
> QgsMessageLog.logMessage('Assigned SRID: %d' % data , 'myPlugin')
>
> The result of calling get_srid() is correct "Assigned SRID: 4326" in Log
> Messages Panel, but in Properties the variable "SRID" is still empty.
> Sometimes it works though, after some random number of tries. It also
> worked after I purged ~/.config/QGIS/QGIS2.conf file, but it'll possibly
> happen again.
>
> Is there anything I have to take special care of?
>
>
> Best regards
> *Adam Borczyk*
>
___
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] Issue with global variables don't get assigned

2018-04-19 Thread Adam Borczyk
Hi everyone,

I recently sent an e-mail here about JSON string variables messing up my
globals in QGIS 2.18. Today I experienced another bug (?) - very simple
global variable just does not get loaded. The code is:

# Inside SocketIO worker class:

def get_srid(self):
# socket request to the server, returning EPSG code as integer
self.emit('srid', {}, lambda data: self.assign_srid(data))

def assign_srid(self, data):
QgsExpressionContextUtils.setGlobalVariable('srid', str(data))
QgsMessageLog.logMessage('Assigned SRID: %d' % data , 'myPlugin')

The result of calling get_srid() is correct "Assigned SRID: 4326" in Log
Messages Panel, but in Properties the variable "SRID" is still empty.
Sometimes it works though, after some random number of tries. It also
worked after I purged ~/.config/QGIS/QGIS2.conf file, but it'll possibly
happen again.

Is there anything I have to take special care of?


Best regards
*Adam Borczyk*
___
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 [1370] SentinelHub approval notification.

2018-04-19 Thread noreply

Plugin SentinelHub approval by zimbogisgeek.
The plugin version "[1370] SentinelHub 1.2.0" is now approved
Link: http://plugins.qgis.org/plugins/SentinelHub/
___
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 [1346] Geodesic Densifier approval notification.

2018-04-19 Thread noreply

Plugin Geodesic Densifier approval by zimbogisgeek.
The plugin version "[1346] Geodesic Densifier 0.5 Experimental" is now approved
Link: http://plugins.qgis.org/plugins/GeodesicDensifier/
___
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 [412] Qgis2threejs approval notification.

2018-04-19 Thread noreply

Plugin Qgis2threejs approval by zimbogisgeek.
The plugin version "[412] Qgis2threejs 2.0.1" is now approved
Link: http://plugins.qgis.org/plugins/Qgis2threejs/
___
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