[Geoserver-users] labeling beyond end points

Hi All,

I current have a collection of lines that are divided into very small segments. Because the line segments are so small, labeling is not happeing at the zoom levels Im interested in. It seems that labels will not render beyond the line's end points. I've tried turning off conflict resolution but that hasn't made a difference. Is there a way, using slds, to get labels to extend beyond the end points?

Many thanks.
Alyssa.

alyssa wright ha scritto:

Hi All,

I current have a collection of lines that are divided into very small segments. Because the line segments are so small, labeling is not happeing at the zoom levels Im interested in. It seems that labels will not render beyond the line's end points. I've tried turning off conflict resolution but that hasn't made a difference. Is there a way, using slds, to get labels to extend beyond the end points?

There is an undocumented labeler option that allows label to extend
past the end of line, but mind, I think it works only if you're not
using the curved labels option (rationale, once the line ends I don't
know what to follow).

Try adding this to your text symbolizer:

<VendorOption name="allowOverruns">true</VendorOption>

Hmmm... or maybe not... the default value of that option is true,
so you probably have curved labels?

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Thanks Andrea. But yes. . . I'm using curved labels (they're street lines). Is there another option?

We were thinking of using st_union to combine the line segments, but would prefer to use styling is possible.

Thanks again,
Alyssa.

Andrea Aime wrote:

alyssa wright ha scritto:

Hi All,

I current have a collection of lines that are divided into very small segments. Because the line segments are so small, labeling is not happeing at the zoom levels Im interested in. It seems that labels will not render beyond the line's end points. I've tried turning off conflict resolution but that hasn't made a difference. Is there a way, using slds, to get labels to extend beyond the end points?

There is an undocumented labeler option that allows label to extend
past the end of line, but mind, I think it works only if you're not
using the curved labels option (rationale, once the line ends I don't
know what to follow).

Try adding this to your text symbolizer:

<VendorOption name="allowOverruns">true</VendorOption>

Hmmm... or maybe not... the default value of that option is true,
so you probably have curved labels?

Cheers
Andrea

alyssa wright ha scritto:

Thanks Andrea. But yes. . . I'm using curved labels (they're street lines). Is there another option?
We were thinking of using st_union to combine the line segments, but would prefer to use styling is possible.

Grouping: http://geoserver.org/display/GEOSDOC/LabelingOptions
See: "Grouping Geometries (<VendorOption name="group">)"

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.