GASFCA
Gaussian Two-Step Floating Catchment Area (Ga2SFCA) — a high-performance urban public resource accessibility analysis tool for territorial spatial planning, urban governance and public service equalization research.
Built on real road networks, Gaussian distance decay and Numba parallel acceleration, it provides an end-to-end automated pipeline:
Data preprocessing -> Road topology optimization -> Shortest path solving
-> Multi-threshold accessibility -> IDW raster generation -> Quantile visualization
Supports automatic adaptation of point / polygon data, and one-click output of vector (shp/gpkg/geojson), table (csv/xlsx), raster (tif) and thematic maps. Suitable for accessibility assessment of parks, healthcare, education, elderly care and other public resources.
Features
- ✅ Point / polygon auto-adaptation: polygons are projected, area-computed and converted to centroids automatically
- ✅ Real road-network distance: NetworKit ultra-fast shortest paths
- ✅ Numba parallel acceleration: far faster than manual GIS workflows
- ✅ Multi-threshold batch computation: e.g. 1000/1500/3000/5000 m
- ✅ Gaussian distance-decay model: close to real travel behavior
- ✅ IDW continuous accessibility raster generation
- ✅ Per-image independent quantile visualization: robust for skewed data
- ✅ Multi-format export: shp / gpkg / geojson / csv / xlsx
- ✅ xlsx multi-case merge: each run appended as one sheet (per case/category)
- ✅ Progress bars throughout the pipeline
Installation
pip install gasfca
Quick Start
from gasfca import run_gasfca
# Input data paths (any OGR-supported vector format)
supply_path = "supply.geojson"
demand_path = "demand.shp"
road_path = "road.gpkg"
run_gasfca(
supply_path=supply_path,
demand_path=demand_path,
road_path=road_path,
supply_field="value", # numeric field of the supply points
demand_field="value", # numeric field of the demand points
d0_list=[1000, 1500, 3000, 5000], # distance thresholds (meters)
target_crs=3857, # target projected CRS (metric units)
cell_size=100, # raster cell size (meters)
output_dir="result", # unified output directory
output_formats=("shp", "gpkg", "geojson", "csv", "xlsx"),
case_name=None, # None = auto timestamp; used as the Excel sheet name
generate_plots=True,
)
Output structure
result/
├── vector/accessibility.{shp,gpkg,geojson} # vector results with geometry
├── table/accessibility.csv # attribute table (no geometry)
├── table/accessibility.xlsx # multi-case merge: one sheet per run
├── raster/Ai_1000.tif, ... # IDW rasters
└── raster/quantile_plots/*.png # quantile visualizations
License
MIT
Metadata
Release files for gasfca 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gasfca-1.3.0.tar.gz | 13.0 kB | Without provenance | Details for gasfca-1.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gasfca-1.3.0-py3-none-any.whl | Python 3 | none | any | Details for gasfca-1.3.0-py3-none-any.whl |
Total release size: 24.8 kB
Release files / gasfca-1.3.0.tar.gz
| Download URL | gasfca-1.3.0.tar.gz |
|---|---|
| Size | 13.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dc3a2f6240c01619bf41603036c3962444ec1c91cce21d649d5daa9ded729161
|
|
BLAKE2b-256 checksum How to use checksums |
88e1d5ef898bd90064442a733b451e8678be9fead819524be427aacfea6cda34
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.0
|
Release files / gasfca-1.3.0-py3-none-any.whl
| Download URL | gasfca-1.3.0-py3-none-any.whl |
|---|---|
| Size | 11.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fa14f1818cbe8c6f88c1dbc3b5100cdfcf1721182c59722f7cd63ac80d0cc1ae
|
|
BLAKE2b-256 checksum How to use checksums |
f1c1cea1821bec0e0a573249f223e6066d52b2a324e3cd5aa35f9d9c979c1be6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.0
|
Security for gasfca 1.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.