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

__init__((object)arg1, (CoordinateReferenceSystem)crs, (str)wkt) → object :

Constructor

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

Transform the geometry to another Coordinate Reference System

Parameters:coordinate_refence_system (CoordinateReferenceSystem) –
Returns:A new Geometry 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)
class caris.GeometryType

The type of geometry.

  • POINT
  • CURVE
  • SURFACE
  • SOLID
  • COMPLEX
  • CURVE_BOUNDARY
  • SURFACE_BOUNDARY
  • SOLID_BOUNDARY
  • COMPOSITE_POINT
  • COMPOSITE_CURVE
  • COMPOSITE_SURFACE
  • COMPOSITE_SOLID
  • AGGREGATE
  • MULTI_POINT
  • MULTI_CURVE
  • MULTI_SURFACE
  • MULTI_SOLID
  • MULTI_BOUNDARY
  • RING
  • SHELL
  • UNDEFINED