[Qgis-user] Use size of label background rectangle in python function

2017-08-28 Thread Fuenfer-Koenigstein.Benjamin2
Hi all,

in QGIS, there is the possibility to draw a rectangle around a label text with 
"Labels -> Background -> Shape: Rectangle; Size type: buffer". This way, the 
rectangle fits to text extend.

Does onyone know a way to use the size or the corner coordinates of this buffer 
rectangle in a python function? Would be very helpful to create leader lines 
from the object to the nearest corner of the rectangle.

Best regards

Benjamin 

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

[Qgis-user] SAGA processing Vectorising Raster Classes not working

2017-08-28 Thread José Carlos Martínez Llario

Hi List,
The SAGA Algorithm "Vectorising Raster Classes" is not working properly 
on QGIS 2.18.11 MS Windows 64 bits.

There is some missing parameter.


This is the log message:
/
//
//
//C:\QGIS\bin>saga_cmd shapes_grid "Vectorising Raster Classes" -GRID 
"C:\Users\jomarlla\AppData\Local\Temp\processing80fa8c787df94334b4b777f872864452\8bab4376debc41f9aa867833a73c81a3\BASINS.sgrd" 
-CLASS_ALL 1 -CLASS_ID 0 -SPLIT 1 -POLYGONS 
"C:\Users\jomarlla\AppData\Local\Temp\processing80fa8c787df94334b4b777f872864452\5533acfef86148f28004651714b43bb3\POLYGONS.shp"/// 



//

//

//

/# ## # ##/

//

/### ### ## ###/

//

/### # ## ##  # ##/

//

/### # ## # #/

//

/# # ## # # ##/

//

//

//

//

/SAGA Version: 2.3.2 (64 bit)/

//

//

//

/Library: Grid Tools/

//

/Category: Shapes/

//

/File: C:\QGIS\apps\saga-ltr\modules\shapes_grid.dll/

//

//

/Tools:/

//

/0 Add Grid Values to Points/

//

/1 Add Grid Values to Shapes/

//

/2 Grid Statistics for Polygons/

//

/3 Grid Values to Points/

//

/4 Grid Values to Points (randomly)/

//

/5 Contour Lines from Grid/

//

/6 Vectorising Grid Classes/

//

/7 Clip Grid with Polygon/

//

/8 Grid Statistics for Points/

//

/9 Local Minima and Maxima/

//

/10 Grid System Extent/

//

/11 Clip Grid with Rectangle/

//

/15 Gradient Vectors from Surface/

//

/16 Gradient Vectors from Direction and Length/

//

/17 Gradient Vectors from Directional Components/

//

//

/type -h or --help for further information/

//

//

/Error: select a tool/

//

//

/C:\QGIS\bin>exit/



--
--
José Carlos Martínez Llario
http://cartosig.upv.es

Producción Cartográfica y SIG.
Dpto. Ingeniería Cartográfica.
Univ. Politécnica de Valencia.
--

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

[Qgis-user] SAGA processing Zonal raster statistics not working

2017-08-28 Thread José Carlos Martínez Llario

Hi List,
The SAGA Algorithm "Vectorising Raster Classes" is not working properly 
on QGIS 2.18.11 MS Windows 64 bits.



This is the log message:

/Uncaught error while executing algorithm/

//

/Traceback (most recent call last):/

//

/File 
"C:/QGIS/apps/qgis/./python/plugins\processing\core\GeoAlgorithm.py", 
line 203, in execute/


//

/self.processAlgorithm(progress)/

//

/File 
"C:/QGIS/apps/qgis/./python/plugins\processing\algs\saga\SagaAlgorithm.py", 
line 171, in processAlgorithm/


//

/if param.datatype == dataobjects.TYPE_RASTER:/

//

/AttributeError: 'module' object has no attribute 'TYPE_RASTER'/


--
--
José Carlos Martínez Llario
http://cartosig.upv.es

Producción Cartográfica y SIG.
Dpto. Ingeniería Cartográfica.
Univ. Politécnica de Valencia.
--

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

[Qgis-user] Use extend of label background in python

2017-08-28 Thread Fuenfer-Koenigstein.Benjamin2
Hi all,



in QGIS, there is the possibility to draw a rectangle around a label text with 
"Labels -> Background -> Shape: Rectangle; Size type: buffer". This way, the 
rectangle fits to text extend.



Does onyone know a way to use the size or the corner coordinates of this buffer 
rectangle in a python function? Would be very helpful to create leader lines 
from the object to the nearest corner of the rectangle.



Best regards



Benjamin

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