Extent

サマリ

An extent is a rectangle specified by providing the coordinate of the lower left corner and the coordinate of the upper right corner in map units.

説明

注意注意:

When used as input to the Spatial Analyst tools, Create Constant Raster, Create Normal Raster, Create Random Raster, Extract By Rectangle and Topo To Raster only the XMin, YMin, XMax and YMax values are used by these tools.

構文

Extent ({XMin}, {YMin}, {XMax}, {YMax}, {ZMin}, {ZMax}, {MMin}, {MMax})
パラメータ説明データ タイプ
XMin

The extent XMin value.

Double
YMin

The extent YMin value.

Double
XMax

The extent XMax value.

Double
YMax

The extent YMax value.

Double
ZMin

The extent ZMin value. None if no Z value.

Double
ZMax

The extent ZMax value. None if no Z value.

Double
MMin

The extent MMin value. None if no M value.

Double
MMax

The extent MMax value. None if no M value.

Double

プロパティ

プロパティ説明データ タイプ
MMax
(読み取り専用)

The extent MMax value. None if no M value.

Double
MMin
(読み取り専用)

The extent MMin value. None if no M value.

Double
XMax
(読み取り専用)

The extent XMax value.

Double
XMin
(読み取り専用)

The extent XMin value.

Double
YMax
(読み取り専用)

The extent YMax value.

Double
YMin
(読み取り専用)

The extent YMin value.

Double
ZMax
(読み取り専用)

The extent ZMax value. None if no Z value.

Double
ZMin
(読み取り専用)

The extent ZMin value. None if no Z value.

Double
depth
(読み取り専用)

The extent depth value. None if no depth.

Double
height
(読み取り専用)

The extent height value.

Double
lowerLeft
(読み取り専用)

The lower left property: A point object is returned.

Point
lowerRight
(読み取り専用)

The lower right property: A point object is returned.

Point
upperLeft
(読み取り専用)

The upper left property: A point object is returned.

Point
upperRight
(読み取り専用)

The upper right property: A point object is returned

Point
width
(読み取り専用)

The extent width value.

Double

コードのサンプル

Extent example

Display extent object properties for features.

import arcpy
from arcpy import env

# Set the workspace
#
env.workspace = "C:/Data/Florida.gdb"

# Create a search cursor from the airports featureclass
#
sCur = arcpy.SearchCursor("airports", '"CNTY_NAME" = \'Orange\'')

# Fetch each feature from the cursor and examine the extent properties
#
for row in sCur:
    geom = row.shape
    ext = geom.extent  # or row.Shape.extent
    print "Extent of feature:\nXMin: %f, YMin: %f, \nXMax: %f, YMax: %f" % \
          (ext.XMin,ext.YMin,ext.XMax,ext.YMax) 

関連項目


7/10/2012