class documentation

The SpatialRefSysMixin is a class used by the database-dependent SpatialRefSys objects to reduce redundant code.

Class Method get_spheroid Class method used by GeometryField on initialization to retrieve the `SPHEROID[..]` parameters from the given WKT.
Class Method get_units Return a tuple of (unit_value, unit_name) for the given WKT without using any of the database fields.
Method __str__ Return the string representation, a 'pretty' OGC WKT.
Property angular_name Return the name of the angular units.
Property angular_units Return the angular units.
Property datum Return the datum for this spatial reference.
Property ellipsoid Return a tuple of the ellipsoid parameters: (semimajor axis, semiminor axis, and inverse flattening).
Property geographic Is this Spatial Reference geographic?
Property linear_name Return the linear units name.
Property linear_units Return the linear units.
Property local Is this Spatial Reference local?
Property name Return the projection name.
Property projected Is this Spatial Reference projected?
Property spheroid Return the spheroid name for this spatial reference.
Property srs Return a GDAL SpatialReference object.
Property units Return a tuple of the units and the name.
@classmethod
def get_spheroid(cls, wkt, string=True): (source)

Class method used by GeometryField on initialization to retrieve the `SPHEROID[..]` parameters from the given WKT.

@classmethod
def get_units(cls, wkt): (source)

Return a tuple of (unit_value, unit_name) for the given WKT without using any of the database fields.

def __str__(self): (source)

Return the string representation, a 'pretty' OGC WKT.

@property
angular_name = (source)

Return the name of the angular units.

@property
angular_units = (source)

Return the angular units.

Return the datum for this spatial reference.

Return a tuple of the ellipsoid parameters: (semimajor axis, semiminor axis, and inverse flattening).

Is this Spatial Reference geographic?

@property
linear_name = (source)

Return the linear units name.

@property
linear_units = (source)

Return the linear units.

Is this Spatial Reference local?

Return the projection name.

Is this Spatial Reference projected?

Return the spheroid name for this spatial reference.

Return a GDAL SpatialReference object.

Return a tuple of the units and the name.