PointSet ¶
Scattered samples: coordinates plus an attribute table.
length_unit
property
¶
length_unit
Unit of the coordinates, such as m or ft; None when not declared.
convert_units
method descriptor
¶
convert_units(column, *, to)
New point set with column converted to unit to; see Table.convert_units.
from_table
staticmethod
¶
from_table(
table,
*,
x="X",
y="Y",
z=None,
crs=None,
length_unit=None,
)
Splits coordinate columns out of an Arrow-compatible table.
to_length_unit
method descriptor
¶
to_length_unit(unit, *, crs=None)
A copy with the coordinates converted to unit, the new length unit.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
unit
|
str
|
A length unit, such as |
required |
crs
|
str
|
The CRS of the converted coordinates; required when the coordinates have a CRS, which a change of unit changes. |
None
|
Raises:
| Type | Description |
|---|---|
InvalidInput
|
Without a length unit to convert from, or with a CRS and no |
with_attributes
method descriptor
¶
with_attributes(table)
New point set with table as the attributes, one row per point.
with_column
method descriptor
¶
with_column(name, values, *, unit=None)
New point set with the attribute name added or replaced: numbers (NaN
is null) or text (None is null). The column takes unit, or else the
unit values carries.
with_columns
method descriptor
¶
with_columns(data)
New point set with the columns of data, a dict or table, added or replaced.
with_units
method descriptor
¶
with_units(units)
New point set with the units of units, column name to unit; None removes one.
used in