要素类转 Coverage (转换)

许可等级:BasicStandardAdvanced

摘要

根据一个或多个输入要素类图层创建单个 ArcInfo Workstation Coverage 文件。

用法

语法

FeatureclassToCoverage_conversion (in_features, out_cover, {cluster_tolerance}, {precision})
参数说明数据类型
in_features
[[Featureclass, {Type}],...]

用于创建单个 ArcInfo Workstation Coverage 的输入要素类或图层,包括组成 Coverage 的要素类型。

  • POINT
  • LABEL
  • NODE
  • ARC
  • ROUTE
  • POLYGON
  • REGION
  • ANNO
Value Table
out_cover

要创建的输出 coverage。

Coverage
cluster_tolerance
(可选)

所有要素坐标(节点和折点)之间的最小距离以及坐标可以沿 X 和/或 Y 方向移动的距离。如果将此值设置得较高,则数据会具有较低的坐标精度;如果将此值设置得较低,则数据会具有较高的坐标精度。

Linear unit
precision
(可选)

输出 Coverage 的精度

  • DOUBLE out_cover 将为双精度。这是默认设置。
  • SINGLEout_cover 将为单精度
Boolean

代码实例

要素类转 Coverage (FeatureClassToCoverage) 示例(Python 窗口)

以下 Python 窗口脚本演示了如何在即时模式下使用要素类转 Coverage (FeatureClassToCoverage) 函数。

import arcpy
from arcpy import env
env.workspace = "C:/data"
arcpy.FeatureclassToCoverage_conversion(
        [["Montgomery.gdb/Landbase/parcels", "REGION"]], 
        "C:/output/mont_parcel", "", "")
要素类转 Coverage (FeatureClassToCoverage) 示例(独立脚本)

以下独立脚本演示了如何将多个相关要素类转换为一个 Coverage。完成转换后,运行“创建标注”工具以更正输出 Coverage 中的面标注。

# 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", "POLYGON"],
              ["Montgomery.gdb/Landbase/parcels", "REGION"],
              ["Montgomery.gdb/Landbase/Road_cl", "ROUTE"],
              ["Montgomery.gdb/Landbase/RoadNames", "ANNO"],
              ["Montgomery.gdb/Water/Transmains", "ARC"]]
outCover = "C:/output/Montgomery"
clusterTolerance = 0.000656
precision = "DOUBLE"

# Execute FeatureclassToCoverage and CreateLabels
arcpy.FeatureclassToCoverage_conversion(inFeatures, outCover, 
                                        clusterTolerance, precision)

arcpy.CreateLabels_arc(outCover, "")

环境

相关主题

许可信息

ArcGIS for Desktop Basic:否
ArcGIS for Desktop Standard:否
ArcGIS for Desktop Advanced:是
9/15/2013