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.

How to use this file for testing

“World Cities (40 points, GeoJSON)” is a deterministic Novus Examples fixture for Geospatial, Data import, Conversion testing. GeoJSON, GPX, and KML files with points, lines, polygons, and tracks — for testing map tools, route parsers, and geo importers.

Documented properties for this file: GEOJSON · 11,742 bytes. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.

Data fixtures document their exact quirks — delimiters, encodings, null handling, schema, and row counts — in the spec table. Point your parser or importer at the file and assert it handles the documented edge cases; clean and deliberately-messy siblings make before/after diffs straightforward.

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.