On Mon, 29 Jun 2015 15:36:21 -0700 (PDT),
linux...@gmail.com wrote:
> Would it be possible to not require the availability of
> librasterlite2
> when the rl2extra option is disabled?
>
> With todays spatialite-gui 2.0.0-devel release librasterlite2 is
> still
> required for the build even though its features aren't used.
>
> Or am I misunderstanding the intention of the option?
>
Hi Bas,
a short historical review surely useful to understand better:
- since very remote times spatialite_gui depended on an external
library specifically intended to support image codecs and a
2D graphics canvas based on Cairo.
- before 2013 this helper library was libgaiagraphics
- then starting since 2013 libgaiagraphics was discontinued and
librasterlite2 was adopted as a full replacement.
the "BLOB explorer" module is widely based on librasterlite2,
and is exactly this library that is expected to implement the
low-level APIs supporting the following tasks:
- image decoding: not only limited to the most obvious GIF,
PNG, TIFF and JPEG but extended also to JPEG2000, WebP,
CharLS and all other tile-formats internally supported by
librasterlite2 itself (RAW/uncompressed, DEFLATE and LZMA)
- vector geometry preview based on Cairo.
So librasterlite2 was always intended to be a structural
dependency for spatialite_gui, and still continues to be.
The recently introduced --enable-rl2extra build option doesn't
minimally affects any GUI tool or wizards already supported
on all previous versions of spatialite_gui.
What --enable-rl2extra really does is making optional the
inclusion of about a dozen of brand new wizards introduced
starting since 2.0.0 and mainly intended as a GUI alternative
to the command line rl2tool:
- creating and configuring Raster Coverages
- loading external raster data into Raster Coverages
- creating pyramidal multi-resolution levels
- managing SLD/SE styles supporting Raster Coverages
all this very recently introduced tasks clearly are in a
still immature "experimental" state and their inclusion in
any general-purpose release isn't a safe option.
anyway different tools of spatialite_gui presenting a
well established historical continuity during the years
(as e.g. the Blob Explorer) still continue to depend
on librasterlite2.
bye Sandro