Thanks for your answers. I can use pointplacement with the starting point and a rotation and an anchorpoint of 0,0. Because of the anchorpoint of 0,0 the text should align horizontally and vertically at the origin of the point.But vertically this is not the case. It is quite a lot above.Probably this is because of the reservation for underlining?But I do not have underlining set, so the bottom of the text should align vertically with the origin.Is this a bug? I can correct it more or less with an anchorpoint of 0, 0.25 Ron On Thursday, 10 January 2019, 16:20:39 CET, Ian Turton <ijtur...@gmail.com> wrote: 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 linePlacement(Expression offset, Expression initialGap, Expression gap, boolean repeated, boolean aligned, boolean generalizedLine) - Specified by: - linePlacement in interface StyleFactory - 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