ArcGIS Desktop

  • Documentation
  • Support

  • My Profile
  • Aide
  • Sign Out
ArcGIS Desktop

ArcGIS Online

La plateforme cartographique de votre organisation

ArcGIS Desktop

Un SIG professionnel complet

ArcGIS Enterprise

SIG dans votre entreprise

ArcGIS for Developers

Outils de création d'applications de localisation

ArcGIS Solutions

Modèles d'applications et de cartes gratuits pour votre secteur d'activité

ArcGIS Marketplace

Téléchargez des applications et des données pour votre organisation.

  • Documentation
  • Support
Esri
  • Se connecter
user
  • Mon profil
  • Déconnexion

ArcMap

  • Accueil
  • Commencer
  • Carte
  • Analyser
  • Gérer les données
  • Outils
  • Extensions

Point

  • Résumé
  • Discussion
  • Syntaxe
  • Propriétés
  • Vue d'ensemble des méthodes
  • Méthodes
  • Exemple de code

Résumé

The point object is used frequently with cursors. Point features return a single point object instead of an array of point objects. All other feature types—polygon, polyline, and multipoint—return an array of point objects or an array containing multiple arrays of point objects if the feature has multiple parts.

Discussion

A Point is not a geometry class, but is commonly used to construct geometry. In the example below, a Point is used to create a PointGeometry object.

point = arcpy.Point(25282, 43770)
ptGeometry = arcpy.PointGeometry(point)

Syntaxe

 Point ({X}, {Y}, {Z}, {M}, {ID})
ParamètreExplicationType de données
X

The X coordinate of the point.

(La valeur par défaut est 0.0)

Double
Y

The Y coordinate of the point.

(La valeur par défaut est 0.0)

Double
Z

The Z coordinate of the point.

(La valeur par défaut est None)

Double
M

The M value of the point.

(La valeur par défaut est None)

Double
ID

The shape ID of the point.

(La valeur par défaut est 0)

Integer

Propriétés

PropriétéExplicationType de données
ID
(Lecture/écriture)

An integer used to uniquely identify the point.

Integer
M
(Lecture/écriture)

The measure value of the point.

Double
X
(Lecture/écriture)

The horizontal coordinate of the point.

Double
Y
(Lecture/écriture)

The vertical coordinate of the point.

Double
Z
(Lecture/écriture)

The elevation value of the point.

Double

Vue d'ensemble des méthodes

MéthodeExplication
clone (point_object)

Clone the point object.

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.

Possible contains relationships
crosses (second_geometry)

Indique si les deux géométries s'intersectent dans une géométrie de type de forme inférieure.

Deux polylignes se croisent si elles partagent uniquement des points, dont au moins un n'est pas une extrémité. Une polyligne et un polygone se croisent s'ils partagent une polyligne ou un point (pour une ligne verticale) à l'intérieur du polygone qui n'est pas équivalent à la polyligne entière.

Only True relationships are shown in this illustration.

Relations crosses possibles
disjoint (second_geometry)

Indique si la géométrie de base et la géométrie de comparaison n'ont aucun point en commun.

Deux géométries s'intersectent si la propriété disjoint renvoie False.

Only True relationships are shown in this illustration.

Relations disjoint possibles
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.

Possible equals relationships
overlaps (second_geometry)

Indique si l'intersection des deux géométries possède le même type de forme que l'une des géométries en entrée et qu'elle n'est pas équivalente à l'une des géométries en entrée.

Only True relationships are shown in this illustration.

Relations overlaps possibles
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.

Possible touches relationships
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.

Possible within relationships

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.

Méthodes

clone (point_object)
ParamètreExplicationType de données
point_object

A point object.

Point
contains (second_geometry, {relation})
ParamètreExplicationType de données
second_geometry

A second geometry.

Object
relation

The spatial relationship type.

  • BOUNDARY — Relationship has no restrictions for interiors or boundaries.
  • CLEMENTINI — Interiors of geometries must intersect. Specifying CLEMENTINI is equivalent to specifying None. This is the default.
  • PROPER — Boundaries of geometries must not intersect.

(La valeur par défaut est None)

String

Valeur renvoyée

Type de donnéesExplication
Boolean

A return Boolean value of True indicates this geometry contains the second geometry.

crosses (second_geometry)
ParamètreExplicationType de données
second_geometry

A second geometry.

Object

Valeur renvoyée

Type de donnéesExplication
Boolean

Une valeur booléenne renvoyée True indique que les deux géométries s'intersectent dans une géométrie de type de forme inférieure.

disjoint (second_geometry)
ParamètreExplicationType de données
second_geometry

A second geometry.

Object

Valeur renvoyée

Type de donnéesExplication
Boolean

Une valeur booléenne renvoyée True indique que les deux géométries n'ont aucun point en commun.

equals (second_geometry)
ParamètreExplicationType de données
second_geometry

A second geometry.

Object

Valeur renvoyée

Type de donnéesExplication
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)
ParamètreExplicationType de données
second_geometry

A second geometry.

Object

Valeur renvoyée

Type de donnéesExplication
Boolean

Une valeur booléenne renvoyée True indique que l'intersection des deux géométries a la même dimension que l'une des géométries en entrée.

touches (second_geometry)
ParamètreExplicationType de données
second_geometry

A second geometry.

Object

Valeur renvoyée

Type de donnéesExplication
Boolean

A return Boolean value of True indicates the boundaries of the geometries intersect.

within (second_geometry, {relation})
ParamètreExplicationType de données
second_geometry

A second geometry.

Object
relation

The spatial relationship type.

  • BOUNDARY — Relationship has no restrictions for interiors or boundaries.
  • CLEMENTINI — Interiors of geometries must intersect. Specifying CLEMENTINI is equivalent to specifying None. This is the default.
  • PROPER — Boundaries of geometries must not intersect.

(La valeur par défaut est None)

String

Valeur renvoyée

Type de donnéesExplication
Boolean

A return Boolean value of True indicates this geometry is contained within the second geometry.

Exemple de code

Point example

Create Point object and display its properties.

import arcpy

# Create point object
point = arcpy.Point(2000, 2500)

# Print point properties
print("Point properties:")
print(" ID: {0}".format(point.ID))
print(" X:  {0}".format(point.X))
print(" Y:  {0}".format(point.Y))
Point example 2

Examine point objects in polygon array object, returned from geometry object.

import arcpy

# Create cursor to retrieve Hawaii shape
feature_class = "c:/data/Hawaii.shp"
cursor = arcpy.da.SearchCursor(feature_class, ["SHAPE@"])

for row in cursor:
    # Get the geometry object from the shape field
    print("Number of Hawaiian islands: {0}".format(row[0].partCount))

    # GetPart returns an array of point objects for each part.
    for island in row[0].getPart():
        print("Vertices in island: {0}".format(island.count))
        for point in island:
            print("X: {0}, Y: {1})".format(point.X, point.Y))

Rubriques connexes

  • PointGeometry
  • Polygon
  • Polyline
  • Multipoint
  • Geometry
  • Array
  • Lecture des géométries
  • Ecriture des géométries
  • Utilisation d'objets géométrie avec les outils de géotraitement

ArcGIS Desktop

  • Accueil
  • Documentation
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

A propos d'Esri

  • A propos de la société
  • Carrières
  • Blog des initiés
  • Conférence des utilisateurs
  • Sommet des développeurs
Esri
Donnez-nous votre avis.
Copyright © 2018 Esri. | Confidentialité | Légal