# Import system modules import sys, string, os, arcgisscripting # Create the Geoprocessor object gp = arcgisscripting.create(9.3) # Load required toolboxes... gp.CheckOutExtension("Business") gp.AddToolbox("C:/Program Files/ArcGIS/ArcToolbox/Toolboxes/Business Analyst Tools.tbx") # Script arguments... for i in range(0,3): print i s = str(i) Input_Store_SHP_File = "H:\\FINANCE\\Analysis\\ESRI\\Sabita\\NewModel\\Test\\Retailers_"+s+".shp" # provide a default value if unspecified print Input_Store_SHP_File Enter_Drive_Times = "3" # provide a default value if unspecified Select_Drive_Time_Polygon_Output_Path = "H:\\FINANCE\\Analysis\\ESRI\\Sabita\\NewModel\\Test\\Result\\Retailers_"+s+".shp" # provide a default value if unspecified # Local variables... Output_Traversed_Streets_Feature_Class = "" # Process: 1 to 20 min Drive Time... #tempEnvironment0 = gp.scratchWorkspace gp.scratchWorkspace = "H:\\FINANCE\\Analysis\\ESRI\\Sabita\\NewModel\\Test\\" gp.DriveTime_ba(Input_Store_SHP_File, "COMPID", "ALL", Enter_Drive_Times, "Minutes", Select_Drive_Time_Polygon_Output_Path, "", "", "false", "false", "false", "true", "false", "false", Output_Traversed_Streets_Feature_Class) #gp.scratchWorkspace = tempEnvironment0
# --------------------------------------------------------------------------- # TestDT.py # Created on: Mon Jun 21 2010 01:31:26 PM # (generated by ArcGIS/ModelBuilder) # Usage: TestDT <Input_Store_SHP_File> <Enter_Drive_Times> <Select_Drive_Time_Polygon_Output_Path> # --------------------------------------------------------------------------- # Import system modules import sys, string, os, arcgisscripting # Create the Geoprocessor object gp = arcgisscripting.create(9.3) # Load required toolboxes... gp.CheckOutExtension("Business") gp.AddToolbox("C:/Program Files/ArcGIS/ArcToolbox/Toolboxes/Business Analyst Tools.tbx") # Script arguments... for i in range(0,3): print i s = str(i) Input_Store_SHP_File = "H:\\FINANCE\\Analysis\\ESRI\\Sabita\\NewModel\\Test\\Retailers_"+s+".shp" # provide a default value if unspecified print Input_Store_SHP_File Enter_Drive_Times = "3" # provide a default value if unspecified Select_Drive_Time_Polygon_Output_Path = "H:\\FINANCE\\Analysis\\ESRI\\Sabita\\NewModel\\Test\\Result\\Retailers_"+s+".shp" # provide a default value if unspecified # Local variables... Output_Traversed_Streets_Feature_Class = "" # Process: 1 to 20 min Drive Time... #tempEnvironment0 = gp.scratchWorkspace gp.scratchWorkspace = "H:\\FINANCE\\Analysis\\ESRI\\Sabita\\NewModel\\Test\\" gp.DriveTime_ba(Input_Store_SHP_File, "COMPID", "ALL", Enter_Drive_Times, "Minutes", Select_Drive_Time_Polygon_Output_Path, "", "", "false", "false", "false", "true", "false", "false", Output_Traversed_Streets_Feature_Class) #gp.scratchWorkspace = tempEnvironment0
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.