Cognised existence: Populated areas are settlement entities (city, town, village, hamlet, urban area) represented as points or polygons.

Question: Where are villages, towns, and cities, and what is their settlement hierarchy?

OSM wiki: https://wiki.openstreetmap.org/wiki/Key:place


Realisations

OpenStreetMap — settlement entities via place=*

OSM models settlements directly using place tags. This is suitable for settlement hierarchy mapping and nearest-settlement analysis.

osmnx access

import osmnx as ox
ox.settings.cache_folder = ".cache/"
 
settlements = ox.features_from_place(
    "Denmark",
    tags={"place": ["city", "town", "village", "hamlet", "suburb"]},
)

Geofabrik layer

gis_osm_places_free_1.shp — place points with optional attributes such as population.

Key OSM tags

TagMeaning
place=cityMajor settlement
place=townTown
place=villageVillage
place=hamletHamlet
place=suburbSuburb/neighborhood
population=*Optional settlement population estimate

Natural Earth — ne_10m_populated_places, ne_10m_urban_areas

Natural Earth provides globally consistent settlement points and generalized urban area polygons for small-scale mapping.

Python load

import geopandas as gpd
 
places = gpd.read_file("ne_10m_populated_places.shp")
urban_areas = gpd.read_file("ne_10m_urban_areas.shp")
 
major_cities = places[places["SCALERANK"] <= 2]

Key attributes

FieldMeaning
NAMESettlement name
FEATURECLAFeature class
SCALERANKCartographic prominence rank
POP_MAXMaximum population estimate
ADM0NAMECountry name

Geometry Representations

Rep IDSource DatasetGeometry TypeNative CRSSuitable ForNot Suitable For
settlements_osm_pointsOSM via GeofabrikPointEPSG:4326Settlement hierarchy mapping, nearest settlement analysisOfficial census totals or demographic structure
settlements_ne_10m_pointsNatural Earth populated placesPointEPSG:4326Global city hierarchy maps, small-scale settlement contextLocal-level settlement completeness
settlements_ne_10m_urban_areasNatural Earth urban areasPolygonEPSG:4326Broad urban footprint context at global scaleLegal urban boundaries or municipal planning precision

Limitations

  • OSM and Natural Earth settlement layers are not official census registers.
  • Settlement class definitions vary by country and mapping conventions.
  • Use statistical population grids or census datasets for demography and density metrics.