Skip to main content

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


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.4.5.tar.gz (46.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

geodatasim-0.4.5-py3-none-any.whl (57.1 kB view details)

Uploaded Python 3

File details

Details for the file geodatasim-0.4.5.tar.gz.

File metadata

  • Download URL: geodatasim-0.4.5.tar.gz
  • Upload date:
  • Size: 46.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for geodatasim-0.4.5.tar.gz
Algorithm Hash digest
SHA256 89028a5eadd2e557e7740ceb4d6b0f0c2687023f550964d08b538a390e5ee4ef
MD5 d25097f2d4442aa8bd5ec278a7e178b9
BLAKE2b-256 cf219ac2538d68199b28aded85e24111fc672f4fe3c94169fb84e1662c805772

See more details on using hashes here.

File details

Details for the file geodatasim-0.4.5-py3-none-any.whl.

File metadata

  • Download URL: geodatasim-0.4.5-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.14.0

File hashes

Hashes for geodatasim-0.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d800a507350c18b7917f00f838e96466259de9fd733cd4ebe16b0d4d882fffdd
MD5 19494bdd18a689435b3d2e5c94c79dcd
BLAKE2b-256 8669da42e4a4740d3ea674aecc6757db878a97df19e3127c7ae0b4f27a7847c6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page