生成制图限制 (Nautical)

许可等级:BasicStandardAdvanced

摘要

可轻松地沿海岸线移除重合要素并去除掩膜。此功能可通过以下方式来改善数字化航海图和硬拷贝航海图的制图显示:

输入生产要素中移除源要素中的重合要素。源要素保持不变,更新输入生产要素以在航海图中使用。

此模型通过以下方式生成制图限制:

  1. 将面转换为折线;
  2. 将线分割成与海岸线重合的线段;以及
  3. 删除与海岸线重合的线段。

用法

语法

GenerateCartographicLimits_nautical (Source_Features, Erase_Features, Input_Production_Features, {Join_Fields_from_Source_to_Scratch_Features})
参数说明数据类型
Source_Features

与海岸线重合的面要素。将面转换为折线,然后按折点进行分割。

Feature Layer
Erase_Features

用于标识要从输入生产要素中移除的重合的源要素的海岸线折线。

Feature Layer
Input_Production_Features

用于在输出图表中显示的制图要素。从此预先存在的要素类中移除与擦除要素重合的源要素

Feature Layer
Join_Fields_from_Source_to_Scratch_Features
[Join_Fields_from_Source_to_Scratch_Features,...]
(可选)

用于将属性从源要素提取到擦除后的输出中的连接字段。默认值为 NOID

Field

代码实例

生成制图限制 (GenerateCartographicLimits) 示例(独立脚本)

以下独立脚本演示了如何使用生成制图限制 (GenerateCartographicLimits) 工具。

# Name: GenerateCartoLimits_Example.py
# Description: Removes edges from input production features that are coincident to the coastline.
# Requirements: ArcGIS for Maritime: Charting

# create a feature layer for the source features
inAnno = "C:/data/nautical.sde/Micklefirth.DBO.Nautical/Micklefirth.DBO.RegulatedAreasAndLimitsA"

# the coastline (erase) features
inEraseFeatures = "C:/data/nautical.sde/Micklefirth.DBO.Nautical/Micklefirth.DBO.CoastlineL"

# the cartographic features (production)
inProductionFeatures = "C:/data/nautical.sde/Micklefirth.DBO.CartographicFeatures/Micklefirth.DBO.RegulatedA_L"

# execute the GenerateAnnotationMasks tool
print 'Executing the GenerateCartographicLimits using \n' + inAnno + '\n' + inEraseFeatures + '\n' + inProductionFeatures
arcpy.GenerateCartographicLimits_nautical(inAnno, inEraseFeatures, inProductionFeatures)

print 'Successfully generated carto limits in ' + inProductionFeatures

环境

相关主题

许可信息

ArcGIS for Desktop Basic: 否
ArcGIS for Desktop Standard: 否
ArcGIS for Desktop Advanced: 需要 Maritime Charting
4/27/2014