-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainModule.py
30 lines (23 loc) · 996 Bytes
/
MainModule.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
'''
__author__ = "Simon Geigenberger"
__copyright__ = "Copyright 2017, Esri Deutschland GmbH"
__license__ = "Apache-2.0"
__version__ = "1.0"
__email__ = "[email protected]"
Improvised for accessibility cloud by Ehtesham Hasnain
This module is used to set up the configuration data and call the functions in the GetAcsCldData and DataToAGO modules.
'''
import ReadAGOLConfig
import GetAcsCldData
import ReadAcsCldConfig
import DataToAGO
dictAGOLConfig = ReadAGOLConfig.readAGOLConfig()
print("ArcGIS Online / Portal configuration read in.")
dictAcsCldConfig = ReadAcsCldConfig.readAcsCldConfig()
print("Accessibility cloud configuration read in")
#The accessibility cloud data is loaded
gacd = GetAcsCldData.run(dictAcsCldConfig)
print("Accessibility cloud data loaded")
#The data of the data frame with the OSM data is loaded as a Feature Collection to the ArcGIS Online or Portal account.
dta = DataToAGO.run(dictAGOLConfig, gacd)
print("Upload to ArcGIS Online / Portal finished.")