geolib.geometry.one

For all geometries and locations we try to use a single Point class.

In 1D applications it’s only used to specify, for example height, other fields left None.

For profiles used in 1D applications, see ProfileLayer

Classes

Point(**data)

A single Point Class.

class geolib.geometry.one.Point(**data)

A single Point Class.

Parameters:

data (Any)

id: Optional[int]
label: Optional[str]
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'extra': 'forbid', 'validate_assignment': True, 'validate_default': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'id': FieldInfo(annotation=Union[int, NoneType], required=False, default=None), 'label': FieldInfo(annotation=Union[str, NoneType], required=False, default=''), 'tolerance': FieldInfo(annotation=float, required=False, default=0.0001), 'x': FieldInfo(annotation=float, required=False, default=-999.0), 'y': FieldInfo(annotation=float, required=False, default=-999.0), 'z': FieldInfo(annotation=float, required=False, default=-999.0)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

tolerance: float
x: float
y: float
z: float