I just thought a version check would be even more efficient than the other
methods, so it would be good to try it first. If the user is in fact a
wizard, there's always `import antigravity`.
--
View this message in context:
Depending on how you build the checks you can even skip the version test.
I.e. if somebody manages to put a GeometryGenerator into an older
project he has at least earned wizard-status.
And you wouldn't want to prevent a wizard from doing his job, would you?
Matthias
On 07/07/2016 04:36 PM, Tom
Great. I'll do something like that, perhaps preceded by "if QGIS version <
2.14, it's not 2.5D".
Thanks
Tom
--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/How-to-detect-a-categorized-graduated-2-5D-layer-in-Python-tp5275092p5275191.html
Sent from the Quantum GIS -
Hi Tom
On 07/07/2016 01:35 PM, Tom Chadwin wrote:
> Matthias Kuhn-2 wrote
>> Or directly the symbols defined on the layer?
>
> What do you mean? Can you retrieve all symbols used by a layer without
> iterating through all the features? In the 2.5D renderer, if height is set
> by an expression,
Matthias Kuhn-2 wrote
> Or directly the symbols defined on the layer?
What do you mean? Can you retrieve all symbols used by a layer without
iterating through all the features? In the 2.5D renderer, if height is set
by an expression, and hence all features have different values, how many
symbols
Hi Tom,
On 07/07/2016 10:12 AM, Tom Chadwin wrote:
> So you can use a 2.5D renderer, then change to eg categorized or graduated,
> and the stack of geometry generators (shadow, walls, roof) remains in place.
> I have to detect these latter types of renderers in Python. I do so by
> looking for
So you can use a 2.5D renderer, then change to eg categorized or graduated,
and the stack of geometry generators (shadow, walls, roof) remains in place.
I have to detect these latter types of renderers in Python. I do so by
looking for that signature stack of symbol layers. This works.
However, I