Skip to main content

The Urban Toolkit: A Grammar-based Framework for Urban Visual Analytics

Project description

The Urban Toolkit (UTK)

While cities around the world are looking for smart ways to channel new advances in data collection, management, and analysis to address their day-to-day problems, the complex nature of urban issues and the overwhelming amount of available structured and unstructured data have posed significant challenges in translating these efforts into actionable insights. In our paper The Urban Toolkit: A Grammar-based Framework for Urban Visual Analytics, we present the Urban Toolkit, a flexible and extensible visualization framework that enables the easy authoring of web-based visualizations through a new high-level grammar specifically built with common urban use cases in mind. In order to facilitate the integration and visualization of different urban data, we also propose the concept of knots to merge thematic and physical urban layers. This repository presents the source code of the framework as well as documentation containing a gallery of examples, an in-depth description of the grammar and the steps needed to run the code.

For a quick getting starter document and tutorials, visit: urbantk.org


System Requirements

Running

  • docker-compose up (at the root of the project)

Architecture

UTK follows a microsservice architecture where each functionality is offered by one container. Please refer to the README.md of each service for more details:

Configuration

All data loaded into the system must be under data/ (at the root of the project).

You can modify the DATA_FOLDER environment variable on docker-compose.yml to change the loaded folder.

Grammar

For more details on the grammar refer to grammar.md.


Example Gallery

Each example can be downloaded and executed off the shelf, but jupyter notebooks and the grammar specifications are also provided if one wants to build them from "scratch".

The jupyter notebooks must be placed inside jupyterAPI. Please refer to jupyterAPI for more details.

(1) Loading downtown Manhattan

Description: loading water, parks, street network and buildings for downtown Manhattan. Also raytracing is used for shadow simulation.

Data: download or jupyter notebook

Grammar: specification

To visualize the shadow data it is necessary to change the renderStyle of buildings.json to SMOOTH_COLOR_MAP_TEX and renderStyle of surface.json to SMOOTH_COLOR_MAP

(2) What if analysis downtown Chicago

Description" loading water, parks, street network, and buildings for downtown Chicago. Also, raytracing is used for shadow simulation and for building a what-if scenario considering the removal of two buildings.

Data download or jupyter notebook

Grammar: specification

To visualize the shadow data it is necessary to change the renderStyle of buildings.json and buildings_m.json to SMOOTH_COLOR_MAP_TEX and renderStyle of surface.json to SMOOTH_COLOR_MAP

(3) Multiple datasets in downtown NYC

Description" loading water, parks, street network, and buildings for downtown NYC. Using multiple datasets aggregated by zip code to create a parallel coordinates chart.

Data download or jupyter notebook

Grammar: specification

To visualize the shadow data it is necessary to change the renderStyle of buildings.json and buildings_m.json to SMOOTH_COLOR_MAP_TEX and renderStyle of surface.json to SMOOTH_COLOR_MAP

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

urbantk-0.0.1.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

urbantk-0.0.1-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

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