Skip to content
Novus Examples
geojson1.3 KB

TopoJSON — Decoded GeoJSON Reference for the Shared-Arc File

Exactly what the shared-arc topology decodes to: two polygons whose rings are stitched from arcs 0, 1 and 2 with arc 0 reversed for the eastern parcel. Because that file is unquantized, this comparison is exact rather than tolerance-based.

Preview — first 50 linesgeojson
{
  "type": "FeatureCollection",
  "bbox": [
    -12.49,
    47.06,
    -12.458,
    47.069
  ],
  "features": [
    {
      "type": "Feature",
      "id": "P-010",
      "properties": {
        "name": "West Field",
        "areaHa": 1.31
      },
      "geometry": {
        "type": "Polygon",
        "coordinates": [
          [
            [
              -12.474,
              47.069
            ],
            [
              -12.474,
              47.06
            ],
            [
              -12.49,
              47.06
            ],
            [
              -12.49,
              47.069
            ],
            [
              -12.474,
              47.069
            ]
          ]
        ]
      }
    },
    {
      "type": "Feature",
      "id": "P-011",
      "properties": {
        "name": "East Field",
        "areaHa": 1.31
82 lines total — download for the full file.

Specifications

Format
GeoJSON (RFC 7946)
Crs
WGS 84 (EPSG:4326)
Encoding
UTF-8
Line Endings
LF
Features
2
Geometry Type
Polygon
Decoded From
topojson-shared-arcs.topojson
Quantization
none
Bbox
-12.49,47.06,-12.458,47.069

Testing contract

Reference control
Scenario
Decode topojson-shared-arcs.topojson and compare it with this file position by position.
Expected result
Every coordinate matches exactly; any difference is a decoder bug rather than a rounding artefact.

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

“TopoJSON — Decoded GeoJSON Reference for the Shared-Arc File” is a deterministic Novus Examples fixture for Geospatial, Conversion testing, 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 · LF · GeoJSON (RFC 7946). 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.

Geospatial fixtures publish one invented territory across formats, with the coordinate reference system and feature counts documented in specs. Convert or reproject and diff against the twin in the same group; edge-case geometries state exactly which assumption they are built to break.

Code examples

import geopandas as gpd

gdf = gpd.read_file("topojson-decoded-twin.geojson")
print(gdf.head())
print(gdf.crs)

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