Conversion Tools(转换工具)
阅读原文时间:2023年07月11日阅读:2

1、Excel

# Process: Excel 转表
arcpy.ExcelToTable_conversion("", 输出表, "")

# Process: 表转 Excel
arcpy.TableToExcel_conversion("", 输出_Excel_文件, "NAME", "CODE")

2、JSON

# Process: JSON 转要素
arcpy.JSONToFeatures_conversion("", 输出要素类)

# Process: 要素转 JSON
arcpy.FeaturesToJSON_conversion("", 输出_JSON, "NOT_FORMATTED", "NO_Z_VALUES", "NO_M_VALUES", "NO_GEOJSON")

3、从PDF

# Process: PDF 转 TIFF
arcpy.PDFToTIFF_conversion("", 输出_TIFF_文件, "*****", "1", "", "NO_CLIP", "250", "RGB_TRUE_COLOR", "LZW", "GEOTIFF_TAGS")

4、元数据

# Process: Esri 元数据转换程序
arcpy.ESRITranslator_conversion("", "", 输出文件, 日志文件)

# Process: USGS MP 元数据转换程序
arcpy.USGSMPTranslator_conversion("", "", "mp_input_xml", 输出文件__2_, 日志文件__2_)

# Process: XML 模式验证
arcpy.XMLSchemaValidator_conversion("", "", "")

# Process: XSLT 变换
arcpy.XSLTransform_conversion("", "", 输出文件__3_, "")

# Process: 元数据发布程序
arcpy.MDPublisher_conversion("", "", "", "", "", "")

# Process: 元数据导入程序
arcpy.MetadataImporter_conversion("", "")

# Process: 升级元数据
arcpy.UpgradeMetadata_conversion("", "")

# Process: 同步元数据
arcpy.SynchronizeMetadata_conversion("", "sync_always")

# Process: 导入元数据
arcpy.ImportMetadata_conversion("", "FROM_ISO_19139", "", "ENABLED")

# Process: 导出元数据
arcpy.ExportMetadata_conversion("", "", 输出文件__4_)

# Process: 批量导出元数据
arcpy.ExportMetadataMultiple_conversion("", "", "")

# Process: 批量验证元数据
arcpy.ValidateMetadataMultiple_conversion("", "", "", "", "")

# Process: 验证元数据
arcpy.ValidateMetadata_conversion("", "", "", "", 输出文件__6_)

5、由GPS转出

# Process: GPX 转要素
arcpy.GPXtoFeatures_conversion("", 输出要素类)

6、由KML转出

# Process: KML 转图层
arcpy.KMLToLayer_conversion("", "", "", "NO_GROUNDOVERLAY")

7、由WFS转出

# Process: WFS 至要素类
arcpy.WFSToFeatureClass_conversion("", "", "", "")

8、由栅格转出

# Process: 栅格转 ASCII
arcpy.RasterToASCII_conversion("", 输出_ASCII_栅格文件)

# Process: 栅格转折线
arcpy.RasterToPolyline_conversion("", 输出折线要素, "ZERO", "0", "SIMPLIFY", "")

# Process: 栅格转浮点型
arcpy.RasterToFloat_conversion("", 输出浮点栅格文件)

# Process: 栅格转点
arcpy.RasterToPoint_conversion("", 输出点要素, "")

# Process: 栅格转视频
arcpy.RasterToVideo_conversion("", 输出视频文件, "BMP", "Microsoft Video 1", "FRAME_RATE", "30", "100")

# Process: 栅格转面
arcpy.RasterToPolygon_conversion("", 输出面要素, "SIMPLIFY", "", "SINGLE_OUTER_PART", "")

9、至GeoPackage

# Process: 向 GeoPackage 添加栅格
arcpy.AddRasterToGeoPackage_conversion("", "", "", "TILED", "", 感兴趣区)

10、转为CAD

# Process: 导出为 CAD
arcpy.ExportCAD_conversion("", "DWG_R2018", 输出文件, "Ignore_Filenames_in_Tables", "Overwrite_Existing_Files", "")

# Process: 添加 CAD 字段
arcpy.AddCADFields_conversion("", "ADD_ENTITY_PROPERTIES", "ADD_LAYER_PROPERTIES", "ADD_TEXT_PROPERTIES", "ADD_DOCUMENT_PROPERTIES", "ADD_XDATA_PROPERTIES")

11、转为Collada

# Process: 多面体转 Collada
arcpy.MultipatchToCollada_conversion("", 输出_Collada_文件夹, "PREPEND_NONE", "")

12、转为Coverage

# Process: 从 E00 导入
arcpy.ImportFromE00_conversion("", "", "")

# Process: 要素类转 Coverage
arcpy.FeatureclassToCoverage_conversion("", 输出_Coverage, "", "DOUBLE")

13、转为dBASE

# Process: 表转 dBASE (批量)
arcpy.TableToDBASE_conversion("", "")

14、转为KML

# Process: 图层转 KML
arcpy.LayerToKML_conversion("", 输出文件, "0", "NO_COMPOSITE", "DEFAULT", "1024", "96", "CLAMPED_TO_GROUND")

# Process: 地图转 KML
arcpy.MapToKML_conversion("", "", 输出文件__2_, "0", "NO_COMPOSITE", "VECTOR_TO_IMAGE", "DEFAULT", "1024", "96", "CLAMPED_TO_GROUND")

15、转为Shapefile

# Process: 要素类转 Shapefile (批量)
arcpy.FeatureClassToShapefile_conversion("", "")

16、转为栅格

# Process: ASCII 转栅格
arcpy.ASCIIToRaster_conversion("", 输出栅格, "INTEGER")

# Process: DEM 转栅格
arcpy.DEMToRaster_conversion("", 输出栅格__2_, "FLOAT", "1")

# Process: LAS 数据集转栅格
arcpy.LasDatasetToRaster_conversion("", 输出栅格__3_, "ELEVATION", "BINNING AVERAGE LINEAR", "FLOAT", "CELLSIZE", "10", "1")

# Process: 多面体转栅格
arcpy.MultipatchToRaster_conversion("", 输出栅格__4_, "")

# Process: 折线转栅格
arcpy.PolylineToRaster_conversion("", "", 输出栅格数据集, "MAXIMUM_LENGTH", "NONE", "")

# Process: 栅格转其他格式(批量)
arcpy.RasterToOtherFormat_conversion("", "", "TIFF")

# Process: 浮点型转栅格
arcpy.FloatToRaster_conversion("", 输出栅格__5_)

# Process: 点转栅格
arcpy.PointToRaster_conversion("", "", 输出栅格数据集__2_, "MOST_FREQUENT", "NONE", "")

# Process: 要素转栅格
arcpy.FeatureToRaster_conversion("", "", 输出栅格__6_, "")

# Process: 面转栅格
arcpy.PolygonToRaster_conversion("", "", 输出栅格数据集__3_, "CELL_CENTER", "NONE", "")

17、转出至地理数据库

# Process: CAD 至地理数据库
arcpy.CADToGeodatabase_conversion("", "", "", "1000", "")

# Process: 导入 CAD 注记
arcpy.ImportCADAnnotation_conversion("", 输出要素类, "1000", "CLASSES_FROM_LEVELS", "NO_MATCH", "NO_SYMBOL_REQUIRED", "STANDARD", "", "AUTO_CREATE", "AUTO_UPDATE")

# Process: 导入 Coverage 注记
arcpy.ImportCoverageAnnotation_conversion("", 输出要素类__2_, "1000", "CLASSES_FROM_LEVELS", "NO_MATCH", "NO_SYMBOL_REQUIRED", "STANDARD", "", "AUTO_CREATE", "AUTO_UPDATE")

# Process: 将运行时地理数据库复制到文件地理数据库
arcpy.CopyRuntimeGdbToFileGdb_conversion("", 输出文件地理数据库)

# Process: 栅格数据至地理数据库(批量)
arcpy.RasterToGeodatabase_conversion("", "", "")

# Process: 表至地理数据库(批量)
arcpy.TableToGeodatabase_conversion("", "")

# Process: 表至表
arcpy.TableToTable_conversion("", "", "", "", "", "")

# Process: 要素类至地理数据库(批量)
arcpy.FeatureClassToGeodatabase_conversion("", "")

# Process: 要素类至要素类
arcpy.FeatureClassToFeatureClass_conversion("", "", "", "", "", "")

手机扫一扫

移动阅读更方便

阿里云服务器
腾讯云服务器
七牛云服务器

你可能感兴趣的文章