[Geoserver-users] SLD rules for vector shape and color

Hi,

I’m trying to define a pointsymbolizer with different rules for the vector shape and the fill color.

Is there a way to define them independently based to the different point features?

Thanks,

Alfredo

On Fri, Nov 23, 2012 at 3:22 PM, Alfredo Alessandrini <mellabianca@anonymised.com4…> wrote:

Hi,

I’m trying to define a pointsymbolizer with different rules for the vector shape and the fill color.

Is there a way to define them independently based to the different point features?

I guess you can use Rules with filters, or if all you need is to, say, change the color
based on the feature, embed the color as an attribute in your data.

Did you have a look at the SLD cookbook in the guide?
http://docs.geoserver.org/latest/en/user/styling/sld-cookbook/index.html

Cheers
Andrea

==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


And if you don’t want to change the data model to add a color, you can look at using transformation functions to effectively embed logic at the color value level (rather than at the rule level). See:

http://docs.geoserver.org/stable/en/user/styling/sld-tipstricks/transformation-func.html

On Mon, Nov 26, 2012 at 10:46 AM, Andrea Aime <andrea.aime@anonymised.com> wrote:

On Fri, Nov 23, 2012 at 3:22 PM, Alfredo Alessandrini <mellabianca@anonymised.com> wrote:

Hi,

I’m trying to define a pointsymbolizer with different rules for the vector shape and the fill color.

Is there a way to define them independently based to the different point features?

I guess you can use Rules with filters, or if all you need is to, say, change the color
based on the feature, embed the color as an attribute in your data.

Did you have a look at the SLD cookbook in the guide?
http://docs.geoserver.org/latest/en/user/styling/sld-cookbook/index.html

Cheers
Andrea

==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it



Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Martin Davis
OpenGeo - http://opengeo.org
Expert service straight from the developers.