Geometry

class caris.Geometry

The geometry.

crs

CoordinateReferenceSystem – The coordinate reference system

wkt

str – The well known text geometry string

type

GeometryType – The type of geometry

transform((Geometry)self, (CoordinateReferenceSystem)coordinate_reference_system) → Geometry :

Transform the geometry to another Coordinate Reference System

Parameters:coordinate_refence_system (CoordinateReferenceSystem) –
Returns:A new Geoemtry transformed from the old one into the new Coordinate Reference System.
validate((Geometry)self) → tuple :

Validates the geometry.

Returns:A boolean indicating whether the geometry is valid and a string describing the validation error if there is one.
Return type:(bool, str)