The style is fine, and the rendering is working as designed. It's just
that most of the road segments are too short to have their labels displayed
at that scale. I assume the labels start appearing as you zoom in?
One thing that might increase the number of labels displayed is to add the
"labelAllGroup" option:
http://docs.geoserver.org/stable/en/user/styling/sld-reference/labeling.html#labelallgroup
On Tue, Dec 11, 2012 at 8:29 AM, Subbu <[email protected]> wrote:
> Hi,
>
> I am having issues with Labelling my Line geometry shp file. I have a shp
> file for highways and labelled it, but its not labelling it properly.
> Labels are missing in some places as you can see in the attachment. I just
> want to label to be displayed uniformly across the map.
> Here is the contents of my sld file.
>
> <LineSymbolizer>
> <Stroke>
> <CssParameter name="stroke">#999999</CssParameter>
> <CssParameter name="stroke-width">2.2</CssParameter>
> </Stroke>
> </LineSymbolizer>
> <LineSymbolizer>
> <Stroke>
> <CssParameter name="stroke">#fcbe44</CssParameter>
> <CssParameter name="stroke-width">2</CssParameter>
> <CssParameter name="stroke-linecap">round</CssParameter>
> </Stroke>
> </LineSymbolizer>
>
> <TextSymbolizer>
> <Label>
> <ogc:PropertyName>NAME</ogc:PropertyName>
> </Label>
>
> <Font>
> <CssParameter name="font-family">Arial</CssParameter>
> <CssParameter name="font-size">9</CssParameter>
> <CssParameter name="font-style">normal</CssParameter>
> <CssParameter name="font-weight">normal</CssParameter>
> </Font>
>
> <LabelPlacement>
> <LinePlacement>
>
> <PerpendicularOffset>
> 0
> </PerpendicularOffset>
> </LinePlacement>
> </LabelPlacement>
> <Halo>
> <Radius>1.5</Radius>
> <Fill>
> <CssParameter name="fill">#fcbe44</CssParameter>
> </Fill>
> </Halo>
> <Fill>
> <CssParameter name="fill">#000000</CssParameter>
> </Fill>
> <VendorOption name="followLine">true</VendorOption>
> <VendorOption name="group">yes</VendorOption>
> <VendorOption name="repeat">15</VendorOption>
> <VendorOption name="maxAngleDelta">90</VendorOption>
> <VendorOption name="maxDisplacement">15</VendorOption>
>
> </TextSymbolizer>
>
>
> ------------------------------------------------------------------------------
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
> Remotely access PCs and mobile devices and provide instant support
> Improve your efficiency, and focus on delivering more value-add services
> Discover what IT Professionals Know. Rescue delivers
> http://p.sf.net/sfu/logmein_12329d2d
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
--
Martin Davis
OpenGeo - http://opengeo.org
Expert service straight from the developers.
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users