Geospatial City Data & Machine Learning
Project description
GeoDataSim: Geospatial City Analysis
GeoDataSim is a library for generating synthetic city data, simulating urban growth patterns, and performing geospatial analysis including clustering and feature engineering.
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
geodatasim-0.5.0.tar.gz
(46.5 kB
view details)
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.5.0.tar.gz.
File metadata
- Download URL: geodatasim-0.5.0.tar.gz
- Upload date:
- Size: 46.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a442714d1d9a05f1614f26c7b0470d8313b6d1107903bc470f8c0740586c684
|
|
| MD5 |
ec06eca2589ab89202d786db7022d749
|
|
| BLAKE2b-256 |
bfd03454e429df4bc961bfeaef89e366260dc8e00e1037fcca4a52c5fba6237f
|
File details
Details for the file geodatasim-0.5.0-py3-none-any.whl.
File metadata
- Download URL: geodatasim-0.5.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 |
da0387972adca00737675a680942c5f51d2bd44081f31c268de3e6007f495cb6
|
|
| MD5 |
18a334fba97e28317bedbff8b57a5ac4
|
|
| BLAKE2b-256 |
e0b098c5e445fcfd1a53ff9ef2d948008306400d3e57ca1f50e75ba0e6c209bb
|