On Wed, 15 Jul 2015 04:29:53 -0700 (PDT), mj10777 wrote:
> After, belatedly seeing that all the Style commands are documented in
> the spatialite-documentation, I have started the process of learning
> how to deal with the Styles for a RasterLite2 Database.
>
Hi Mark,
it seems that there is some confusion about SE and SLD styles.
- all this stuff started in 2002 when OGC released the initial
SLD 1.0.0 specification.
- anyway in 2006/2007 many relevant changes happened.
a significantly different SLD 1.1.0 was released, and even more
important, there was a brand new companion SE 1.1.0 specification.
- so SLD 1.0.0 is now clearly obsolete but unhappily many sw
implementations seems to be still stuck to this superseded
specification.
- the intended goal of Spatialite+Rasterlite is supporting SE
and SLD 1.1.0, not the archaic SLD 1.0.0
just a may be useful explanation:
- the initial SLD specification was to much closely modelled
around WMS, and there wasn't any clear distinction separating
the style itself and the more complex rules (based on scale
or depending on attribute values) allowing to support a
very dynamic styling.
- the new 1.1.0 specifications are more generic and easily
reusable also in contexts completely unrelated to WMS.
the styling problem is split in two halves:
* SE (Stying Encoding) is just supposed to represent a single
style aka symbolizer, and could be one between RasterSymbolizer,
PointSymbolizer, LineSymbolizer, PolygonSymbolizer or
TextSymbolizer.
* SLD (Style Layer Descriptor) is a more complex object
possibly based on several distinct SE items, and is intended
to represent complex and may be highly dynamic rendering rules.
Just as an example, you could eventually define a complex
SLD for the same Polygon Layer based on:
- a PolygonSymbolizer (e.g. based on a thick black stroke
and a semi-transparent red fill).
- a PointSymbolizer (e.g. a green star centered on the
polygon's centroid)
- and finally a TextSymbolizer (e.g. displaying some label,
and properly aligned around the polygon's centroid).
- all three Symbolizers will be then rendered
both specifications are available for free download;
http://portal.opengeospatial.org/files/?artifact_id=16700
http://portal.opengeospatial.org/files/?artifact_id=22364
they are quite complex (and may be a little boring) but studying
these documents with due care and attention is surely worth for
anyone seriously interested into SE and SLD.
I suggest you to build a copy of spatialite_gui configured as:
./configure --enable-rl2extra=yes
this way you'll enable several wizards supporting an user friendly
approach to SE and SLD; each wizard can directly insert an SE/SLD
style into the DB, but you can easily export the corresponding XML
documents.
All these wizards are still half-finished and may be bug ridden,
anyway they are surefuly useful as didactic tools.
I imagine this could be the faster and easier approach to the
many SE and SLD intricacies.
have your fun,
Sandro