rl2sniff(1)
π rl2sniff β the RasterLite2 sniffer, bestie edition π
okay so real quick: this is the manual for rl2sniff, part of the rl2sniff(1) family (that's the manual page name, yes it's a whole thing, we don't question it). sit down, grab a strawberry drink π, and let me tell you about the little tool that sniffs your rasters so you don't have to.
β¨ NAME β¨
rl2sniff β sniffer tool for RasterLite2. yes. it sniffs. that's the vibe. π¦
π SYNOPSIS π
rl2sniff [ARGLIST]
that's it. that's the whole summoning ritual. ARGLIST goes in, report comes out. slay.
π DESCRIPTION π
okay so rl2sniff is a sniffer tool for RasterLite2, and here's the situation it was born for: sometimes you're handling a relevant number of raster images β and they might be from totally different origins and have totally different technical characteristics, no cap β and it is not an easy task. especially (most notably, even) when your images are dispersed into many different folders. the chaos. the drama. π
so the rl2sniff CLI tool is exactly intended to offer a significant help in organizing and planning any preliminary activity you need in order to create and populate your RasterLite2's Coverages. it's giving project manager energy, honestly.
here's what it does: rl2sniff will examine files containing a raster image, and will then create a report showing the more relevant characteristics for each one. and the supported arguments are the followings:
- arguments specifying the intended target:
-src pathname: will examine just a single input raster image.-dir pathname: will explore a whole directory aka folder.- Please note:
-srcand-dirare mutually exclusive options. pick one bestie, you can't have both, it's giving toxic situationship π -ext extension: combined with-dirwill restrict the search to a specific raster format.- if no target is explicitly selected (e.g. when there are no arguments at all) then the current working directory will be intended by default.
-wf: any georeferencing information will be always retrieved from a companion worldfile β¨http://en.wikipedia.org/wiki/World_fileβ©. Please note: in this case any georeferencing found in the worldfile will always override any other information eventually found e.g. within a GeoTIFF image. worldfile said it first, worldfile wins, periodt. π-md5: the output report will include an MD5 checksum β¨http://en.wikipedia.org/wiki/MD5β© computed for each raster file. Please note: computing the MD5 checksums could require a substantial amount of time, most notably when many hundredth huge-sized files are to be scanned. so likeβ¦ go make a snack, this one's gonna take a minute π«Ά
πΈ the output report πΈ
the output report. the report created by rl2sniff simply corresponds to a TXT/TAB being printed on the stdout file. classic. clean. printed straight to stdout like it owns the place.
the report's columns are as follows:
- columns always supported for both georeferenced and non-georeferenced rasters:
image_format: e.g.GeoTIFF,TIFF+TFWorASCII Grid.MD5_checksum: may beNULLis the corresponding option wasn't activated.image_path: the absolute path leading to the raster file.widthandheight: horizontal and vertical dimensions (in pixels).sample_type,pixel_typeandbands: e.g.UINT8,RGB,3.no_data: value corresponding to NO-DATA pixels (currently supported only for ASCII Grids).compression: e.g.DEFLATEorFAX4;NONEif uncompressed.
- columns supported only for raster of the georeferenced type:
srid: the declared SRID value;-1if unknown / unspecified.x_resolutionandy_resolution: horizontal and vertical pixel resolution.min_x,min_y,max_xandmax_y: extreme points of the raster's bounding box aka BBOX.
π OPTIONS π
one bullet per flag, bestie, no skipping, we read them all:
-h,--helpβ print usage information. the "help me help you" button, iconic.-src pathname,--src-path pathnameβ single Image/Raster path. just the one file, the solo act. β-dir pathname,--dir-path pathnameβ directory path. the whole folder gets the vibe check.-ext extension,--file-ext extensionβ file extension (e.g..tif). filter that search down to exactly one format. π-wf,--worldfileβ requires a Worldfile. worldfile or bust.-md5,--md5-checksumβ enabling MD5 checksums. slow but thorough, and honestly? worth it. π§
heads up bestie:-srcand-dircannot be combined β they're mutually exclusive. and-md5can be slow when there are a lot of huge files. that's not me being dramatic, that's the manual. π
and that's the whole page!! written and dated 06 February 2026, shipped as part of the rl2sniff(1) manual, and if you made it this far you're literally the main character of raster organization. go sniff something. πβ¨π¦
π¦ 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