m.measure(1)

✨ m.measure ✨

okay bestie, welcome to the GRASS GIS User's Manual page for m.measure(1) β€” it's giving measurement era πŸŽ€

πŸ’– NAME πŸ’–

m.measure β€” measures the lengths and areas of features. that's it, that's the whole job, and it eats every time πŸ’…

πŸ”‘ KEYWORDS πŸ”‘

miscellaneous, measurement, distance, area


🌸 SYNOPSIS 🌸

m.measure
m.measure --help
m.measure [-g] coordinates=east,north[,east,north,...]  [units=string]
[--help]  [--verbose]  [--quiet]  [--ui]

🚩 Flags 🚩

  • -g β€” shell script style ✨
  • --help β€” prints the usage summary, for when you're like "wait what"
  • --verbose β€” verbose module output, aka it tells you everything πŸ‘€
  • --quiet β€” quiet module output, aka it tells you nothing 🀫
  • --ui β€” forces the GUI dialog to launch, main character energy for your mouse πŸ–±οΈ

πŸŽ€ Parameters πŸŽ€

  • coordinates=east,north[,east,north,...] [required] β€” the coordinates, bestie. you literally cannot skip this one. it's required fr fr
  • units=string β€” the units πŸ¦‹
    • Default: project map units
    • Options: miles, feet, meters, kilometers, acres, hectares

πŸ’œ DESCRIPTION πŸ’œ

so m.measure hands you a whole way to measure the lengths and areas of lines and polygons 🫢 no cap. and the areas? they can be stated in acres, hectares, square miles, square feet, square meters and square kilometers. iconic behavior honestly πŸ’…


🌈 EXAMPLES 🌈

✈️ distance example, orthodrome style

distance example in a latitude-longitude coordinate reference system (on great circle, i.e. an orthodrome):

Bonn_DE="7.09549,50.73438"
Philadelphia_US="-75.16379,39.95233"
m.measure coordinates="$Bonn_DE,$Philadelphia_US" units=kilometers
Length:  6217.916452 kilometers

Visualization (with d.geodesic) of m.measure distance example 🌍

πŸ”² square example, North Carolina sample dataset

as an example for the North Carolina sample dataset, here four points describing a square of 1000m side length:

m.measure units=meters \
  coordinates=922000,2106000,923000,2106000,923000,2107000,922000,2107000
Length:  3000.000000 meters
Area:    1000000.000000 square meters

and now the script style output moment:

# script style output:
m.measure -g units=hectares \
  coordinates=922000,2106000,923000,2106000,923000,2107000,922000,2107000
units=meters,square meters
length=3000.000000
area=1000000.000000

πŸ‘€ SEE ALSO πŸ‘€

d.geodesic


πŸ‘‘ AUTHORS πŸ‘‘

  • Glynn Clements
  • Some updates by Martin Landa, CTU in Prague, Czech Republic
  • Derived from d.measure by James Westervelt, Michael Shapiro, U.S. Army Construction Engineering Research Laboratory

πŸ“¦ SOURCE CODE πŸ“¦

Available at: m.measure source code (history)

Accessed: Saturday Jan 17 05:41:36 2026

Main index | Miscellaneous 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 ate that πŸ“βœ¨ mwah πŸ’– this was GRASS 8.4.2, m.measure(1), signing off πŸ¦‹πŸ‘‘

πŸ“¦ where this page comes from