Land Cover Small¶
A categorical land-cover raster where 0 is NoData, not a class. Resampling or averaging categorical values silently invents classes that do not exist.
| Property | Value |
|---|---|
| Case ID | landcover_small |
| Category | raster |
| Format | GeoTIFF |
| CRS | EPSG:32633 |
| Location | Southern Italy / Sicily (synthetic, UTM 33N) — 15.00°E, 40.65°N → 15.00°E, 40.65°N |
| Test tier | integration |
| Size class | tiny |
| Storage class | bundled |
| Redistributable | yes |
| Loader | rasterio |
| Status | validated |
Use this case¶
import pytest
@pytest.mark.geocase_case("landcover_small")
def test_landcover_small(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 GeoCase preserves a categorical land-cover raster and its colormap. Every pixel is classified and the raster declares no NoData, because 0 doubling as both a class and a sentinel is a distinct risk that belongs in a case of its own rather than in a silent declaration here. That case is landcover_ambiguous_zero_small: the same scene with the ambiguity put back, so the pair isolates the collision (Plan 28, Plan 32).
Risk types covered¶
scaling/category_misreadscaling/colormap_dropped
Expected behavior¶
| Assertion | Expected |
|---|---|
expect_loadable |
yes |
expect_crs |
yes |
expected_epsg |
32633 |
expected_band_count |
1 |
expected_dtype |
uint8 |
expected_shape |
[16, 16] |
expected_compression |
deflate |
expected_band_names |
landcover |
expected_colormap_present |
yes |
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) | [500000.0, 4499840.0, 500160.0, 4500000.0] |
Known consumer divergences¶
Disagreements already investigated on this case. If your reader reproduces one of these, it is catalogued — not a new finding.
titiler — titiler 0.24 / rio-tiler 8.x, GDAL 3.12.2
/preview.npy and /preview.tif return the dataset's colormap applied as RGB rather than the class codes, so the categorical values are unrecoverable from the response. Applies equally to landcover_ambiguous_zero_small.
Required capabilities¶
loadcolormap-check
Files¶
- Primary:
landcover_small.tif
Source and license¶
- Source: geocase-synthetic
- License: MIT
Tags¶
categorical delivery:single-file geography:utm geotiff landcover product:landcover raster
Related cases¶
- Land Cover With Ambiguous Zero --
landcover_ambiguous_zero_small - DEM NaN NoData Small --
dem_nan_nodata_small - DEM Small --
dem_small - Multispectral Sentinel-2-like Small --
multispectral_s2_like_small - NDVI Scaled Int16 Small --
ndvi_scaled_int16_small