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

Uploaded Source

Built Distribution

provisio-0.1.4-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: provisio-0.1.4.tar.gz
  • Upload date:
  • Size: 6.1 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.4.tar.gz
Algorithm Hash digest
SHA256 99ccc3875f7a396211c2de0223b1f725aadc2b5dd904f33bd134b8db9452e504
MD5 195d9d884ff4c34c3ec91952437b9bdc
BLAKE2b-256 6701c25a067a314b78aca4a533c031ec8c425c3287be063c3cb6c8481832815b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: provisio-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 7.2 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 cb215ba6260a3aa9a976a8b5674ecfc235db6ae9c496364f8d1db2796dd16e54
MD5 4b18638c7917891cc721cc75b14a13d3
BLAKE2b-256 c37c39fed70848977f6df2ee38441999f6b2a9a111c9cb6a38c838a60d16a547

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