Skip to main content

Small utility library containing city provision metric used in other projects

Project description

Provisio

Small utility library containing city provision metric used in other projects

Base usage example

Use dongraphio to get city's Intermodal Graph and adjacency matrix between two geodataframes

pip install provisio

import pandas as pd
import geopandas as gpd
from provisio import *
buildings: gpd.GeoDataFrame = gpd.read_file("test_data/buildings.geojson").rename(
        columns={"your_demand_value_column": "demand"}
    )
services: gpd.GeoDataFrame = gpd.read_file("services.geojson")

matrix = pd.read_csv("test_data/matrix.csv")

prvs_buildings, prvs_services, prvs_links = get_service_provision(
    services=services, demanded_buildings=buildings, adjacency_matrix=matrix, threshold=10
)
prvs_buildings.to_file("result_buildings.geojson")
prvs_services.to_file("result_services.geojson")
prvs_links.to_file("result_links.geojson")

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

provisio-0.1.7.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

provisio-0.1.7-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file provisio-0.1.7.tar.gz.

File metadata

  • Download URL: provisio-0.1.7.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.1 CPython/3.10.11 Windows/10

File hashes

Hashes for provisio-0.1.7.tar.gz
Algorithm Hash digest
SHA256 16a0c7e7966f6f0ca0af865bc5d7acf3c8010b51ba2f350462ab518496a4a866
MD5 325057081f800835f1228e98ede7cd33
BLAKE2b-256 c1a6a67b6ea487a4eb99fd74a0ece6872b0322aa569b3567a3c75f3cea08a787

See more details on using hashes here.

File details

Details for the file provisio-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: provisio-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.1 CPython/3.10.11 Windows/10

File hashes

Hashes for provisio-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 a48ca7f91fd984718177dbeb1fe2ee7ac02d865f0f7ea8a0e5c8fc656156fc37
MD5 9ffedf38a240ea04cbe192b49c213c7b
BLAKE2b-256 4d3c5d3247642f676c394acc98e7985a6a1c1b6da45a7c712c18c2adedac326d

See more details on using hashes here.

Supported by

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