LineString WKB Baseline¶
vectorWKBLineStringEPSG:4326tinybundled
Canonical baseline linestring stored as binary WKB file for cross-format comparison and format-specific loader behavior testing.
| Property | Value |
|---|---|
| Case ID | linestring_wkb_baseline |
| Category | vector |
| Format | WKB |
| Geometry type | LineString |
| CRS | EPSG:4326 |
| Location | Patagonia, Southern Andes (synthetic) — 72.50°W, 50.90°S → 71.50°W, 50.60°S |
| Test tier | unit |
| Size class | tiny |
| Storage class | bundled |
| Redistributable | yes |
| Loader | geopandas |
| Status | validated |
Use this case¶
import pytest
@pytest.mark.geocase_case("linestring_wkb_baseline")
def test_linestring_wkb_baseline(geocase_case) -> None:
data = geocase_case.load()
assert data is not None
Use GeoCase in your tests¶
Install the complete set of vector, raster, and NetCDF dependencies:
What this case checks¶
Provide a canonical linestring encoded as WKB so format-specific loader behavior can be compared directly against the GeoJSON baseline.
Expected behavior¶
| Assertion | Expected |
|---|---|
expect_loadable |
yes |
expect_valid_geometry |
yes |
expect_crs |
no |
expected_geometry_types |
LineString |
required_drivers |
none — no OGR driver opens this format (use shapely) |
Notes¶
Purpose¶
Tests LineString geometry loading from binary WKB file.
Data¶
- Geometry:
LINESTRING (10 50, 10.5 50.3, 11 50.1) - Attributes: none. The format has no attribute slot;
VectorCase.load()synthesizes a singlename=linestring_wkb_baselinerow. - Feature count: 1
Validation¶
- Geometry type:
LineString - CRS:
EPSG:4326, supplied bycase.yaml— the format stores none - Geometry equals
simple_valid_linestringundershapely.normalize, which is howtests/unit/test_cross_format_canonical.pycompares them. The comparison is winding-insensitive by necessity: the Shapefile specification mandates the opposite ring orientation from RFC 7946, and OGR rewrites winding on write. Orientation itself is asserted byshapefile_ring_orientation.
Generation¶
Generated by scripts/generate_vector_fixtures.py — do not hand-edit. The
geometry is derived from params.canonical_source_case_id
(simple_valid_linestring), and generate_vector_fixtures.py --check fails on any drift.
Required capabilities¶
loadgeometry-validation
Files¶
- Primary:
geometry.wkb - Notes:
notes.md
Source and license¶
- Source: geocase-curated
- License: MIT
Tags¶
baseline cross_format_canonical format_comparison linestring valid vector wkb
Related cases¶
- LineString CSV_WKT Baseline --
linestring_csv_wkt_baseline - LineString FlatGeobuf Baseline --
linestring_flatgeobuf_baseline - LineString GeoArrow Baseline --
linestring_geoarrow_baseline - LineString GeoPackage Baseline --
linestring_geopackage_baseline - LineString GML Baseline --
linestring_gml_baseline