[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

[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] 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

Re: [QGIS-it-user] Compatibilità del file .qgs tra 2.x e 3.x

2017-08-28 Thread Luigi Pirelli
se aspetti che venga fatto il merge ci sara' una GUI per gestire la
transizione dei settings

https://github.com/qgis/QGIS/pull/5080
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
**


2017-08-28 10:11 GMT+02:00 Marco Spaziani :
> Ok. Grazie. Procedo.
>
> Il 28 Ago 2017 09:59, "matteo"  ha scritto:
>>
>> Non credo che possa succedere per 2 motivi:
>>
>> 1. nella nuova versione di QGIS non esisteranno più le cartelle .qgisx
>> perché sono state spostate in cartelle diverse del profilo utente
>>
>> 2. anche se non avessi la versione di QGIS 2.99 che non include questa
>> novità, non viene scritta la cartella .qgis2 ma .qgis3
>>
>> in ogni caso fatti una copia della cartella proprio per stare ultra
>> tranquillo ;)
>>
>> Saluti
>>
>> Matteo
>> ___
>> QGIS-it-user mailing list
>> QGIS-it-user@lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/qgis-it-user
>
>
> ___
> QGIS-it-user mailing list
> QGIS-it-user@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/qgis-it-user
>
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [QGIS-it-user] Compatibilità del file .qgs tra 2.x e 3.x

2017-08-28 Thread Marco Spaziani
Ok. Grazie. Procedo.

Il 28 Ago 2017 09:59, "matteo"  ha scritto:

> Non credo che possa succedere per 2 motivi:
>
> 1. nella nuova versione di QGIS non esisteranno più le cartelle .qgisx
> perché sono state spostate in cartelle diverse del profilo utente
>
> 2. anche se non avessi la versione di QGIS 2.99 che non include questa
> novità, non viene scritta la cartella .qgis2 ma .qgis3
>
> in ogni caso fatti una copia della cartella proprio per stare ultra
> tranquillo ;)
>
> Saluti
>
> Matteo
> ___
> QGIS-it-user mailing list
> QGIS-it-user@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/qgis-it-user
>
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [QGIS-it-user] Compatibilità del file .qgs tra 2.x e 3.x

2017-08-28 Thread matteo
Non credo che possa succedere per 2 motivi:

1. nella nuova versione di QGIS non esisteranno più le cartelle .qgisx
perché sono state spostate in cartelle diverse del profilo utente

2. anche se non avessi la versione di QGIS 2.99 che non include questa
novità, non viene scritta la cartella .qgis2 ma .qgis3

in ogni caso fatti una copia della cartella proprio per stare ultra
tranquillo ;)

Saluti

Matteo
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


[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