Skip to content
Novus Examples
geojson548 B

GeoJSON Sample

A GeoJSON FeatureCollection with a point, a line, and a polygon — for testing map tools and geo importers.

Preview — first 9 linesgeojson
{
  "type": "FeatureCollection",
  "features": [
    { "type": "Feature", "properties": { "name": "City Hall" }, "geometry": { "type": "Point", "coordinates": [-0.1276, 51.5074] } },
    { "type": "Feature", "properties": { "name": "Route" }, "geometry": { "type": "LineString", "coordinates": [[-0.13, 51.50], [-0.12, 51.51], [-0.11, 51.52]] } },
    { "type": "Feature", "properties": { "name": "Zone" }, "geometry": { "type": "Polygon", "coordinates": [[[-0.14, 51.50], [-0.10, 51.50], [-0.10, 51.53], [-0.14, 51.53], [-0.14, 51.50]]] } }
  ]
}

Specifications

Format
GeoJSON
Features
3
Geometry Types
Point, LineString, Polygon
Crs
WGS84 (EPSG:4326)
Encoding
UTF-8

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

“GeoJSON Sample” is a deterministic Novus Examples fixture for Geospatial, JSON parsing. 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: UTF-8 · GeoJSON. 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("sample.geojson")
print(gdf.head())
print(gdf.crs)

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