I'm wondering how to have a single parameter in the arcpy.FeatureClassToFeatureClass_conversion() function instead of repeating the block of code for two variables (Address_Points and Street), basically. From what I understand, the way this script is set up now, the outer loop...
# Name: FeatureClassToFeatureClass_Example2.py # Description: Use FeatureClassToFeatureClass with an expression to create a subset # of the original feature class. # Import system modules import arcpy # Set environment settings arcpy.env.workspace = "C:/data/GreenvalleyDB.gdb/Public Buildings...
File "C:\Program Files (x86)\ArcGIS\Desktop10.5\ArcPy\arcpy\conversion.py", line 1891, in FeatureClassToFeatureClass raise eRuntimeError: Object: Error in executing tool I have tried using FeatureClassToGeodatabase and FeatureClassToShapefile with success, but I need to be able to add an ...
import arcpy arcpy.env.workspace = "C:/data/GreenvalleyDB.gdb/Public Buildings" arcpy.FeatureClassToFeatureClass_conversion("buildings_point", "C:/output/output.gdb", "buildings_point") FeatureClassToFeatureClass – Beispiel 2 (eigenständiges Skript) Im folgenden eigenständigen Skript wird...
arcpy.ListFeatureClasses函数的性能测试的代码如下: import arcpy import time data=r"C:\MapPrintTest\data_test\testgdb.gdb" point=r"C:\MapPrintTest\data_test\test.gdb\gps222" arcpy.env.workspace=data for i in range(0,500): name="point"+str(i) arcpy.FeatureClassToFeatureClass_conversion(...
# Name: FeatureclassToCvoerage_Example.py # Description: Converts several featureclasses to one coverage # Import system modules import arcpy from arcpy import env # Set environment settings env.workspace = "C:/data" # Set local variables inFeatures = [["Montgomery.gdb/Landbase/blocks", "...
('XY','<f8',2)]))# Define a spatial reference for the output feature class#SR = arcpy.Describe("C:/data/texas.gdb/fd").spatialReference# Export the numpy array to a feature class using the XY field to# represent the output point feature#arcpy.da.NumPyArrayToFeatureClass(array, outFC...
... new_array=arcpy.Array() ... array=line_geom.getPart(0) ...forxinrange(0,array.count): ... old_point=array[x] ... new_point=offsetPoint(old_point.Y,old_point.X) ... new_array.add(new_point) ... new_line=arcpy.Polyline(new_array,SR) ...
Copy shapefiles to a geodatabase. importosimportarcpy# Set the workspace for ListFeatureClassesarcpy.env.workspace ="c:/base"# Use the ListFeatureClasses function to return a list of# shapefiles.featureclasses = arcpy.ListFeatureClasses()# Copy shapefiles to a file geodatabaseforfcinfeaturecl...
)# Define a spatial reference for the output feature classspatial_ref = arcpy.Describe("C:/data/texas.gdb/fd").spatialReference# Export the numpy array to a feature class using the XY field to# represent the output point featurearcpy.da.NumPyArrayToFeatureClass(array, outFC, ["XY"], spat...