Zusammenfassung
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.
Auswertung
Syntax
Extent ({XMin}, {YMin}, {XMax}, {YMax}, {ZMin}, {ZMax}, {MMin}, {MMax})
Parameter | Erklärung | Datentyp |
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 |
Eigenschaften
Eigenschaft | Erklärung | Datentyp |
JSON (Nur lesen) | Returns a JSON representation of the extent as a string. | String |
MMax (Nur lesen) | The extent MMax value. None if no M value. | Double |
MMin (Nur lesen) | The extent MMin value. None if no M value. | Double |
XMax (Nur lesen) | The extent XMax value. | Double |
XMin (Nur lesen) | The extent XMin value. | Double |
YMax (Nur lesen) | The extent YMax value. | Double |
YMin (Nur lesen) | The extent YMin value. | Double |
ZMax (Nur lesen) | The extent ZMax value. None if no Z value. | Double |
ZMin (Nur lesen) | The extent ZMin value. None if no Z value. | Double |
depth (Nur lesen) | The extent depth value. None if no depth. | Double |
height (Nur lesen) | The extent height value. | Double |
lowerLeft (Nur lesen) | The lower left property: A point object is returned. | Point |
lowerRight (Nur lesen) | The lower right property: A point object is returned. | Point |
polygon (Nur lesen) | Return the extent as a polygon object. | Polygon |
spatialReference (Nur lesen) | The spatial reference of the extent. | SpatialReference |
upperLeft (Nur lesen) | The upper left property: A point object is returned. | Point |
upperRight (Nur lesen) | The upper right property: A point object is returned | Point |
width (Nur lesen) | The extent width value. | Double |
Methodenübersicht
Methode | Erklärung |
contains (second_geometry, {relation}) | Indicates if the base geometry contains the comparison geometry. contains is the opposite of within. Only True relationships are shown in this illustration. |
crosses (second_geometry) | Gibt an, ob die beiden Geometrien sich in einer Geometrie mit einem geringeren Shape-Typ überschneiden. Zwei Polylinien kreuzen sich, wenn sie nur Punkte gemeinsam haben, von denen mindestens einer kein Endpunkt ist. Eine Polylinie und ein Polygon kreuzen sich, wenn sie im Inneren des Polygons eine Polylinie oder einen Punkt (für eine vertikale Linie) gemeinsam haben, die bzw. der nicht der gesamten Polylinie entspricht. Only True relationships are shown in this illustration. |
disjoint (second_geometry) | Gibt an, ob die Basis- und die Vergleichsgeometrie keine gemeinsamen Punkte aufweisen. Zwei Geometrien überschneiden sich, wenn disjoint den Wert False zurückgibt. Only True relationships are shown in this illustration. |
equals (second_geometry) | Indicates if the base and comparison geometries are of the same shape type and define the same set of points in the plane. This is a 2D comparison only; M and Z values are ignored. Only True relationships are shown in this illustration. |
overlaps (second_geometry) | Gibt an, üb die Überschneidung der beiden Geometrien denselben Shape-Typ wie eine der Eingabegeometrien aufweist, aber keiner der Eingabegeometrien entspricht. Only True relationships are shown in this illustration. |
projectAs (spatial_reference, {transformation_name}) | Projects a geometry and optionally applies a geotransformation. To project, the geometry needs to have a spatial reference, and not have an UnknownCoordinateSystem. The new spatial reference system passed to the method defines the output coordinate system. If either spatial reference is unknown the coordinates will not be changed. The Z- and measure values are not changed by the ProjectAs method. |
touches (second_geometry) | Indicates if the boundaries of the geometries intersect. Two geometries touch when the intersection of the geometries is not empty, but the intersection of their interiors is empty. For example, a point touches a polyline only if the point is coincident with one of the polyline end points. Only True relationships are shown in this illustration. |
within (second_geometry, {relation}) | Indicates if the base geometry is within the comparison geometry. within is the opposite operator of contains. Only True relationships are shown in this illustration. The base geometry is within the comparison geometry if the base geometry is the intersection of the geometries and the intersection of their interiors is not empty. within is a Clementini operator, except in the case of an empty base geometry. |
Methoden
contains (second_geometry, {relation})
Parameter | Erklärung | Datentyp |
second_geometry | A second geometry. | Object |
relation | The spatial relationship type.
(Der Standardwert ist None) | String |
Rückgabewert
Datentyp | Erklärung |
Boolean |
A return Boolean value of True indicates this geometry contains the second geometry. |
crosses (second_geometry)
Parameter | Erklärung | Datentyp |
second_geometry | A second geometry. | Object |
Rückgabewert
Datentyp | Erklärung |
Boolean | Der boolesche Rückgabetyp "True" gibt an, dass sich die beiden Geometrien in einer Geometrie mit einem geringeren Shape-Typ schneiden. |
disjoint (second_geometry)
Parameter | Erklärung | Datentyp |
second_geometry | A second geometry. | Object |
Rückgabewert
Datentyp | Erklärung |
Boolean | Der boolesche Rückgabetyp "True" gibt an, dass die beiden Geometrien keine gemeinsamen Punkte aufweisen. |
equals (second_geometry)
Parameter | Erklärung | Datentyp |
second_geometry | A second geometry. | Object |
Rückgabewert
Datentyp | Erklärung |
Boolean |
A return Boolean value of True indicates that the two geometries are of the same shape type and define the same set of points in the plane. |
overlaps (second_geometry)
Parameter | Erklärung | Datentyp |
second_geometry | A second geometry. | Object |
Rückgabewert
Datentyp | Erklärung |
Boolean | Der boolesche Rückgabetyp True gibt an, dass die Überschneidung der beiden Geometrien dieselbe Dimension wie eine der Eingabegeometrien aufweist. |
projectAs (spatial_reference, {transformation_name})
Parameter | Erklärung | Datentyp |
spatial_reference | The new spatial reference. This can be a SpatialReference object or the coordinate system name. | SpatialReference |
transformation_name | The geotransformation name. | String |
Rückgabewert
Datentyp | Erklärung |
Object | The projected geometry. |
touches (second_geometry)
Parameter | Erklärung | Datentyp |
second_geometry | A second geometry. | Object |
Rückgabewert
Datentyp | Erklärung |
Boolean | A return Boolean value of True indicates the boundaries of the geometries intersect. |
within (second_geometry, {relation})
Parameter | Erklärung | Datentyp |
second_geometry | A second geometry. | Object |
relation | The spatial relationship type.
(Der Standardwert ist None) | String |
Rückgabewert
Datentyp | Erklärung |
Boolean | A return Boolean value of True indicates this geometry is contained within the second geometry. |
Codebeispiel
Extent example
Display extent object properties for features.
import arcpy
feature_class = 'c:/Data/Florida.gdb/airports'
# Fetch each feature from the cursor and examine the extent properties
for row in arcpy.da.SearchCursor(feature_class, ['SHAPE@', 'CNTY_NAME']):
extent = row[0].extent
print('Extent of county {}:'.format(row[1]))
print('XMin: {}, YMin: {}'.format(extent.XMin, extent.YMin))
print('XMax: {}, YMax: {}'.format(extent.XMax, extent.YMax))