Skip to content

Rasterize Match WGS84 Polygon

vectorGeoJSONPolygonEPSG:4326tinybundled

A WGS84 polygon that must be reprojected to EPSG:32633 to align with its raster. Exercises the CRS mismatch that makes rasterization silently misalign.

Polygon geometry of rasterize_match_wgs84_polygon, rendered from the case's data
Polygon geometry, rendered from the case's actual geometry. Scale is normalized to the viewport and is not comparable between cases.
Property Value
Case ID rasterize_match_wgs84_polygon
Category vector
Format GeoJSON
Geometry type Polygon
CRS EPSG:4326
Location Central Europe (synthetic, UTM 33N) — 14.90°E, 50.58°N → 15.10°E, 50.70°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("rasterize_match_wgs84_polygon")
def test_rasterize_match_wgs84_polygon(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:

pip install "geocase[all]"

View GeoCase on PyPI.

What this case checks

Confirm that vector geometries in WGS84 can be reprojected to the raster grid CRS and successfully rasterized.

Risk types covered

Expected behavior

Assertion Expected
expect_loadable yes
expect_valid_geometry yes
expect_crs yes
expected_epsg 4326
expected_geometry_types Polygon

Notes

A WGS84 polygon that overlaps the bundled geotiff_utm_boundary raster after reprojection to EPSG:32633.

Required capabilities

  • load
  • reprojection
  • rasterization

Files

Browse this case on GitHub

Source and license

  • Source: geocase-curated
  • License: MIT

Tags

crs polygon rasterization reprojection vector