[Qgis-user] control position of line labels

Carlos López PSIG carlos.lopez at psig.es
Wed Jan 20 15:44:31 PST 2016


Hi Nikolai,
I'm thinking about your question..
Perhaps you could place the labels using an expresions in coordinates X and
Y.
In your expresion you can use any vertex from the line
you can count number of vertex and locate your label in the vertex that you
want... or proportional to numbers of vertex..

I recomend you this functions:

   - $x_at(i)
   - $y_at(i)
   - num_points($geometry)


Best regards,



* <http://www.psig.es>*

*Carlos López Quintanilla*

www.psig.es
carlos.lopez at psig.es
+34 699.680.261



2016-01-14 16:48 GMT+01:00 Joris Hintjens <jorishin at gmail.com>:

> I remember a discussion here, about year ago about redering labels along
> lines. It was a requested feature the.
>
> I advise a search in the archives.
>
> Joris
>
> > Op 14 jan. 2016, om 14:42 heeft Nikolai Hafner <n.hafner at carto.at> het
> volgende geschreven:
> >
> > Hi Richard,
> > of course I did. But it doesn´t work: The alignment in the section "Data
> defined" ist related to a given coordinate but not related to the line.
> > I want to realize curved labels with specific alignment.
> >
> > Thanks for further inputs.
> >
> > Regards
> > Nikolai
> >
> >
> >
> > Am 14.01.2016 um 12:55 schrieb Richard Duivenvoorde:
> >> On 13-01-16 18:10, Nikolai Hafner wrote:
> >>> Hi,
> >>> is there any possibility in QGIS 2.12 to control the position of line
> >>> labels? I would like to set them to left, centre or right relating to
> >>> the line.
> >>> Thanks a lot!
> >>> Nikolai
> >> Hi Nikolai,
> >>
> >> did you have a look into the label properties?
> >>
> >> see http://i.imgur.com/so0noKu.png
> >>
> >> a LOT of options I see there.
> >>
> >> you need something else?
> >>
> >> Regards,
> >>
> >> Richard Duivenvoorde
> >>
> >>
> >
> >
> > _______________________________________________
> > Qgis-user mailing list
> > Qgis-user at lists.osgeo.org
> > List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> > Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20160121/31a0c54d/attachment.html>


More information about the Qgis-user mailing list