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
- docker and docker-compose (installation guide)
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
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
Built Distribution
File details
Details for the file urbantk-0.0.1.tar.gz
.
File metadata
- Download URL: urbantk-0.0.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e015921d8bc18727ebcd0938c9c10dfa2dcf5d989bd7e7c7c26075b5e6e139d2 |
|
MD5 | bd418bc485b2dd41e7ef3f9d031b8751 |
|
BLAKE2b-256 | ea662f1254ee52e6f0764bd65d618d7079b5a77849a837c4dec76f1c32333b27 |
File details
Details for the file urbantk-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: urbantk-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdf40948d105946e03ace32bc829fe54637bd29f85a26823d4703a99960d5e4a |
|
MD5 | ffb1683cf556dc2deacae2edde90d4ec |
|
BLAKE2b-256 | 3f9105811f9a3d10dcdc4ea4f66079fe6fe5504ebad66008229d5b2cd03b1fee |