Polygon CSV WKT Baseline¶
vectorCSV_WKTPolygonEPSG:4326tinybundled
Canonical baseline polygon stored as CSV with WKT geometry column for cross-format comparison and format-specific loader behavior testing.
| Property | Value |
|---|---|
| Case ID | polygon_csv_wkt_baseline |
| Category | vector |
| Format | CSV_WKT |
| Geometry type | Polygon |
| CRS | EPSG:4326 |
| Location | Central Europe (synthetic) — 10.00°E, 50.00°N → 11.00°E, 51.00°N |
| Test tier | unit |
| Size class | tiny |
| Storage class | bundled |
| Redistributable | yes |
| Loader | geopandas |
| Status | validated |
Use this case¶
import pytest
@pytest.mark.geocase_case("polygon_csv_wkt_baseline")
def test_polygon_csv_wkt_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 polygon encoded as CSV with WKT 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 |
Polygon |
Notes¶
Purpose¶
Tests Polygon geometry loading from CSV with WKT geometry column.
Data¶
- Geometry:
POLYGON ((10 50, 11 50, 11 51, 10 51, 10 50)) - Attributes:
id= 1,name=polygon_csv_wkt_baseline - Feature count: 1
Validation¶
- Geometry type:
Polygon - CRS:
EPSG:4326, supplied bycase.yaml— the format stores none - Geometry equals
simple_valid_polygonundershapely.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_polygon), and generate_vector_fixtures.py --check fails on any drift.
Required capabilities¶
loadgeometry-validation
Files¶
Source and license¶
- Source: geocase-curated
- License: MIT
Tags¶
baseline cross_format_canonical csv format_comparison polygon valid vector wkt
Related cases¶
- MultiLineString CSV WKT Baseline --
multilinestring_csv_wkt_baseline - MultiPoint CSV WKT Baseline --
multipoint_csv_wkt_baseline - MultiPolygon CSV WKT Baseline --
multipolygon_csv_wkt_baseline - Point CSV WKT Baseline --
point_csv_wkt_baseline - Polygon WKT Baseline --
polygon_wkt_baseline