[Qgis-developer] Geometry modifiers for labeling

Matthias Kuhn matthias at opengis.ch
Wed Jan 13 06:29:02 PST 2016


Hi Andreas

On 01/13/2016 03:23 PM, Andreas Neumann wrote:
> Hi Matthias,
>
> You mean I should then set the data-defined label position to the
> start and the endpoint of the line?
>
> Yes - this kind of works, but I would have to calculate the
> orientation/direction of the first and last segment of the line myself.
>
> But we are getting closer to solving this issue ;-) ...

I see, you would actually not only want to set the position but also the
orientation.

Yes, that would be less clumsy with a modifier that extracts the first
and last segment. Certainly something that can be done.

Matthias

>
> Andreas
>
> On 13.01.2016 15:01, Matthias Kuhn wrote:
>> Good to know.
>>
>> So that should work find with my previous recommendation of using
>> "Placement" -> "Data Defined"?
>>
>> On 01/13/2016 02:59 PM, Andreas Neumann wrote:
>>> Hi Matthias,
>>>
>>> You can just add several rules that all apply at the same time (e.g.
>>> two times an empty rule only bound by map scale ranges).
>>>
>>> In the placement options use one time "above line", and the other time
>>> " below line".
>>>
>>> This works fine. See screenshot at
>>> http://www.carto.net/neumann/temp/label_multiple_times.png
>>>
>>> The workaround with font-markers from Matthieu works fine, but it is
>>> ugly that the labels can be up-side-down.
>>>
>>> Andreas
>>>
>>> On 13.01.2016 14:45, Matthias Kuhn wrote:
>>>> Hi Andreas
>>>>
>>>> On 01/13/2016 01:59 PM, Andreas Neumann wrote:
>>>>> Hi Matthias,
>>>>>
>>>>> Yes - with the new rule-based renderer we can label a line several
>>>>> times
>>>>> - e.g. have one label above the line and another with another label
>>>>> text
>>>>> below the line.
>>>> I can't find the possibility to label the same feature twice, only
>>>> different labeling rules for different features.
>>>> But I guess you can use "data defined placement" instead of "above" or
>>>> "below"?
>>>>
>>>> Matthias
>>>> _______________________________________________
>>>> Qgis-developer mailing list
>>>> Qgis-developer at 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 at 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 at 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 at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

-- 
Matthias Kuhn
OPENGIS.ch - https://www.opengis.ch
Spatial • (Q)GIS • PostGIS • Open Source

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20160113/96b2d5dc/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20160113/96b2d5dc/attachment.sig>


More information about the Qgis-developer mailing list