Ok, here is part of a SLD I'd like to make it work.

...
<Rule>"
<ogc:Filter>
...
</ogc:Filter>

<PolygonSymbolizer>
 <Fill>
  <CssParameter name="fill">#FF0000</
CssParameter>
 </Fill>
</PolygonSymbolizer>

<TextSymbolizer>
 <Label>
   <ogc:PropertyName>name</ogc:PropertyName>
 </Label>
 <Fill>
  <CssParameter name="fill">#000000</CssParameter>
 </Fill>

 <VendorOption name="followLine">true</VendorOption>
 <LabelPlacement>
  <LinePlacement />
 </LabelPlacement>
</TextSymbolizer>

</Rule>
...

But as I just said, this doesn't work.

The result I want to achive is to have polygons with labels on their
borders, following them. Assuming the following is a polygon, something
similar to this:

 ----MyLabel---
/                    \
M                 M
y                   y
L                  L
a                  a
b                  b
e                  e
l                   l
\                   /
 ----MyLabel---

Is that posible?

Thanks.


2011/6/7 Andrea Aime <[email protected]>

> On Tue, Jun 7, 2011 at 2:27 PM, Fernando Barbat <[email protected]> wrote:
> > Hi,
> >
> > Is it posible to have label following line for polygons?
> >
> > When using lines, we could add this xml:
> >
> > <VendorOption name="followLine">true</VendorOption>
> >  <LabelPlacement>
> >   <LinePlacement />
> >  </LabelPlacement>
> > </TextSymbolizer>
> >
> > However, this is ignored when using PolygonSymbolizer.
>
> FollowLine in the context of PolygonSymbolizer makes no sense, there
> is no label to be drawn.
> Can you explain better what you want t do and show a larger portion of
> the SLD as an example?
>
> Cheers
> Andrea
>
>
> --
> -------------------------------------------------------
> Ing. Andrea Aime
> GeoSolutions S.A.S.
> Tech lead
>
> Via Poggio alle Viti 1187
> 55054  Massarosa (LU)
> Italy
>
> phone: +39 0584 962313
> fax:      +39 0584 962313
>
> http://www.geo-solutions.it
> http://geo-solutions.blogspot.com/
> http://www.youtube.com/user/GeoSolutionsIT
> http://www.linkedin.com/in/andreaaime
> http://twitter.com/geowolf
>
> -------------------------------------------------------
>
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to