Setup for Network Analysis in ArcGIS Pro#
The BDT Network Analysis Functions require an additional, seperate license for the LMDB. Please contact the BDT team at bdt_support@esri.com if interested. This guide describes how to enable a notebook using BDT in Pro to use this data.
Prerequisites#
This guide assumes BDT is already installed and set up in your Pro environment. If this is not done see the Setup in Pro guide for more information.
Please be sure to obtain the file containing the LMDB from the BDT team.
This file should be stored somewhere on the same machine running Pro.
Enable Network Analysis in Pro#
Two additional spark configs are needed to run network analysis functions in Pro. These must be added to the cell in the notebook that starts the spark session. These configs are:
spark.bdt.lmdb.path- this should be set to the classpath of the LMDB file.spark.bdt.lmdb.map.size- this should be set to the size of the LMDB file in bytes. The recommended value for Pro/Windows is70135619584.
The cell starting the spark session should look similar to this:
from spark_esri import spark_start, spark_stop
## spark_stop() may throw an exception if there is not an existing spark session. In that case, comment out the below line.
spark_stop()
config = {
"spark.driver.memory":"4G",
"spark.kryoserializer.buffer.max":"2024",
"spark.jars": "C:\\Users\\%USERNAME%\\bdt3\\bdt-3.5.0-3.5.1-2.12.jar",
"spark.submit.pyFiles": "C:\\Users\\%USERNAME%\\bdt-3.5.0.zip",
"spark.bdt.lmdb.map.size": 70135619584,
"spark.bdt.lmdb.path": "C:\\...\\LMDB_<version>_<year>_<quarter>"
}
spark = spark_start(config=config)
Network analysis functions are now ready to be used in this notebook.