  
      >>> add_postgis_srs(SpatialReference(900913))
  
      Keyword Arguments:
       auth_name: This keyword may be customized with the value of the
                  `auth_name` field.  Defaults to 'EPSG'.
  
       auth_srid: This keyword may be customized with the value of the
                  `auth_srid` field.  Defaults to the SRID determined
                  by GDAL.
  
 
</s> remove      auth_srid: This keyword may be customized with the value of the
                `auth_srid` field.  Defaults to the SRID determined
                by GDAL.
 </s> add      auth_srid:
       This keyword may be customized with the value of the `auth_srid` field.
       Defaults to the SRID determined by GDAL. </s> remove     >>> add_postgis_srs(SpatialReference(900913))
 </s> add     >>> from django.contrib.gis.utils import add_srs_entry
    >>> add_srs_entry(900913) </s> remove      ref_sys_name: For SpatiaLite users only, sets the value of the
                   the `ref_sys_name` field.  Defaults to the name
                   determined by GDAL.
    """
    from django.contrib.gis.db.backend import SpatialBackend
    from django.contrib.gis.models import SpatialRefSys
    from django.contrib.gis.gdal import SpatialReference
 </s> add      ref_sys_name:
       For SpatiaLite users only, sets the value of the the `ref_sys_name` field.
       Defaults to the name determined by GDAL. </s> remove     This function takes a GDAL SpatialReference system and adds its
    information to the PostGIS `spatial_ref_sys` table -- enabling
    spatial transformations with PostGIS.  This is handy for adding
    spatial reference systems not included by default with PostGIS.
    For example, the following adds the so-called "Google Maps Mercator
    Projection" (available in GDAL 1.5):
 </s> add     This function takes a GDAL SpatialReference system and adds its information
    to the `spatial_ref_sys` table of the spatial backend.  Doing this enables
    database-level spatial transformations for the backend.  Thus, this utility
    is useful for adding spatial reference systems not included by default with
    the backend -- for example, the so-called "Google Maps Mercator Projection"
    is excluded in PostGIS 1.3 and below, and the following adds it to the
    `spatial_ref_sys` table: </s> remove         raise Exception('Spatial reference requires an SRID to be compatible with PostGIS.')
 </s> add         raise Exception('Spatial reference requires an SRID to be '
                        'compatible with the spatial backend.')
     auth_name:
       This keyword may be customized with the value of the `auth_name` field.
       Defaults to 'EPSG'.
  
      >>> add_postgis_srs(SpatialReference(900913))
  
      Keyword Arguments:
     auth_name:
       This keyword may be customized with the value of the `auth_name` field.
       Defaults to 'EPSG'.
     auth_name:
       This keyword may be customized with the value of the `auth_name` field.
       Defaults to 'EPSG'.
  
       auth_srid: This keyword may be customized with the value of the
                  `auth_srid` field.  Defaults to the SRID determined
                  by GDAL.
  
keep keep keep keep replace replace keep keep keep keep keep
 Fixed #12591 -- Renamed `add_postgis_srs` to `add_srs_entry` (keeping backwards-compatible alias), added `database` keyword for multi-db, removed deprecated `SpatialBackend` references; no longer use `get_or_create` and look for existing entry based on SRID value. 


git-svn-id: http://code.djangoproject.com/svn/django/trunk@12228 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
django/contrib/gis/utils/srs.py