Skip to main content

VCS

サマリー

The VCS class provides information about the vertical coordinate system component of a SpatialReference object.

ディスカッション

Spatial references are comprised of a coordinate system and storage and processing parameters (tolerances and resolution settings). A vertical coordinate system may also be included, containing information about the z- (or vertical) coordinates. For example, a point has a z-value of 100.0, but without knowing its vertical coordinate system information, you may have the following questions:

  • 100.0 from what? What is at 0.0?

  • 100.0 in what units? Meters, feet, miles?

  • 100.0 in which direction from 0.0?

プロパティ

名前 説明 データ タイプ

datumName

(読み取り/書き込み)

The name of the vertical coordinate system's datum.

String

direction

(読み取り/書き込み)

The positive direction of the z coordinates; 1 is upward, -1 is downwards(in the direction of gravity).

Integer

factoryCode

(読み取り/書き込み)

The factory code or WKID of the vertical coordinate system.

Integer

linearUnitName

(読み取り/書き込み)

The name of the linear units.

String

metersPerUnit

(読み取り/書き込み)

The meters per linear unit.

Double

name

(読み取り/書き込み)

The name of the vertical coordinate system.

String

verticalShift

(読み取り/書き込み)

The vertical shift of the vertical coordinate system.

Double

コードのサンプル

import arcpy

# Create a Spatial Reference (Europe Equidistant Conic) with a vertical coordinate system (EVRF_2007)
sr = arcpy.SpatialReference(102031, 5621)

# Use the SpatialReference as input to a tool
out = arcpy.management.CreateFeatureDataset(outgdb, "euro_fds", sr)

# Describe the output to confirm the vertical coordinate system factoryCode
sr = arcpy.Describe(out[0]).spatialReference
print(sr.VCS.factoryCode)  # prints 5621