{"version":"1.0","type":"rich","title":"Stratified random sampling of GPKG files for use in MapAccuracy, with optional grouping division and bias","description":"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.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-b18a8ff2c869b17bfc3f839bfe11c3f5?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}