{"version":"1.0","type":"rich","title":"Order polygons by size/height","description":"This example arranges OpenStreetMap polygon features—such as buildings or land parcels—into a tidy, space-filling grid ordered by each shape’s vertical height. A recursive SQL query computes cumulative row offsets, placing taller polygons first and wrapping shorter ones to new rows while preserving their original geometries. It then translates each polygon to its grid position and reprojects the result to Web Mercator using PostGIS functions like `ST_Translate` and `ST_Transform`. The final output is a compact, non-overlapping layout that reveals size distribution patterns at a glance.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-3875882?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}