No such a thing indeed. If you can be happy with a tangent (instead of curved along the line) label then you can probably get something going using the <Geometry> tag and a point placement with the right rotation, using startPoint/endPoint and startAngle/endAngle functions.
If it's start/end and along the line... a new vendor option and the corresponding code are needed I believe Cheers Andrea On Thu, Jan 10, 2019 at 3:55 PM Ron Lindhoudt via GeoTools-GT2-Users < geotools-gt2-users@lists.sourceforge.net> wrote: > I have a question: > Is there a way to tell Geotools to align a text label with the start of > the line instead of the center of the line? > I cannot find it in the documentation of linePlacement. > > The documentation is also very brief: > > > - > > LinePlacement > <http://docs.geotools.org/latest/javadocs/org/geotools/styling/LinePlacement.html> > linePlacement(Expression > <http://docs.geotools.org/latest/javadocs/org/opengis/filter/expression/Expression.html> > offset, > Expression > <http://docs.geotools.org/latest/javadocs/org/opengis/filter/expression/Expression.html> > initialGap, > Expression > <http://docs.geotools.org/latest/javadocs/org/opengis/filter/expression/Expression.html> > gap, > boolean repeated, > boolean aligned, > boolean generalizedLine) > > Specified by:linePlacement > > <http://docs.geotools.org/latest/javadocs/org/opengis/style/StyleFactory.html#linePlacement-org.opengis.filter.expression.Expression-org.opengis.filter.expression.Expression-org.opengis.filter.expression.Expression-boolean-boolean-boolean-> > in > interface StyleFactory > > <http://docs.geotools.org/latest/javadocs/org/opengis/style/StyleFactory.html> > Parameters:offset - initialGap - gap - repeated - aligned - > generalizedLine - > > Thanks. > Ron Lindhoudt > _______________________________________________ > GeoTools-GT2-Users mailing list > GeoTools-GT2-Users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > -- Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- *Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.*
_______________________________________________ GeoTools-GT2-Users mailing list GeoTools-GT2-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users