Add Bulawayo suburb boundary generation scripts#71
Merged
roy-bme merged 1 commit intoMay 11, 2026
Merged
Conversation
…lygons - Fetch all 35 zones from Supabase and identify non-suburb zones (CBD Core, CBD/Sauce Town, etc.) - Create rectangular polygon boundaries for 30 standard suburbs based on their coordinates - Skip 5 non-suburb zones (commercial/transit areas) to keep placeholders - Apply migration to update boundary_geojson column in zones table - Include Python scripts for boundary generation (for future refinement) Zone boundaries now more accurately represent actual suburb areas on the Indaba map. https://claude.ai/code/session_013TGgkurXskHqWinMTnTLKS
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
88deed3
into
claude/blackmass-corporate-website-caGTR
3 of 4 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add Python scripts to generate and manage GeoJSON boundary polygons for Bulawayo suburbs. These scripts provide multiple approaches to populate zone boundaries in the database, from realistic hardcoded coordinates to external API integrations.
Key Changes
create_bulawayo_boundaries.py: Main script that generates realistic GeoJSON polygon boundaries for 28 Bulawayo suburbs based on known geographic coordinates. Each suburb is defined by corner coordinates (SW, SE, NE, NW) that create rectangular boundary polygons. Generates SQL UPDATE statements for the zones table.
create_zone_boundaries.py: Alternative approach that creates approximate rectangular polygons around center coordinates for all zones. Provides a simpler fallback method when precise boundaries aren't available.
update_zone_boundaries.py: Integration script that queries the Nominatim/OpenStreetMap API to fetch real boundary data for suburbs. Includes rate limiting and error handling for API requests.
fetch_boundaries_overpass.py: Experimental script for querying the Overpass API as an alternative data source for suburb boundaries.
zone_updates.sql: Generated SQL file containing UPDATE statements to populate the
boundary_geojsoncolumn in the zones table with polygon geometries.Implementation Details
https://claude.ai/code/session_013TGgkurXskHqWinMTnTLKS