ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Hilfe
  • Sign Out
ArcGIS Desktop

ArcGIS Online

Die Mapping-Plattform für Ihre Organisation

ArcGIS Desktop

Ein vollständiges professionelles GIS

ArcGIS Enterprise

GIS in Ihrem Unternehmen

ArcGIS Developers

Werkzeuge zum Erstellen standortbezogener Apps

ArcGIS Solutions

Kostenlose Karten- und App-Vorlagen für Ihre Branche

ArcGIS Marketplace

Rufen Sie Apps und Daten für Ihre Organisation ab.

  • Dokumentation
  • Support
Esri
  • Anmelden
user
  • Eigenes Profil
  • Abmelden

ArcMap

  • Startseite
  • Erste Schritte
  • Karte
  • Analysieren
  • Verwalten von Daten
  • Werkzeuge
  • Erweiterungen

Batch Define Coordinate System

  • Zusammenfassung
  • Verwendung
  • Syntax
  • Codebeispiel
  • Umgebungen
  • Lizenzinformationen

Zusammenfassung

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.

Ältere Versionen:
This tool has been deprecated. For more information, see An overview of the Samples toolbox.

Verwendung

  • 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.

Syntax

arcpy.samples.BatchDefine(input_datasets, {Coordinate_System}, {Template_Dataset})
ParameterErklärungDatentyp
input_datasets
[input_datasets,...]

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

Geodataset
Coordinate_System
(optional)

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

Coordinate System
Template_Dataset
(optional)

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

Geodataset

Codebeispiel

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")

Umgebungen

  • Scratch-Workspace

Lizenzinformationen

  • Basic: Ja
  • Standard: Ja
  • Advanced: Ja

ArcGIS Desktop

  • Startseite
  • Dokumentation
  • Support

ArcGIS

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

Über Esri

  • Über uns
  • Karriere
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Wir sind an Ihrer Meinung interessiert.
Copyright © 2021 Esri. | Datenschutz | Rechtliches