Re: [Geotools-gt2-users] Horizontal alignment for texts along line

2019-01-11 Thread Ron Lindhoudt via GeoTools-GT2-Users
 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  
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 
 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


Re: [Geotools-gt2-users] Horizontal alignment for texts along line

2019-01-10 Thread Ian Turton
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


Re: [Geotools-gt2-users] Horizontal alignment for texts along line

2019-01-10 Thread Andrea Aime
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  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 
> 
>  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
>


-- 

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


[Geotools-gt2-users] Horizontal alignment for texts along line

2019-01-10 Thread Ron Lindhoudt via GeoTools-GT2-Users
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