Skip to content
Novus Examples
shp592 B

Shapefile — Parcels Geometry (.shp, Polygon with a hole)

Three Polygon records, one of which has two rings: the Mill Court parcel and its courtyard. Shapefile winds rings the opposite way to GeoJSON — exterior clockwise, holes anticlockwise — and it has no explicit hole marker, so winding is the only signal a reader has.

Preview — schema + first 3 rowsshp
recordshape typeringsvertices
1Polygon15
2Polygon210
3Polygon15
Record 2 carries two rings; the second is the courtyard hole.

Specifications

Format
Esri shapefile component
Crs
WGS 84 (EPSG:4326)
Byte Order
mixed — big-endian headers, little-endian records
Sidecar Set
.shp/.shx/.dbf/.prj/.cpg
Shape Type
5 (Polygon)
Records
3
Multi Part Records
1
Total Rings
4
Ring Winding
exterior clockwise, holes anticlockwise
Bbox
-12.56,47.01,-12.452,47.069

Testing contract

Expected to pass
Scenario
Convert the polygons to GeoJSON and check both ring order and winding.
Expected result
The Mill Court record yields one exterior and one interior ring; converting to GeoJSON reverses both windings so the exterior becomes counter-clockwise.

What is a .shp file?

The .shp file is the geometry component of an Esri shapefile. It stores a fixed 100-byte header followed by variable-length records, each holding one point, polyline, polygon, or multipoint feature as raw little-endian doubles. It is never usable alone: a shapefile is a set of sidecar files, minimally .shp with a .shx index and a .dbf attribute table, and usually a .prj holding the coordinate reference system.

How to use this file

Use an example .shp file — together with its sidecars — to test GIS readers and converters, checking ring orientation for polygons with holes, the bounding box in the header, and that record counts agree with the .shx index and .dbf table.

How to use this file for testing

“Shapefile — Parcels Geometry (.shp, Polygon with a hole)” is a deterministic Novus Examples fixture for Geospatial, Serialization testing, 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: 3 records · Esri shapefile component. 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.