Code for the paper: Urban Data Integration Using Proximity Relationship Learning for Design, Management, and Operations of Sustainable Urban Systems.
This file contains the functions that are called by the relationship_learning.py. Most of the functions in this file are supporting the geometric and relationship learning algorithms written in the main code. This file shold be present in the same directory as
This file contains code for preprosessing the data and learning relationships. First the data from the element files( .xlsx) is loaded into memory and then the relationship learning algorithms are executed in the following order:
-between polygon and linear elements
-between polygon and polygon elements
-between polygon and point elements
-between point and linear elements
-between point and point elements
-between linear and linear elements
The code only works with Python 2.x. It does not work with Python 3.x
This file contains the code to find the minimum-area bounding box of a set of 2D points. This is a third-party supporting file which was not developed by the authors. Please see the file for more information.
This file contains the code to compute the convex hull of a set of 2D points. This is a third-party supporting file which was not developed by the authors. Please see the file for more information.
The file contains the addional packages which are needed to run the code. The use can use use this file to automatically install them.
The Data folder contains the data files on which we test our framework. The folder contains the following 4 sub-folders:
-Polygon --> contains all polygon element files
-Linear --> contains all linear element files
-Point --> contains all point element files
-Block --> contains one file each (containing segments of corresponding linear elements) for all linear element files
Files contained in the sub-folders are extracted from Palo Alto open dataset
Links to the respective datasets:
Buildings
Trees
Streets & Blocks
The Results after running the program are stored in the "Result" folder in working directory which as a sub-folder structure similar to the Data folder
The program can only read .xlsx files right now.