Change the Geometry to use the function start_point.  See
https://docs.geoserver.org/latest/en/user/styling/sld/extensions/geometry-transformations.html#start-and-end-point

Ian

On Thu, 10 Jan 2019 at 14:55, 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
>


-- 
Ian Turton
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to