arcpy.featureclasstofeatureclass_conversion 是ArcPy 模块中的一个函数,用于将一个要素类(Feature Class)转换并复制到另一个位置或地理数据库中,同时可以选择性地应用一个定义查询(Definition Query)和字段映射(Field Mapping)。该函数是 ArcGIS 软件中用于数据转换和处理的重要工具之一。
# 需要导入模块: import arcpy [as 别名]# 或者: from arcpy importFeatureClassToFeatureClass_conversion[as 别名]deftestmeta(self):fcws ='c:\\temp'tempshp = arcpy.CreateScratchName('tmp.dbf', workspace=fcws).replace('.dbf','.shp') fcnm = os.path.basename(tempshp)# testing entriesttl,pps...
/output/output.gdb" outFeatureClass = "postoffices" delimitedField = arcpy.AddFieldDelimiters(arcpy.env.workspace, "NAME") expression = delimitedField + " = 'Post Office'" # Execute FeatureClassToFeatureClass arcpy.FeatureClassToFeatureClass_conversion(inFeatures, outLocation, outFeatureClass, ...
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...
# 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"...
importarcpyimporttimedata=r"C:\MapPrintTest\data_test\testgdb.gdb"point=r"C:\MapPrintTest\data_test\test.gdb\gps222"arcpy.env.workspace=dataforiinrange(0,500):name="point"+str(i)arcpy.FeatureClassToFeatureClass_conversion(point,data,name)ifi%20==0:start=time.time()fslist=arcpy.ListFeat...
Hello everyone, I'm using ArcMap10.3, in the Model builder. I'm experiencing a problem with the Feature Class to Feature Class tool. My model is actually a
Feature Class Code sample WFSToFeatureClass example 1 (stand-alone script) The following script demonstrates how to execute theWFSToFeatureClasstool in a stand-alone script. # Name: WFSToFeatureClass_example1.py# Description: Create a feature class from a WFS service# Import arcpy moduleimportar...
('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...
fc_instance = FeatureClassOgr(self, fc_name) od = OrderedDict()fork, vinGDB_FC_PROPS.items(): od[v] = getattr(fc_instance, k,'')# custom propsod['Row count'] = fc_instance.get_row_count() fcs.append(od)exceptExceptionase: ...