Skip to content
Novus Examples
dbf309 B

Shapefile — Roads Attributes (.dbf with a decimal field)

The road attribute table, including a numeric field declared with two decimal places. DBF stores numbers as right-justified ASCII, so the declared width and decimal count are the only thing that says 9.40 is not 940.

Preview — schema + first 3 rowsdbf
CODENAMECLASSLENGTH_KM
R1Coast Roadprimary9.4
R2Ridge Waysecondary8.1
R3Ninepin Lanetrack10.6
LENGTH_KM is stored as ASCII text with two declared decimal places.

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
Records
3
Fields
4
Field Names
CODE, NAME, CLASS, LENGTH_KM
Field Types
C(4), C(24), C(12), N(8,2)
Decimal Places
2
Date Stamp
2026-01-01 (fixed for reproducibility)

Testing contract

Expected to pass
Scenario
Read LENGTH_KM and check the parsed values against the declared decimal count.
Expected result
Lengths come back as 9.40, 8.10 and 10.60 — the field's declared two decimal places are applied rather than the digits being read as integers.

What is a .dbf file?

A dBASE table (.dbf) is a legacy binary tabular format with a fixed-width header describing columns (name, type, length) followed by fixed-length records. It persists today as the attribute table of GIS shapefiles and in legacy database exchange.

How to use this file

Use an example .dbf file to test dBASE/xBase readers, shapefile attribute parsing, and DBF-to-CSV conversion.

How to use this file for testing

“Shapefile — Roads Attributes (.dbf with a decimal field)” is a deterministic Novus Examples fixture for Geospatial, Data import, Serialization 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 · 4 fields · 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.