Skip to content
Novus Examples
prj145 B

Shapefile — Projection Sidecar (.prj, WGS 84)

The one-line WKT that tells a reader what the .shp coordinates mean. Esri's flavour uses D_WGS_1984 and GCS_WGS_1984 rather than the OGC names and carries no EPSG authority code, so identifying it means matching the datum and spheroid rather than reading an ID.

Preview — first 1 linesprj
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]

Specifications

Format
OGC WKT 1 (Esri flavour)
Crs
WGS 84 geographic
Byte Order
mixed — big-endian headers, little-endian records
Sidecar Set
.shp/.shx/.dbf/.prj/.cpg
Epsg
4326
Trailing Newline
false
Single Line
true

Testing contract

Expected to pass
Scenario
Detect the coordinate reference system from the sidecar without an EPSG code to read.
Expected result
The CRS is identified as WGS 84 geographic (EPSG:4326) from the datum and spheroid parameters, not from an authority code — there is none in the file.

What is a .prj file?

A .prj file is the coordinate-reference-system sidecar of an Esri shapefile. It contains a single line of Well-Known Text describing the CRS: for a projected system, the projection method, its parameters, the linear unit, and the geographic system it is based on; for a geographic system, the datum, spheroid, prime meridian, and angular unit. Without it a shapefile's coordinates are just numbers.

How to use this file

Use an example .prj file to test CRS parsers and reprojection pipelines, checking that a WKT definition is matched to the right EPSG code and that the axis order and units are honoured rather than assumed.

How to use this file for testing

“Shapefile — Projection Sidecar (.prj, WGS 84)” is a deterministic Novus Examples fixture for Geospatial, Conversion testing, Metadata 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: OGC WKT 1 (Esri flavour). 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.

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