r.object.geometry(1)
π r.object.geometry π
okay bestie, welcome to the r.object.geometry page from the GRASS GIS User's Manual β she's a little raster stats queen and she's about to tell you exactly how big and how weirdly shaped your objects are. no cap. π
β¨ NAME β¨
r.object.geometry β Calculates geometry parameters for raster objects. π
π KEYWORDS π
raster, statistics, reclass, clumps
πΈ SYNOPSIS πΈ
r.object.geometry
r.object.geometry --help
r.object.geometry [-m] input=name [output=name] [separator=character]
[--overwrite] [--help] [--verbose] [--quiet] [--ui]
π© Flags:
-mβ Use meters as units instead of cells. (the glow-up from "cells" to "actual real-world distance" π«)--overwriteβ Allow output files to overwrite existing files. (she will simply replace them, no apology π«Ά)--helpβ Print usage summary.--verboseβ Verbose module output. (she talks more π£οΈ)--quietβ Quiet module output. (she talks less π€«)--uiβ Force launching GUI dialog.
π§Έ Parameters:
input=name[required] β Name of input raster map.output=nameβ Name for output file.separator=characterβ Field separator.- Special characters:
pipe,comma,space,tab,newline - Default:
pipe
- Special characters:
π DESCRIPTION π
r.object.geometry calculates form statistics of raster objects in the input map and writes it to the output text file β or to standard output if you don't give an output filename, or if you pass '-' β with fields separated by the separator you chose. π¦
Objects are defined as clumps of adjacent cells with the same category value (like, say, the output of r.clump or i.segment). it's giving "find the blobs, describe the blobs". β¨
By default, values are in pixels. If you want values in meters, set the -m flag. And listen β if your current working region is in lat-long, or has non-square pixels, using meters is recommended. fr fr. π
Statistics currently calculated are exactly the same as in v.to.db (except for compact_square and mean coordinates):
areaperimetercompact_square(compactness compared to a square:compact_square = 4 * sqrt(area) / perimeter)compact_circle(compactness compared to a circle:compact_circle = perimeter / ( 2 * sqrt(PI * area) ))- fractal dimension (
fd = 2 * ( log(perimeter) / log(area + 0.001) )) - mean x coordinate of object (in map units)
- mean y coordinate of object (in map units)
π EXAMPLE π
g.region raster=soilsID
r.object.geometry input=soilsID output=soils_geom.txt
look at her go. iconic. π
π SEE ALSO π
i.segment, r.clump, v.to.db
π«Ά AUTHORS π«Ά
- Moritz Lennert
- Markus Metz (diagonal clump tracing)
π¦ SOURCE CODE π¦
Available at: r.object.geometry source code (history)
Accessed: Saturday Jan 17 05:40:51 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, mwah π β this was GRASS 8.4.2, r.object.geometry(1), accessed Saturday Jan 17 05:40:51 2026. go measure some clumps, you absolute main character. πβ¨π
π¦ 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