Undocumented
Function | add_srs_entry |
No summary |
Take a GDAL SpatialReference system and add 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:
>>> from django.contrib.gis.utils import add_srs_entry >>> add_srs_entry(3857)
auth_name
field.
Defaults to 'EPSG'.auth_srid
field.
Defaults to the SRID determined by GDAL.ref_sys_name
field.
Defaults to the name determined by GDAL.django.db.DEFAULT_DB_ALIAS
(at the time of this writing, its value
is 'default').