rl2tool(1)
π rl2tool π
okay bestie, so this is the manual for rl2tool, aka the CLI tool for RasterLite2, from section (1) of the manual pages. pull up a chair, grab a strawberry π, and let's get into it.
β¨ NAME β¨
rl2tool β CLI tool for RasterLite2
π«Ά SYNOPSIS π«Ά
rl2tool mode [ARGLIST]
so yeah, you pick a mode, you hand it some args, and it does the thing. that's the whole vibe β¨
πΈ DESCRIPTION πΈ
rl2tool is a CLI tool for RasterLite2. short, sweet, iconic. no notes. π
π OPTIONS π
every mode has its own little arglist, so let's go mode by mode, bestie. buckle up. π
π Mode: CREATE π
will create a new RasterLite2 Raster Coverage. brand new baby coverage, obsessed.
-dbpathname,--db-pathpathname β RasterLite2 DB path-covstring,--coveragestring β the Coverage's name-smpkeyword,--sample-typekeyword β Sample Type keyword (go check the list below π)-pxlkeyword,--pixel-typekeyword β Pixel Type keyword (also on the list π)-bdsinteger,--num-bandsinteger β Number of Bands-cprkeyword,--compressionkeyword β Compression keyword (yeah you guessed it, list below π)-qtyinteger,--qualityinteger β Compression Quality[0-100]-tlwinteger,--tile-widthinteger β Tile Width, in[pixels]-tlhinteger,--tile-heightinteger β Tile Height, in[pixels]-sridinteger,--sridinteger β SRID value-nosrid,--no-sridβ No SRID-resnumber,--resolutionnumber β pixel resolution (X and Y)-xresnumber,--x-resolnumber β pixel resolution (X specific)-yresnumber,--y-resolnumber β pixel resolution (Y specific)-ndpixel,--no-datapixel β NO-DATA pixel value
SampleType Keywords:
1-BIT 2-BIT 4-BIT INT8 UINT8 INT16 UINT16 INT32 UINT32 FLOAT DOUBLE
PixelType Keywords:
MONOCHROME PALETTE GRAYSCALE RGB MULTIBAND DATAGRID
Compression Keywords:
NONE DEFLATE LZMA GIF PNG JPEG WEBP LL_WEBP FAX3 FAX4
π¦ Mode: DROP π¦
will drop an existing RasterLite2 Raster Coverage. bye boo π
-dbpathname,--db-pathpathname β RasterLite2 DB path-covstring,--coveragestring β the Coverage's name
π Mode: IMPORT π
will create a new Raster Section by importing an external image or raster file. bringing outside content into the group chat, love that for us.
-dbpathname,--db-pathpathname β RasterLite2 DB path-srcpathname,--src-pathpathname β input Image/Raster path-dirpathname,--dir-pathpathname β input directory path-extstring,--file-extstring β extension file extension (e.g..tif)-covstring,--coveragestring β the Coverage's name-sridinteger,--sridinteger β optional: force SRID value-wf>,--worldfileβ requires a Worldfile-pyr,--pyramidizeβ immediately build Pyramid levels
ok bestie yes, that one flag is literally printed as -wf> in the original page π i did not make that up, i promise. no cap.
π§ Mode: EXPORT π§
will export an external image from a Coverage. sending it out into the world, main character departure βοΈ
-dbpathname,--db-pathpathname β RasterLite2 DB path-dstpathname,--dst-pathpathname β output Image/Raster path-covstring,--coveragestring β the Coverage's name-resnumber,--resolutionnumber β pixel resolution (X and Y)-xresnumber,--x-resolnumber β pixel resolution (X specific)-yresnumber,--y-resolnumber β pixel resolution (Y specific)-minxnumber,--min-xnumber β X coordinate (lower-left corner)-minynumber,--min-ynumber β Y coordinate (lower-left corner)-maxxnumber,--max-xnumber β X coordinate (upper-right corner)-maxynumber,--max-ynumber β Y coordinate (upper-left corner)-cxnumber,--center-xnumber β X coordinate (center)-cynumber,--center-ynumber β Y coordinate (center)-outwnumber,--out-widthnumber β image width (in pixels)-outhnumber,--out-heightnumber β image height (in pixels)
In order to export a raster you are expected to specify:
- the intended resolution (
-resOR-xresAND-yres) - the output image size (
-outwAND-outh) - a single tie-point, defined as one of:
- Output Image Center point:
-cxAND-cy - Output Image LowerLeft corner:
-minxAND-miny - Output Image LowerRight corner:
-maxxAND-miny - Output Image UpperLeft corner:
-minxAND-maxy - Output Image UpperRight corner:
-maxxAND-maxy
- Output Image Center point:
fr fr, read that checklist twice. it's giving "required", because it is. π¨
π Mode: DELETE π
will delete a Raster Section. not me removing things π
-dbpathname,--db-pathpathname β RasterLite2 DB path-covstring,--coveragestring β the Coverage's name-secstring,--sectionstring β the Section's name
π Mode: PYRAMIDIZE π
will (re)build all Pyramid levels supporting a Coverage. glow-up time, building levels on levels β¨
-dbpathname,--db-pathpathname β RasterLite2 DB path-covstring,--coveragestring β the Coverage's name-secstring,--sectionstring β optional: the Section's name β default is"All Sections"-f,--forceβ optional: rebuilds from scratch
π Mode: PYRAMIDIZE-MONOLITHIC π
will (re)build all Pyramid levels (Monolithic) supporting a Coverage. same energy, monolithic edition πΏ
-dbpathname,--db-pathpathname β RasterLite2 DB path-covstring,--coveragestring β the Coverage's name-levnumber,--virt-levelsnumber β number of virt-levels β could be one of:1,2or3
π Mode: DE-PYRAMIDIZE π
will delete Pyramid levels. de-influencing the pyramid levels, honestly iconic of it.
-dbpathname,--db-pathpathname β RasterLite2 DB path-covstring,--coveragestring β the Coverage's name-secstring,--sectionstring β optional: the Section's name β default is"All Sections"
β Mode: LIST β
will list Raster Sections within a Coverage. show me the roster bestie π
-dbpathname,--db-pathpathname β RasterLite2 DB path-covstring,--coveragestring β the Coverage's name-secstring,--sectionstring β optional: the Section's name β default is"All Sections"
π Mode: MAP π
will output a PNG Map representing all Raster Sections within a Coverage. a whole map!! aesthetic πΊοΈβ¨
-dbpathname,--db-pathpathname β RasterLite2 DB path-covstring,--coveragestring β the Coverage's name-dstpathname,--dst-pathpathname β output Image/Raster path-outwnumber,--out-widthnumber β image width (in pixels)-outhnumber,--out-heightnumber β image height (in pixels)
π₯ Mode: CATALOG π₯
will list all Coverages from within a RasterLite2 DB. the full guest list, no one left out π
-dbpathname,--db-pathpathname β RasterLite2 DB path
π Mode: HISTOGRAM π
will create a PNG showing a band Histogram. data visualization that ate fr π
-dbpathname,--db-pathpathname β RasterLite2 DB path-covstring,--coveragestring β the Coverage's name-secstring,--sectionstring β optional: the Section's name β default is"All Sections"-bndinteger,--band-indexinteger β a valid band index β default is band index0-dstpathname,--dst-pathpathname β output PNG path β default is./hist_cov_sec_idx.png
optional DB specific settings:
-csnum,--cache-sizenum β DB cache size (how many pages)-m,--in-memoryβ using IN-MEMORY database-jo,--journal-offβ unsafe [but faster] mode
β οΈ bestie, do not gloss over that last one.-jo/--journal-offis literally described as unsafe [but faster] mode. faster is cute, unsafe is not. know what you're signing up for. π©
and that's the whole page, top to bottom, nothing skipped, everything kept. periodt. π
this little love letter lives in the rl2tool(1) manual page, dated 06 February 2026 πβ¨ slay, read it, use it, hydrate π«Άπ
π¦ where this page comes from
- ubuntu resolute: rasterlite2-bin 1.1.0~beta1-4build2 Β· MPL-1.1 OR GPL-2.0-or-later OR LGPL-2.1-or-later
- ubuntu stonking: rasterlite2-bin 1.1.0~beta1-4build2 Β· MPL-1.1 OR GPL-2.0-or-later OR LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms