Skip to main content

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

AttributeTypeDescription
xfloatReturn the X coordinate for this Point.
yfloatReturn the Y coordinate for this Point.
zfloatReturn the Z coordinate for this Point.
mfloatReturn the M coordinate for this Point.
tupletupleReturn the tuple of this point.
coordstupleReturn the tuple of this point.

Methods


x()

@classmethod
def x() - > float

Return the X coordinate for this Point.

Returns

TypeDescription
floatThe horizontal coordinate value of the point.

y()

@classmethod
def y() - > float

Return the Y coordinate for this Point.

Returns

TypeDescription
floatThe vertical coordinate value of the point.

z()

@classmethod
def z() - > float

Return the Z coordinate for this Point.

Returns

TypeDescription
floatThe 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

TypeDescription
floatThe 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

TypeDescription
tupleA tuple containing the point coordinates (X, Y, [Z], [M]) based on the geometry's dimensions.