v.in.gazetteer downloads named inhabited places (cities, towns,
villages, hamlets, and isolated dwellings) within the current
computational region from OpenStreetMap, via the public
Overpass API, and imports them as
a point vector map classified by cartographic symbolism tier.
The module reads the current region (g.region), reprojects its
extent to WGS84 lon/lat, queries Overpass for place=* nodes
within that bounding box, and imports the result with v.import
(which reprojects the WGS84 points into the current project's CRS
automatically).
Each place is assigned a rank (1-5) following the French IGN
convention (ville / bourg / village / hameau / écart) and
the equivalent international topographic-mapping convention (city /
town / village / hamlet / isolated dwelling) — both use the
same importance ordering, and OSM's place=* tag maps onto it
directly:
Rank
OSM place=*
French (IGN)
English
symbol_size
label_size
label_style
1
city
ville
city
10
14
bold_upper
2
town, suburb
bourg
town
7
11
bold
3
village
village
village
5
9
regular
4
hamlet
hameau
hamlet
3
7
italic
5
isolated_dwelling, locality
écart
isolated dwelling
2
6
italic_small
symbol_size, label_size, and label_style are
suggested styling values for later display with d.vect or
ps.map; this module only classifies and attributes points, it
does not render a map itself.
Output attribute columns: name, place (raw OSM tag),
population (when available), rank, rank_fr,
rank_en, symbol_size, label_size,
label_style, source.
The place_types option selects which OSM place=* values
to fetch (default: city, town, village, hamlet, isolated_dwelling). The
min_population option drops places below a population
threshold, but only when they carry an OSM population tag
— places without one are always kept, since population coverage
in OSM is inconsistent for smaller settlements. The language
option prefers a name:<language> tag (e.g.
language=fr) over the default name tag when present.
The -l flag prints matching places (rank, English rank label,
name, population) to stdout instead of creating a vector map —
useful for a quick check before committing to an import.
Requires network access to the configured Overpass endpoint
(default: the public overpass-api.de instance). Point the
endpoint option at a mirror (e.g. a Kumi Systems instance) if
the default is rate-limited or unreachable.
The region-to-WGS84 reprojection uses all four region corners (not
just two opposite corners), which stays correct for skewed or rotated
projected regions, but remains an approximation for very large or
high-latitude extents under non-conformal projections.
OSM population figures are user-contributed and not authoritative;
treat min_population filtering as a coarse cut, not a precise
demographic filter.