Hi,
In looking through the SLD spec I noticed that there doesn’t appear to be a label alignment capability. Will aligned street labels require a custom symbolizer?
Thanks
Randy
Hi,
In looking through the SLD spec I noticed that there doesn’t appear to be a label alignment capability. Will aligned street labels require a custom symbolizer?
Thanks
Randy
I believe the label alignment is done automatically. For example, if the geometry is a point the label appears horizontally, if the geometry is a line, the label appear aligned to the line, and if the geometry is a polygon, the label appears in the center and horizontally.
But in my case, i dont know why the name of the roads are appearing all horizontally… I followed everything exactly as the tutorial ( http://docs.codehaus.org/display/GEOSDOC/SLD+Intro+Tutorial ) but the labels dont appear aligned…
On 5/10/06, Randy George <rkgeorge@anonymised.com> wrote:
Hi,
In looking through the SLD spec I noticed that there doesn’t appear to be a label alignment capability. Will aligned street labels require a custom symbolizer?
Thanks
Randy
Check out:
http://docs.codehaus.org/display/GEOSDOC/LabelingOptions
scroll down to "AnchorPoint".
Unfortunately, it only for <PointPlacement>, not <LinePlacement>. What, exactly, are you trying to do?
dave
Hi,
Oops, I missed the Label placement element in the OGC "Styled Layer
Descriptor Implementation Specification." I guess I was scanning for
something like 'align'.
Once I added this to my <TextSymbolizer> I get nice label placement on my
streets:
<LabelPlacement>
<LinePlacement>
<PerpendicularOffset>
0
</PerpendicularOffset>
</LinePlacement>
</LabelPlacement>
The GeoServer specific <VendorOption name="group">yes</VendorOption> is a
good idea.
Here's how it looks now:
http://www.cadmaps.com/OWSExample1.htm
Thanks for the help
Randy
-----Original Message-----
From: geoserver-users-admin@lists.sourceforge.net
[mailto:geoserver-users-admin@lists.sourceforge.net] On Behalf Of David
Blasby
Sent: Thursday, May 11, 2006 2:57 PM
To: rkgeorge@anonymised.com
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Re: SLD TextSymbolizer
Check out:
http://docs.codehaus.org/display/GEOSDOC/LabelingOptions
scroll down to "AnchorPoint".
Unfortunately, it only for <PointPlacement>, not <LinePlacement>. What,
exactly, are you trying to do?
dave
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
What client are you using? it looks interesting.
Alex
On 5/11/06, Randy George <rkgeorge@...287...> wrote:
Hi,
Oops, I missed the Label placement element in the OGC "Styled Layer
Descriptor Implementation Specification." I guess I was scanning for
something like 'align'.Once I added this to my <TextSymbolizer> I get nice label placement on my
streets:
<LabelPlacement>
<LinePlacement>
<PerpendicularOffset>
0
</PerpendicularOffset>
</LinePlacement>
</LabelPlacement>The GeoServer specific <VendorOption name="group">yes</VendorOption> is a
good idea.Here's how it looks now:
http://www.cadmaps.com/OWSExample1.htmThanks for the help
Randy
-----Original Message-----
From: geoserver-users-admin@lists.sourceforge.net
[mailto:geoserver-users-admin@lists.sourceforge.net] On Behalf Of David
Blasby
Sent: Thursday, May 11, 2006 2:57 PM
To: rkgeorge@...287...
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Re: SLD TextSymbolizerCheck out:
http://docs.codehaus.org/display/GEOSDOC/LabelingOptions
scroll down to "AnchorPoint".
Unfortunately, it only for <PointPlacement>, not <LinePlacement>. What,
exactly, are you trying to do?dave
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Hi,
When I added the element to my I also got nice label placement. Now the labels are aligned to the roads.
I believe the Introduction Tutorial to Styled Layer Descriptors ( http://docs.codehaus.org/display/GEOSDOC/SLD+Intro+Tutorial ) is incomplete because it does not include the element in the topic: 2. SLD Text Symbolizers. The labels would not appear aligned like in the images shown in the tutorial…
They should add the code below:
0Thanks,
Daniel
On 5/11/06, Randy George <rkgeorge@anonymised.com…> wrote:
Hi,
Oops, I missed the Label placement element in the OGC “Styled Layer
Descriptor Implementation Specification.” I guess I was scanning for
something like ‘align’.Once I added this to my I get nice label placement on my
streets:
0
The GeoServer specific yes is a
good idea.Here’s how it looks now:
http://www.cadmaps.com/OWSExample1.htmThanks for the help
Randy
-----Original Message-----
From: geoserver-users-admin@lists.sourceforge.net
[mailto:geoserver-users-admin@anonymised.comsourceforge.net] On Behalf Of David
Blasby
Sent: Thursday, May 11, 2006 2:57 PM
To: rkgeorge@anonymised.com
Cc: geoserver-users@anonymised.comists.sourceforge.net
Subject: Re: [Geoserver-users] Re: SLD TextSymbolizerCheck out:
http://docs.codehaus.org/display/GEOSDOC/LabelingOptions
scroll down to “AnchorPoint”.
Unfortunately, it only for , not . What,
exactly, are you trying to do?dave
On 5/14/06, Daniel Ferreira <danielvbf@...84...> wrote:
Hi,
When I added the <LabelPlacement> element to my <TextSymbolizer> I also got
nice label placement. Now the labels are aligned to the roads.I believe the Introduction Tutorial to Styled Layer Descriptors (
http://docs.codehaus.org/display/GEOSDOC/SLD+Intro+Tutorial
) is incomplete because it does not include the <LabelPlacement> element in
the topic: 2. SLD Text Symbolizers. The labels would not appear aligned like
in the images shown in the tutorial...They should add the code below:
<LabelPlacement>
<LinePlacement>
<PerpendicularOffset>
0
</PerpendicularOffset>
</LinePlacement>
</LabelPlacement>Thanks,
Daniel
Daniel:
Thanks for the corrections. You can also edit the wiki pages--add
comments with corrections, create pages with examples, etc.
A lot of good info probably gets lost, as we often tend to get in
"I'll do it later" mode and eventualy forget about it. So keep the
comments coming and don't be shy to make wiki additions yourself, as I
am sure people will make use of your contributions.
http://docs.codehaus.org/display/GEOSDOC/How+to+Help
Alex "use the wiki" Petkov