Skip to content
Novus Examples
shp240 B

Shapefile — Towns Geometry (.shp, 5 Point records)

The geometry half of a point shapefile: a 100-byte header carrying the shape type and bounding box, then five 20-byte Point records. The file is useless on its own — attributes live in the .dbf and the coordinate system in the .prj, which is the point of shipping the whole component set.

Preview — schema + first 5 rowsshp
recordshape typelongitudelatitude
1Point-12.48247.064
2Point-12.391547.112
3Point-12.55147.018
4Point-12.440246.9725
5Point-12.613547.0885
Record contents decoded from the little-endian doubles in the .shp.

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
1 (Point)
Records
5
Header Bytes
100
Record Content Bytes
20
Bbox
-12.6135,46.9725,-12.3915,47.112

Testing contract

Expected to pass
Scenario
Open the .shp with its sidecars present and read the five point geometries.
Expected result
Five points are returned in TOWNS order with coordinates matching the master territory exactly; the header bounding box equals the computed extent.

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 — Towns Geometry (.shp, 5 Point 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: 5 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.