Hi all, I've asked this on the GeoServer forum, but haven't gotten any responses, so I thought I might try it here. It's not exactly OpenLayers-specific, but it concerns matters that other OL users may be familiar with/interested in.
We're using GeoServer to serve up a large set of features, each of which belong to a feature type. We're hoping to build an interface for attaching specific style rules to each feature type. The styling will be done via SLD (the features are shown using WMS in OpenLayers). We have hundreds of feature types, so a single style rule will likely be associated with multiple feature types. The plan we are thinking of using is this: 1. Make a style rules table, with fields like "stroke width", "stroke color", "fill color", "point image icon", etc. 2. Make a CRUD interface for editing the style rules table. 3. Add a field to our feature types table called something like style_rule_id, and have a drop-down menu that lets you assign a style rule to a feature type. 4. Set up GeoServer so that, when a feature is requested, the style rule fields (e.g. "stroke width") of its feature type are served. The SLD then uses these fields' values to style the feature (probably by using <ogc:PropertyName>). Does this sound like a reasonable setup? I'm new to this, so if anyone has any pointers or better methods of achieving this, that'd be great. Thanks, Tom -- View this message in context: http://n2.nabble.com/Interface-for-associating-SLD-styles-with-feature-types-tp3472658p3472658.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
