This repository provides a complete Python-based toolkit for performing two types of geospatial analysis:
- Tourism Hotspot Analysis
- Service Gap Analysis
It works with spatial vector datasets such as .shp, .geojson, .gpkg, .json, .kml, and .gml. The toolkit uses clustering algorithms (KMeans and DBSCAN), spatial buffers, and raster heatmaps to extract geographic patterns and service coverage insights.
- Clusters tourism-related POIs using KMeans.
- Creates hotspot polygons via buffer and convex hull.
- Generates a raster heatmap using KDE.
- Outputs:
clustered_points.geojsontourism_hotspots.geojsontourism_heatmap.tiff
- Clusters service POIs (e.g., hospitals, schools) using DBSCAN.
- Buffers clusters to model service areas.
- Detects underserved regions within administrative boundaries.
- Outputs:
poi_clusters.geojsonservice_areas.geojsonwell_served_areas.geojsonunderserved_areas.geojson
- Scans
data/directory for spatial files. - Keyword-based auto detection for POIs and boundary layers.
- Separated logic for each analysis type.
- Common utilities for file operations and CLI orchestration.
git clone https://github.com/akash-suresh-kumar/Geospatial-Analysis.git
cd geospatial-analysispython -m venv iudx
source ./iudx/Scripts/activate # On Windowspip install -r requirements.txtAll output files are saved to the Output/ directory under analysis-specific subfolders.
Tourism Hotspot Outputs
clustered_points.geojsontourism_hotspots.geojsontourism_heatmap.tiff- Location:
Outputs/tourism_analysis/
Service Gap Analysis Outputs
poi_clusters.geojsonservice_areas.geojsonwell_served_areas.geojsonunderserved_areas.geojson- Location:
Outputs/service_gap_analysis/