Skip to content
Novus Examples
shp428 B

Shapefile — Roads Geometry (.shp, 3 PolyLine records)

Three single-part PolyLine records, each carrying its own bounding box, a part index and a run of little-endian coordinate doubles. PolyLine and Polygon share this layout, which is why the shape-type byte in the header is the only thing that distinguishes an open line from a closed ring.

Preview — schema + first 3 rowsshp
recordshape typepartsvertices
1PolyLine14
2PolyLine13
3PolyLine13
Each record repeats its own bounding box before the vertex run.

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
3 (PolyLine)
Records
3
Parts Per Record
1
Total Vertices
10
Bbox
-12.551,46.9725,-12.3915,47.112

Testing contract

Expected to pass
Scenario
Read the three lines and compare their vertices with the master territory roads.
Expected result
Three lines of 4, 3 and 3 vertices load in ROADS order, matching the master GeoJSON coordinates exactly.

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 — Roads Geometry (.shp, 3 PolyLine records)” 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.