Point
This class represents a single point geometry and provides access to its individual coordinate components. It supports retrieving X, Y, Z, and M coordinates depending on whether the geometry is 3D or measured. Users can access the full coordinate set as a tuple through the coords property.
Attributes
| Attribute | Type | Description |
|---|---|---|
| x | float | Return the X coordinate for this Point. |
| y | float | Return the Y coordinate for this Point. |
| z | float | Return the Z coordinate for this Point. |
| m | float | Return the M coordinate for this Point. |
| tuple | tuple | Return the tuple of this point. |
| coords | tuple | Return the tuple of this point. |
Methods
x()
@classmethod
def x() - > float
Return the X coordinate for this Point.
Returns
| Type | Description |
|---|---|
float | The horizontal coordinate value of the point. |
y()
@classmethod
def y() - > float
Return the Y coordinate for this Point.
Returns
| Type | Description |
|---|---|
float | The vertical coordinate value of the point. |
z()
@classmethod
def z() - > float
Return the Z coordinate for this Point.
Returns
| Type | Description |
|---|---|
float | The altitude or depth coordinate value, or None if the geometry is not 3D. |
m()
@classmethod
def m() - > float
Return the M coordinate for this Point.
Returns
| Type | Description |
|---|---|
float | The measure coordinate value associated with the point, or None if the geometry is not measured. |
tuple()
@classmethod
def tuple() - > tuple
Return the tuple of this point.
Returns
| Type | Description |
|---|---|
tuple | A tuple containing the point coordinates (X, Y, [Z], [M]) based on the geometry's dimensions. |