[OpenLayers-Users] SLD with different filters
Ian Turton
ijturton at gmail.com
Mon Jun 28 11:45:45 EDT 2010
On Mon, Jun 28, 2010 at 11:24 AM, Martin.L <hermsdorfer84 at web.de> wrote:
>
> Hi at all!
>
> I'm trying to style points with different OGC-filters. Thereby it has to do
> with earthquakes. An earthquake should be visualized with the magnitude, the
> age and the depth. All these data is stored in a database, where Geoserver
> has acces on it. Now I want to style the points with SLD.
>
> Is it possible to style the point/circle of an earthquake with:
> - radius=magnitude
> - transparency=age and
> - color=depth
> at the same time? How can I solve it?
Yes - start with
http://docs.geoserver.org/stable/en/user/styling/sld-cookbook/points.html#attribute-based-point
which shows how to set radius by magnitude, there are other sections
which will cover transparency and color which you can set to
properties as with radius. You may also need to look at functions to
do some normalization of variables
(http://docs.geoserver.org/stable/en/user/filter/function_reference.html#math-functions).
Ian
--
Ian Turton
More information about the Users
mailing list