Geospatial City Data & Machine Learning
Project description
GeoDataSim: Geospatial City Analysis (Phase 2)
GeoDataSim is a library for generating synthetic city data, simulating urban growth patterns, and performing geospatial analysis including clustering and feature engineering. Phase 2 focuses on advanced simulation patterns and World Bank data integration.
Installation
pip install geodatasim
Example Usage & Verification
Basic Usage
import geodatasim as gds
from geodatasim import City
# 1. Create City Objects
istanbul = City('Istanbul', population=15_840_900, lat=41.0082, lon=28.9784)
ankara = City('Ankara', population=5_663_322, lat=39.9334, lon=32.8597)
# 2. Calculate Distance
dist = istanbul.distance_to(ankara)
print(f"Distance {istanbul.name} -> {ankara.name}: {dist:.2f} km")
# 3. Simulate Growth (Year 2030)
future_pop = istanbul.simulate_population_growth(years=10, rate=0.015)
print(f"Est. Population 2030: {int(future_pop):,}")
Verified Output
Distance Istanbul -> Ankara: 351.48 km
Est. Population 2030: 18,383,968
Advanced Usage: Growth Simulation (Verified)
from geodatasim import City
cities_to_load = ['Berlin', 'Paris']
print(f"Simulating growth for {len(cities_to_load)} European cities:")
for name in cities_to_load:
city = City(name)
if city.population:
# 1.2% annual growth for 5 years
current = city.population
future = int(current * (1.012 ** 5))
print(f" {city.name}: {current:,} -> {future:,} (5 Years Growth)")
Verified Output:
Simulating growth for 2 European cities:
Berlin: 3,769,000 -> 4,000,632 (5 Years Growth)
Paris: 11,020,000 -> 11,697,260 (5 Years Growth)
Features
- Synthetic Data: Generate realistic city datasets.
- Clustering: K-Means integration for city grouping.
- Simulation: Urban growth models.
- Visualization: Radar charts, heatmaps, and geospatial plots.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file geodatasim-0.6.0.tar.gz.
File metadata
- Download URL: geodatasim-0.6.0.tar.gz
- Upload date:
- Size: 46.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cbc3a3c5e4ce5f9bd47490c28afa721aaa3e95010dade67da8ebdee9388c882a
|
|
| MD5 |
bbb2ebd17a1942a69c9e3e6a02ccce92
|
|
| BLAKE2b-256 |
ea35fed051c21fdf19a3c337bd360d5a4e7fef271d99fafe82adfade0a2a0594
|
File details
Details for the file geodatasim-0.6.0-py3-none-any.whl.
File metadata
- Download URL: geodatasim-0.6.0-py3-none-any.whl
- Upload date:
- Size: 57.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2963c38398d98edfdd4cf8514178a4121ac6318289eeea91ee0843a2c958db0
|
|
| MD5 |
cc4adf0c18fdf7cf9a1a57cb1f79a81e
|
|
| BLAKE2b-256 |
251ef999c5dd0da53114a5b903a0a8aacab501063f9437dde9d666904c2c6ac3
|