ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • 帮助
  • Sign Out
ArcGIS Desktop

ArcGIS Online

专为贵组织打造的制图平台

ArcGIS Desktop

全面的专业性 GIS

ArcGIS Enterprise

面向企业的 GIS

ArcGIS Developers

用于构建位置感知应用程序的工具

ArcGIS Solutions

适用于行业的免费模板地图和应用程序

ArcGIS Marketplace

获取适用于组织的应用程序和数据

  • 文档
  • 支持
Esri
  • 登录
user
  • 我的个人资料
  • 登出

ArcMap

  • 主页
  • 入门
  • 地图
  • 分析
  • 管理数据
  • 工具
  • 扩展模块

Select Features By Specifications Difference

  • 描述
  • 使用方法
  • 语法
  • 代码示例
  • 环境
  • 许可信息

描述

Selects features from feature classes or feature layers with representation rule IDs or calculated field values that do not match a selected visual specification.

Visual specifications use relational queries to apply symbology to many layers and calculate field values. This allows you to use sets of features, selected by attributes, to define representation rules and label expressions. Visual specifications provide a single production workflow to create and maintain symbology and text.

使用方法

  • You can add tables, table views, feature classes, or feature layers to the Input Features list. Each entry must have representation rule IDs or calculated field values defined.

  • You must specify a workspace that contains a VST_Specification table in the Visual Specification Workspace parameter. The tool uses the VST_Specification table to process the features in the Input Features list.

  • Once you have set Visual Specification Workspace, the Visual Specifications list will populate with visual specifications. You use these visual specifications to check for specifications differences in the Input Features list.

  • The tool will select features or rows from items in the Input Features list. Use Select Option to control the selection.

语法

arcpy.production.SelectFeaturesBySpecificationsDifference(in_layers_or_views, vs_workspace, specifications, select_option)
参数说明数据类型
in_layers_or_views
[in_layers_or_views,...]

The list of feature layers, feature classes, tables, or table views to search for specifications differences.

Table View
vs_workspace

The location of the workspace that contains the visual specifications table. The VST_Specification table can be stored in a personal, file, or enterprise geodatabase.

Workspace
specifications
[specifications,...]

The visual specifications you want to apply to the selected feature layers.

String
select_option

Specifies the type of visual specifications difference to use as a selection criteria.

  • BOTH —Select features that have either differences in their calculated representations or calculated fields. This is the default.
  • CALCULATED_REPRESENTATIONS — Select all features with differences in calculated representations.
  • CALCULATED_FIELDS —Select all features with differences in calculated fields.
Long

代码示例

SelectFeaturesBySpecificationsDifference (stand-alone Python script)

The following stand-alone script demonstrates how to use the SelectFeaturesBySpecificationsDifference tool.

# Name: SelectFeaturesBySpecificationsDifference.py
# Description: Selects features having representation rules IDs and/or calculated field values
#   that do not match a selected specification
# Requirements: ArcGIS Production Mapping

import arcpy

# check out a production mapping extension license
arcpy.CheckOutExtension("Foundation")

# set gp environment
arcpy.env.workspace="c:/data"

# local variables used by tool
roadL = "Austin.gdb/TopographicMap/RoadL"
roadLayer="roadLayer"
productLibrary = "ProductLibrary.gdb"
visualspec="'TopoMap 1:24,000 :: TopoMap 1:24,000 Specification'"

if arcpy.Exists(roadLayer)==False:
    arcpy.MakeFeatureLayer_management(roadL,roadLayer)

# exec Select Features by Specification Override
arcpy.SelectFeaturesBySpecificationsDifference_production(roadLayer, productLibrary, visualspec)

# Describe the feature layer to find selected features
desc=arcpy.Describe(roadLayer)
selectedFids = desc.FIDSet
if len(selectedFids) > 0:
    print "Tool selected " + str(len(selectedFids)) + " features"

环境

  • 当前工作空间

许可信息

  • Basic: 否
  • Standard: 需要 Production Mapping
  • Advanced: 需要 Production Mapping

相关主题

  • An overview of the Symbology toolset
  • What are visual specifications?

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

关于 Esri

  • 关于我们
  • 招贤纳士
  • Esri 博客
  • 用户大会
  • 开发者峰会
Esri
分享您的想法。
Copyright © 2021 Esri. | 隐私政策 | 法律声明