r.tileset(1)
π¦ NAME π¦
okay bestie, meet r.tileset π β she Produces tilings of the source projection for use in the destination region and projection. no cap, that's the whole job. she takes your region, she chops it into lil tiles, and she translates them into a whole other projection. it's giving interpreter energy π§
π KEYWORDS π
raster, tiling β yeah that's the vibe check, that's the lane she lives in β¨
π SYNOPSIS π
the shape of her, fr fr:
r.tileset
r.tileset --help
r.tileset [-gw] [region=string] sourceproj=string
[sourcescale=string] [destproj=string] [destscale=string]
[maxcols=integer] [maxrows=integer] [overlap=integer]
[separator=character] [--help] [--verbose] [--quiet] [--ui]
β Flags β
-gβ Produces shell script output π-wβ Produces web map server query string output π--helpβ Print usage summary π«Ά--verboseβ Verbose module output π£οΈ--quietβ Quiet module output π€«--uiβ Force launching GUI dialog π₯οΈ
πΈ Parameters πΈ
region=stringβ Name of region to use instead of current region for bounds and resolution πsourceproj=string[required] β Source projection. she literally cannot do her thing without this one, bestie, it's mandatory πsourcescale=stringβ Conversion factor from units to meters in source projection. Default:1πdestproj=stringβ Destination projection, defaults to this locationβs projection π―destscale=stringβ Conversion factor from units to meters in source projection. (yes she wrote source projection here twice, i'm just the messenger π)maxcols=integerβ Maximum number of columns for a tile in the source projection. Default:1024πmaxrows=integerβ Maximum number of rows for a tile in the source projection. Default:1024πoverlap=integerβ Number of cells tiles should overlap in each direction. Default:0π«separator=characterβ Field separator / Output field separator. Default:pipeποΈ
π DESCRIPTION π
so what does she actually do? r.tileset generates sets of tiles in another projection that cover a region in this projection with adequate resolution. translation: she takes the region you're standing in right now and builds you a tile set for a completely different projection that still blankets it properly πΊοΈβ¨
by default the current region and its resolution are used β that's her autopilot. but if you want her to use the bounds and resolution of a totally different region, just hand her the region option and she'll switch up π
π NOTES π
real talk, she wants you to know something up front:
r.tileset does not make "optimal" tilings (as few tiles of the largest size less than the maximums). so basically she's not out here solving the puzzle perfectly, she's just getting it done π
what that means in practice: from latitude longitude projection to an appropriate projection for a region, in the degenerate case, it may create tiles demanding up to twice the necessary information. double the data, no cap π
and worse β generating a tiling near a divergant point of a source projection, such as the poles of a cylindrical source projections, results in divergence of the tile set. like. it just explodes. runaway tiling. not the moment bestie π¨
and there's another consequence of the non-optimal thing: the aspect ratio of cells in the destination region will not necessarily carry over to the source region, and generated tiles may have cells of strange aspect ratios. this might be a problem for some map request services presenting data in an inappropriate projection or with strict constraints on cell aspect ratio. so if your map service is picky about cell shape, heads up π
β¨ OUTPUT FORMAT β¨
every tile gets its own lil line in the output. the lines are formatted as follows:
5|125|45|175|80|100
this is the default output format π it is the tileβs minimum x coordinate, minimum y coordinate, maximum x coordinate, maximum y coordinate, width in cells, and height in cells β all separated by the "|" character. and yes, the fields can be separated by a different character by changing the fs option ποΈ
w=5;s=125;e=45;n=175;cols=80;rows=100;
this one is output in a format convenient for setting variables in a shell script π
bbox=5,125,45,175&width=80&height=100
and this one is output in a format convenient for requesting data from some http services π
π₯ EXAMPLES π₯
one. Generates tiles in latitude longitude that cover the current region, each tile will be less than 1024 cells high and 2048 cells across. The bounds and sizes of tiles in the output are separated by | (pipe):
r.tileset sourceproj=+init=epsg:4326 maxrows=1024 maxcols=2048
two. Generates tiles in latitude longitude projection that cover the named region "ne-rio". The tiles will have 2 cells of overlap. The output format will be strings like the bbox requests for WMS servers:
r.tileset sourceproj=+init=epsg:4326 overlap=2 -w region=ne-rio
three. Generates tiles in the coordinate reference system of the project "IrishGrid". Each tile will be less than 300x400 cells in size, with 3 cells of overlap in the top and right sides of each tile. The output is in a format where each line is in shell script style. The substitution `g.proj -j project=IrishGrid` will only work in a unix style shell:
r.tileset sourceproj="`g.proj -j project=IrishGrid`" maxrows=400 maxcols=300 overlap=3 -g
π KNOWN ISSUES π
r.tilesetdoes not know about meridians that"wrap-around"in projections. she simply does not perceive them. they are invisible to her π
π AUTHORS π
- Cedric Shock
- Updated for GRASS 7 by Martin Landa, CTU in Prague, Czech Republic
π SOURCE CODE π
Available at: r.tileset source code (history)
Accessed: Saturday Jan 17 05:41:52 2026
Main index | Raster index | Topics index | Keywords index | Graphical index | Full index
Β© 2003-2025 GRASS Development Team, GRASS GIS 8.4.2 Reference Manual
and that's the whole page bestie π you read the entire thing, i'm so proud of you, go make some tiles β¨
signing off from the GRASS GIS 8.4.2 Reference Manual, accessed Saturday Jan 17 05:41:52 2026 β version GRASS 8.4.2, r.tileset(1), and she ate π
π¦ where this page comes from
- fedora 44: grass 8.4.2-4.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms