You can use the filter to prevent labeling features with that value:

[@scale < 25000][CLASS_CODE=6][EZI_ROAD_NAME_LABEL <> 'unnamed']

In your example, you'd have to change both 2WD and 4WD rules.

--
David Winslow
OpenGeo - http://opengeo.org/


On Thu, Jul 4, 2013 at 4:29 AM, Lottie Atzenbeck
<[email protected]>wrote:

> Hi everyone!
>
> I want to label roads but unfortunatly there are some roads names
> 'unnamed' which I don't want of course. How can I add this easily into my
> css code?
>
> It looks like this so fare:
>
> *{
>     font-family:'Tahoma';
>     font-style: normal;
>     font-weight: normal;
>     label-anchor: 0.0, 0.5;
>     label-rotation:0;
>     halo-radius:1;
>     halo-color:#FFFFFF;
>     -gt-label-follow-line:true;
>     -gt-label-max-angle-delta:90;
>     -gt-label-max-displacement:400;
>     -gt-label-group:true;
> }
>
> /*2WD*/
> [@scale<25000][CLASS_CODE='6']{
>     label:[EZI_ROAD_NAME_LABEL];
>     font-size: 12;
>     font-fill:#E42217;
> }
>
> /*4WD*/
> [@scale<12000][CLASS_CODE='7']{
>     label:[EZI_ROAD_NAME_LABEL];
>     font-size: 12;
>     font-fill:#E42217;
> }
>
> thanks!
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to