Bottom-Up Square (Positive E and Nothing Else)¶
A plain filled 8x8 square whose only unusual property is a positive e term: row 0 is the southernmost row and the origin is the bottom-left corner. No nodata, no rotation. bottom_up_dem_small found defects in two separate libraries but also carries a nodata sentinel; this case removes it, so a consumer that flips the rows and a consumer that mishandles the sentinel cannot be confused for one another.
| Property | Value |
|---|---|
| Case ID | bottom_up_only_square |
| Category | raster |
| Format | GeoTIFF |
| CRS | EPSG:32633 |
| Location | Central Mediterranean (synthetic, UTM 33N) — 12.46°E, 45.13°N → 12.46°E, 45.13°N |
| Test tier | unit |
| Size class | tiny |
| Storage class | bundled |
| Redistributable | yes |
| Loader | rasterio |
| Status | validated |
Use this case¶
import pytest
@pytest.mark.geocase_case("bottom_up_only_square")
def test_bottom_up_only_square(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¶
Confirm that a consumer reads row order from the transform rather than assuming north-up, and orders bounds explicitly instead of trusting bounds.bottom to be the smaller northing -- with no second variable that could explain a failure instead.
Risk types covered¶
Expected behavior¶
| Assertion | Expected |
|---|---|
expect_loadable |
yes |
expect_crs |
yes |
expected_epsg |
32633 |
expect_nodata |
no |
expected_band_count |
1 |
expected_dtype |
float32 |
expected_shape |
[8, 8] |
expected_transform_signs |
positive_e |
Known answer¶
Computed from the actual bytes and gated against them. Grade your own output against these.
| Quantity | Value |
|---|---|
| NoData pixels | 0 |
| Bounds (case CRS) | [300000.0, 5000160.0, 300160.0, 5000000.0] |
Notes¶
Three rasters that each differ from a plain north-up square in exactly one respect. They exist because of an observation from the third external round:
rotated_two_islandswas the round's one genuine discovery — a rotated geotransform the reporter would not have constructed unprompted. But it bundles rotation with sparse islands with footprint generation. A failure with one possible cause is a better bug-finder than a case combining three risks.
| case | isolates | bundled counterpart |
|---|---|---|
rotated_only_square |
a rotated geotransform (30°) | rotated_two_islands |
nodata_only_dem_small |
one sentinel nodata value | — |
bottom_up_only_square |
a positive-e affine |
bottom_up_dem_small |
How to use them¶
They are controls, not coverage. Run a consumer against the control and its bundled counterpart together:
- fails on both → the defect is the isolated convention, and it is localised with no further argument;
- fails on the bundled case only → the interaction between variables is what breaks it, which is a different and more interesting bug;
- fails on the control only → the bundled case is masking the defect, which usually means a second variable is short-circuiting the code path.
What is deliberately absent¶
rotated_only_square and bottom_up_only_square carry no nodata at all —
src.nodata is None, not a declared sentinel that never appears. A sentinel
that is declared and never occurs is the "declared but ungated" shape that Plan
28 Phase 1 found six times in this very corpus, and it would reintroduce the
second variable these cases exist to remove.
nodata_only_dem_small's two sentinels sit in the interior (rows 3 and 4),
not on the border. A border sentinel is skipped by any consumer that crops
edges before computing statistics, which would make the case silently inert.
None of the three is a new from_origin baseline. Plans 37 §3.3 and 38 §4.5
both record that the corpus is already thick there and that no format baseline
has found a defect in three rounds.
The answers are shipped, not implied¶
All three declare expected_bounds, and rotated_only_square also declares
expected_pixel_world_pairs — the pixel↔world round trip. That is the oracle
round 4's reporter had to hand-roll before they could prove a bounds bug, and
it is the difference between a case that is a stimulus and one that is an
oracle. Every declared value is generated from the real bytes by
scripts/catalog_truth.py and gated by scripts/validate_case_content.py, so
none of them can drift away from the pixels.
Required capabilities¶
loadbounds-checktransform-inspection
Files¶
- Primary:
bottom_up_only_square.tif - Notes:
notes.md
Source and license¶
- Source: geocase-curated
- License: MIT
Tags¶
control georeferencing geotiff raster single-variable south-up transform
Related cases¶
- Bottom-Up DEM (Positive Y Resolution) --
bottom_up_dem_small - Rotated Bottom-Up DEM (Skew and Positive Y Resolution) --
rotated_bottom_up_small - Rotated Square (Rotation and Nothing Else) --
rotated_only_square - Nodata Only (One Sentinel, North-Up, Unrotated) --
nodata_only_dem_small - Pixel-Is-Area DEM --
pixel_is_area_dem_small