forked from Esri/large-network-analysis-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
od_config.py
41 lines (36 loc) · 1.98 KB
/
od_config.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
31
32
33
34
35
36
37
38
39
40
41
"""Defines OD Cost matrix solver object properties that are not specified
in the tool dialog.
A list of OD cost matrix solver properties is documented here:
https://pro.arcgis.com/en/pro-app/latest/arcpy/network-analyst/odcostmatrix.htm
You can include any of them in the dictionary in this file, and the tool will
use them. However, travelMode, timeUnits, distanceUnits, defaultImpedanceCutoff,
and defaultDestinationCount will be ignored because they are specified in the
tool dialog.
Copyright 2022 Esri
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import arcpy
# These properties are set by the tool dialog or can be specified as command line arguments. Do not set the values for
# these properties in the OD_PROPS dictionary below because they will be ignored.
OD_PROPS_SET_BY_TOOL = ["travelMode", "timeUnits", "distanceUnits", "defaultImpedanceCutoff", "defaultDestinationCount"]
# You can customize these properties to your needs, and the parallel OD cost matrix calculations will use them.
OD_PROPS = {
"accumulateAttributeNames": [],
"allowSaveLayerFile": False,
"ignoreInvalidLocations": True,
"lineShapeType": arcpy.nax.LineShapeType.NoLine,
"overrides": "",
# "searchQuery": [], # This parameter is very network specific. Only uncomment if you are using it.
"searchTolerance": 5000,
"searchToleranceUnits": arcpy.nax.DistanceUnits.Meters,
"timeOfDay": None,
"timeZone": arcpy.nax.TimeZoneUsage.LocalTimeAtLocations,
}