[Geoserver-users] [SLD] Generic Rules

Hi everyone,

I'm trying to solve a problem with SLDs. I have a table with roads
that need to be displayed according to their nature (highways one way,
etc...) I've already accomplished that by using Filters in Rules to
match a certain Parameter.

The thing is, for a given type of road, I want the stroke to be of a
different width according to the zoom level. I could easily do this
with more filters and using the Min and Max scale denominator. But I
don't want to declare each and every attribute of the Line Symbolizer
again and again for "every" rule, when only the stroke-width
changes...

So, is there a way to declare "applies to all" rules, and then only
state the differences?

Cheers!

Hugo Ferreira

--
GPG Fingerprint: B0D7 1249 447D F5BB 22C5 5B9B 078C 2615 504B 7B85

I am curious to see how the map turns out as a result of your rules.
Please indulge us with a screenshot!!!

Alex

On 1/4/07, Hugo Ferreira <bytter@anonymised.com> wrote:

Hi everyone,

I'm trying to solve a problem with SLDs. I have a table with roads
that need to be displayed according to their nature (highways one way,
etc...) I've already accomplished that by using Filters in Rules to
match a certain Parameter.

The thing is, for a given type of road, I want the stroke to be of a
different width according to the zoom level. I could easily do this
with more filters and using the Min and Max scale denominator. But I
don't want to declare each and every attribute of the Line Symbolizer
again and again for "every" rule, when only the stroke-width
changes...

So, is there a way to declare "applies to all" rules, and then only
state the differences?

Cheers!

Hugo Ferreira

--
GPG Fingerprint: B0D7 1249 447D F5BB 22C5 5B9B 078C 2615 504B 7B85

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Unfortunately there is no easy way to do this. It gets a little messy and hard to manage, but that is the way SLD is. What would help tremendously is an SLD wizard, sort of a wysiwyg editor that can handle all of this redundant work for you.
Hopefully we will get one out this year. I think it will help a lot.

Brent Owens
(The Open Planning Project)

Hugo Ferreira wrote:

Hi everyone,

I'm trying to solve a problem with SLDs. I have a table with roads
that need to be displayed according to their nature (highways one way,
etc...) I've already accomplished that by using Filters in Rules to
match a certain Parameter.

The thing is, for a given type of road, I want the stroke to be of a
different width according to the zoom level. I could easily do this
with more filters and using the Min and Max scale denominator. But I
don't want to declare each and every attribute of the Line Symbolizer
again and again for "every" rule, when only the stroke-width
changes...

So, is there a way to declare "applies to all" rules, and then only
state the differences?

Cheers!

Hugo Ferreira