Skip to content
Novus Examples
geojson11.5 KB

World Cities (40 points, GeoJSON)

The same 40 world cities as a GeoJSON FeatureCollection of Points (longitude, latitude order per RFC 7946), each with name, country, and population properties. The mapping twin of the CSV, for testing GeoJSON parsers and map renderers.

Preview — first 50 linesgeojson
{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "geometry": {
        "type": "Point",
        "coordinates": [
          139.6503,
          35.6762
        ]
      },
      "properties": {
        "name": "Tokyo",
        "country": "JP",
        "population": 37400068
      }
    },
    {
      "type": "Feature",
      "geometry": {
        "type": "Point",
        "coordinates": [
          77.1025,
          28.7041
        ]
      },
      "properties": {
        "name": "Delhi",
        "country": "IN",
        "population": 32941308
      }
    },
    {
      "type": "Feature",
      "geometry": {
        "type": "Point",
        "coordinates": [
          121.4737,
          31.2304
        ]
      },
      "properties": {
        "name": "Shanghai",
        "country": "CN",
        "population": 29210808
      }
    },
    {
      "type": "Feature",
606 lines total — download for the full file.

Specifications

Features
40
Geometry
Point
Note
[longitude, latitude] order per RFC 7946

What is a .geojson file?

GeoJSON is a JSON-based format for encoding geographic data structures such as points, lines, and polygons, along with their properties. It uses WGS84 longitude-latitude coordinates and standard feature and feature-collection objects. It is a common interchange format for web mapping and GIS.

How to use this file

Use an example GeoJSON file to test geometry parsing, coordinate handling, and mapping libraries or GIS pipelines that render or analyze spatial features.

Code examples

import geopandas as gpd

gdf = gpd.read_file("world-cities.geojson")
print(gdf.head())
print(gdf.crs)

Generated by generation/data_graphs.py. Free for any use, no attribution required — license.