Re: [Qgis-developer] $scale vs. @map_scale variable - Inconsistency between Desktop and Server

2016-10-11 Thread Nyall Dawson
On 11 Oct 2016 6:12 PM, "Neumann, Andreas"  wrote:
>
> Hi Nyall,
>
> Thank you - this explains it. I wasn't aware that QGIS server uses an old
map renderer. I did not even know that different map renderers exist. But
this has nothing to do with the old vs. the new symbology - right? Because
QGIS Server seems to work just fine with the new symbology and labeling.
>
> So much work to do around QGIS 3.x / QGIS Server, etc. ...

Yes, it still uses the pre-multithreaded renderer. There's a work in
progress PR here fixing it:

https://github.com/qgis/QGIS/pull/3129

Nyall

>
> Andreas
>
> On 2016-10-11 10:05, Nyall Dawson wrote:
>>
>>
>>
>> On 11 Oct 2016 5:59 PM, "Neumann, Andreas"  wrote:
>> >
>> > Hi,
>> >
>> > I noticed that $scale and @map_scale exist in parallel, but are not
consistently behaving between QGIS Desktop and QGIS server.
>> >
>> > $scale: works fine on both Desktop and Server, but expression preview
in QGIS Desktop fails.
>> >
>> > @map_scale: works fine on QGIS Desktop and also in expression preview,
but fails on QGIS Server.
>>
>> Hi Andreas,
>>
>> Server doesn't have access to any of the map settings related variables,
like the scale, rotation, extent, etc. (This is why 25d ordering is messed
up in server).
>>
>> Server needs to be ported away from the old map renderer before this can
be fixed.
>>
>> Nyall
>> >
>> > Context: expression to calculate letter spacing in a label for
different map scale. Tested on QGIS Master 2.x on Windows 7 64bit.
>> >
>> > Thank you,
>> >
>> > Andreas
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > ___
>> > Qgis-developer mailing list
>> > Qgis-developer@lists.osgeo.org
>> > List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>> > Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>
>
>
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] $scale vs. @map_scale variable - Inconsistency between Desktop and Server

2016-10-11 Thread Neumann, Andreas
Hi Nyall, 

Thank you - this explains it. I wasn't aware that QGIS server uses an
old map renderer. I did not even know that different map renderers
exist. But this has nothing to do with the old vs. the new symbology -
right? Because QGIS Server seems to work just fine with the new
symbology and labeling. 

So much work to do around QGIS 3.x / QGIS Server, etc. ...  

Andreas 

On 2016-10-11 10:05, Nyall Dawson wrote:

> On 11 Oct 2016 5:59 PM, "Neumann, Andreas"  wrote:
>> 
>> Hi,
>> 
>> I noticed that $scale and @map_scale exist in parallel, but are not 
>> consistently behaving between QGIS Desktop and QGIS server.
>> 
>> $scale: works fine on both Desktop and Server, but expression preview in 
>> QGIS Desktop fails.
>> 
>> @map_scale: works fine on QGIS Desktop and also in expression preview, but 
>> fails on QGIS Server. 
> 
> Hi Andreas, 
> 
> Server doesn't have access to any of the map settings related variables, like 
> the scale, rotation, extent, etc. (This is why 25d ordering is messed up in 
> server). 
> 
> Server needs to be ported away from the old map renderer before this can be 
> fixed. 
> 
> Nyall
>> 
>> Context: expression to calculate letter spacing in a label for different map 
>> scale. Tested on QGIS Master 2.x on Windows 7 64bit.
>> 
>> Thank you,
>> 
>> Andreas
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> ___
>> Qgis-developer mailing list
>> Qgis-developer@lists.osgeo.org
>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

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

Re: [Qgis-developer] $scale vs. @map_scale variable - Inconsistency between Desktop and Server

2016-10-11 Thread Nyall Dawson
On 11 Oct 2016 5:59 PM, "Neumann, Andreas"  wrote:
>
> Hi,
>
> I noticed that $scale and @map_scale exist in parallel, but are not
consistently behaving between QGIS Desktop and QGIS server.
>
> $scale: works fine on both Desktop and Server, but expression preview in
QGIS Desktop fails.
>
> @map_scale: works fine on QGIS Desktop and also in expression preview,
but fails on QGIS Server.

Hi Andreas,

Server doesn't have access to any of the map settings related variables,
like the scale, rotation, extent, etc. (This is why 25d ordering is messed
up in server).

Server needs to be ported away from the old map renderer before this can be
fixed.

Nyall
>
> Context: expression to calculate letter spacing in a label for different
map scale. Tested on QGIS Master 2.x on Windows 7 64bit.
>
> Thank you,
>
> Andreas
>
>
>
>
>
>
>
> ___
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] $scale vs. @map_scale variable - Inconsistency between Desktop and Server

2016-10-11 Thread Neumann, Andreas
Hi, 

I noticed that $scale and @map_scale exist in parallel, but are not
consistently behaving between QGIS Desktop and QGIS server. 

$scale: works fine on both Desktop and Server, but expression preview in
QGIS Desktop fails. 

@map_scale: works fine on QGIS Desktop and also in expression preview,
but fails on QGIS Server. 

Context: expression to calculate letter spacing in a label for different
map scale. Tested on QGIS Master 2.x on Windows 7 64bit. 

Thank you, 

Andreas 

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