Building Footprint Extraction and Regularization Through Utilization of a Distributed Computing System
(part of http://phil-lidar.uplb.edu.ph/)
##Installation
- Clone the repository:
git clone https://github.com/ivancheesecake/Bertud.git
- Create a working branch:
git checkout -b work_branch_miyah
###Install dependencies (This requires Internet connection)
- Add python and python scripts to
PATH
cd Bertud/dependencies
install.bat
- Open Pyro4 configuration file then add pickle to the entry "
self.SERIALIZERS_ACCEPTED
"
Sample location: "C:\Python27\ArcGIS10.2\Lib\site-packages\Pyro4-4.41-py2.7.egg\Pyro4\configuration.py"
self.SERIALIZERS_ACCEPTED = "serpent,marshal,json,pickle"
- Extract LAStools to
c:\lastools
. This is IMPORTANT because Bertud uses this path internally. - Acquire and enable LAStools license
###Master configuration
Edit config.json
.
Sample location: "C:\Users...\Bertud\config\config.json"
Options:
ip
- IP address of masterpythonPath
- Path of Python libraries and executablesdefaultInputFolder
- Where the laz files to process are locateddefaultOutputFolder
- Where the output are placed
Sample config.json
{ "ip":"10.0.3.115", "pythonPath":"C:/Python27/ArcGIS10.3/", "defaultInputFolder":"C:/bertud_inputs/", "defaultOutputFolder":"C:/bertud_outputs" }
###Slave configuration
Edit slave_config.json
.
Options:
dispatcherIP
- The IP address of the serverworkerID
- The statically assigned id of the slavetempFolder
- Path of temporary filesmaxAllowableCore
- Number of cores to usepythonPath
- Path of Python libraries and executables
Sample slave_config.json
{ "dispatcherIP":"10.0.3.115", "workerID":"1", "tempFolder":"C:/bertud_temp", "maxAllowableCore":"6", "pythonPath":"C:/Python27/ArcGIS10.3/" }
###Starting master/slave Open command line(s)
- To run the master:
runserver.bat
- To run slaves:
start bertud-slave-v2.py
###Dashboard
- On the master, access http://127.0.0.1:5000 in your browser (pref. Chrome)