Skip to main content
100%

Stratified random sampling of GPKG files for use in MapAccuracy, with optional grouping division and bias

✓ Published0🌍 Public
Aalpha-beta-soup
Last edited May 19, 2025
Created on Apr 2, 2023

This example demonstrates a stratified random sampling workflow for preparing GeoPackage (GPKG) vector data for MapAccuracy validation, using `geopandas` to read and explode geometries, then applying per-class sample sizing with finite population correction, optional area-based weighting with fractional power transforms, and optional grouping into numbered sample groups. It uses `pandas` for data manipulation and NumPy for statistical calculations, with the final output written as a GPKG containing mapped, truth, checked, and comment fields.

AI-generated description

Similar vizzes