Use restriction attributes relevant to trucking Output_layer_file = os.path.join(output_dir, layer_name + ".lyrx") Wind_farm = os.path.join(input_gdb, "Analysis", "WindFarm") Seaport = os.path.join(input_gdb, "Analysis", "Port") "Length Restriction", "National STAA and Locally Preferred Routes"] Restrictions = ["Driving a Truck", "Height Restriction", "Oneway", Network = os.path.join(input_gdb, "Transportation", "Streets_ND") #The NA layer's data will be saved to the workspace specified hereĮnv.workspace = os.path.join(output_dir, "Output.gdb") Anylist update license#Raise arcpy.ExecuteError("Network Analyst Extension license is not available.") If arcpy.CheckExtension("network") = "Available": Fail if the Network Analyst license is not available. #Check out Network Analyst license if available. # Requirements: Network Analyst Extension # parameters to find a route suitable for transporting a large # Description: Use the network dataset's length and height restriction attribute # Name: UpdateAnalysisLayerAttributeParameter_Workflow.py Negative numbers prohibit restricted elements. Numeric values between zero and one cause restricted elements to be preferred the smaller the number, the more restricted elements are preferred. Numeric values that are greater than one cause restricted elements to be avoided the larger the number, the more the elements are avoided. Furthermore, the degree to which network elements are avoided or preferred can be defined by choosing HIGH, MEDIUM, or LOW keywords. The string keyword or the numeric value determines whether the restrictionĪttribute prohibits, avoids, or prefers the network elements it isĪssociated with. If the attribute parameter has a restriction usage type, the value can be specified as a string keyword or a numeric value. If the value is not specified, then the attribute parameter value is set to Null. It can be a string, number, date, or Boolean (True, False). The value that will be set for the attribute parameter.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |