Data format
GEOJSON Sample Files
GeoJSON (.geojson) files encode geospatial features and coordinate geometry in JSON. Use sample GeoJSON files to validate GIS imports, geometry parsing, and coordinate/schema compatibility across mapping tools.
3 files
All to 50KB
SHA256 verified
Manifest included
Quick facts
Files first
GEOJSON Sample Files — Download
Use cases
GEOJSON Testing Workflows
Feature Preview and Validation
Open Format GEOJSONBoundary and Polygon Review
Open Format GEOJSONCompare and decide
GEOJSON Format Comparisons
FAQ and reference
GEOJSON File FAQ
Checksum Verification
Use checksums to confirm file integrity after download.
shasum -a 256 your_file_name_here
# Compare output with SHA256 values listed above.
Where is the machine-readable manifest?
Use the manifest when you need stable names, SHA256 values, and URLs for automation.
Use in code — curl, Python, Node, wget
Copy any snippet directly into scripts, test suites, or CI pipelines. All URLs are stable and publicly accessible with no auth required.
# Download geojson_country_boundaries_sample.geojson
curl -L -o geojson_country_boundaries_sample.geojson \
https://samplefile.com/samples/download/data/geojson/geojson_country_boundaries_sample.geojson/
# Or fetch a random GEOJSON file
curl -s "https://samplefile.com/samples/api/random?format=geojson" | jq -r '.download_url'
# Download geojson_country_boundaries_sample.geojson
wget -O geojson_country_boundaries_sample.geojson \
https://samplefile.com/samples/download/data/geojson/geojson_country_boundaries_sample.geojson/
import requests
# Download a specific file
url = "https://samplefile.com/samples/download/data/geojson/geojson_country_boundaries_sample.geojson/"
resp = requests.get(url)
with open("geojson_country_boundaries_sample.geojson", "wb") as f:
f.write(resp.content)
# Or fetch a random GEOJSON file via API
meta = requests.get("https://samplefile.com/samples/api/random?format=geojson").json()
resp = requests.get(meta["download_url"])
with open(meta["name"], "wb") as f:
f.write(resp.content)
// Download a specific file
const fs = require("fs");
const https = require("https");
const url = "https://samplefile.com/samples/download/data/geojson/geojson_country_boundaries_sample.geojson/";
https.get(url, (res) => {
res.pipe(fs.createWriteStream("geojson_country_boundaries_sample.geojson"));
});
// Or fetch a random GEOJSON via the API
const meta = await fetch("https://samplefile.com/samples/api/random?format=geojson").then(r => r.json());
const file = await fetch(meta.download_url);
// use file.arrayBuffer(), file.body, etc.
# Random GEOJSON file (JSON response)
GET https://samplefile.com/samples/api/random?format=geojson
# All GEOJSON files
GET https://samplefile.com/samples/api/files?format=geojson
# Manifest with SHA256 checksums
GET https://samplefile.com/samples/data/geojson/manifest.json
# Response includes: name, size_bytes, mime_type, sha256, download_url
Validation Methodology
- Validate extension and MIME detection before processing.
- Benchmark performance with small and larger files.
- Test malformed-input handling and error messaging.
Fixture Matrix
Use the curated GEOJSON matrix to choose the right clean, edge-case, and broken fixtures for this format.
Open Matrix