Geometry

class caris.Geometry

The geometry.

crs

The coordinate reference system

Type

CoordinateReferenceSystem

wkt

The well known text geometry string

Type

str

type

The type of geometry

Type

GeometryType

__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