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

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

Batch Define Coordinate System

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

描述

Records the coordinate system information for the specified input datasets including any associated projection parameters, datum, or spheroid. It creates or modifies the dataset's projection parameters.

旧版本:
This tool has been deprecated. For more information, see An overview of the Samples toolbox.

使用方法

  • This command can be used if the input datasets do not have a projection defined. If either of the input datasets has a projection defined, a warning will be raised but the tool will execute successfully.

  • The input datasets can include feature classes, raster datasets, and layers.

  • The coordinate system information of the input is created or modified by this tool. No separate output feature class will be created.

  • If the input datasets do not have a projection defined, the coordinate system will be listed as Unknown on the dialog box.

  • If either of the input datasets has a coordinate system defined, use the Project tool to modify it.

  • Use the Spatial Reference Properties dialog box to select a coordinate system definition from an existing definition list or dataset, or create a new coordinate system definition.

  • Use the template parameter to select an existing definition from another dataset to create a new coordinate system definition.

  • Either a coordinate system or a template dataset must be specified for the tool to execute.

  • When using this tool in ModelBuilder, the outputs will be two Boolean parameters. One parameter is named Completed and the other is named Error. These parameters are provided to allow chaining in ModelBuilder. Preconditions can be established with other processes. This will allow branching in models. If the tool fails, the model can stop or run another series of processes. If it completes successfully, the model can continue running.

语法

arcpy.samples.BatchDefine(input_datasets, {Coordinate_System}, {Template_Dataset})
参数说明数据类型
input_datasets
[input_datasets,...]

Datasets whose projection is to be defined. The datasets can be feature classes, raster datasets, and layers.

Geodataset
Coordinate_System
(可选)

Name of the coordinate system to be applied to the input datasets.

Coordinate System
Template_Dataset
(可选)

Dataset that will be used to select an existing projection definition to be applied to the input datasets.

Geodataset

代码示例

BatchDefine Example (Standalone Script)
import arcgisscripting
gp = arcgisscripting.create(9.3)
 
gp.workspace = "c:/Workspace/canada.mdb"
gp.BatchDefine("rivers;roads", "Coordinate Systems/Geographic Coordinate Systems/North America/North American Datum 1983.prj")

环境

  • 临时工作空间

许可信息

  • Basic: 是
  • Standard: 是
  • Advanced: 是

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS

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

关于 Esri

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