class documentation
class SpatialRefSysMixin: (source)
Known subclasses: django.contrib.gis.db.backends.oracle.models.OracleSpatialRefSys
, django.contrib.gis.db.backends.postgis.models.PostGISSpatialRefSys
, django.contrib.gis.db.backends.spatialite.models.SpatialiteSpatialRefSys
The SpatialRefSysMixin is a class used by the database-dependent SpatialRefSys objects to reduce redundant code.
Class Method | get |
Class method used by GeometryField on initialization to retrieve the `SPHEROID[..]` parameters from the given WKT. |
Class Method | get |
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 |
Return the name of the angular units. |
Property | angular |
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 |
Return the linear units name. |
Property | linear |
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. |
Class method used by GeometryField on initialization to retrieve the `SPHEROID[..]` parameters from the given WKT.
Return a tuple of (unit_value, unit_name) for the given WKT without using any of the database fields.