summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2016-08-09 18:46:14 +0200
committerClaude Paroz <claude@2xlibre.net>2016-08-09 18:46:28 +0200
commitade681b9ad2a97833cd3f06530fba01e51250b32 (patch)
tree2557938447d885fa5444161205ef6f4b145cbe98 /django
parent79a9603ba87f4a84d2d538a199f351e044be7d5c (diff)
Unified SpatiaLite spelling
Diffstat (limited to 'django')
-rw-r--r--django/contrib/gis/db/backends/spatialite/introspection.py2
-rw-r--r--django/contrib/gis/db/backends/spatialite/operations.py2
-rw-r--r--django/contrib/gis/db/models/functions.py2
-rw-r--r--django/contrib/gis/utils/srs.py2
4 files changed, 4 insertions, 4 deletions
diff --git a/django/contrib/gis/db/backends/spatialite/introspection.py b/django/contrib/gis/db/backends/spatialite/introspection.py
index 6847b28ff3..c406baafdb 100644
--- a/django/contrib/gis/db/backends/spatialite/introspection.py
+++ b/django/contrib/gis/db/backends/spatialite/introspection.py
@@ -42,7 +42,7 @@ class SpatiaLiteIntrospection(DatabaseIntrospection):
# from OGC geom type name to Django field.
ogr_type = row[2]
if isinstance(ogr_type, six.integer_types) and ogr_type > 1000:
- # Spatialite versions >= 4 use the new SFSQL 1.2 offsets
+ # SpatiaLite versions >= 4 use the new SFSQL 1.2 offsets
# 1000 (Z), 2000 (M), and 3000 (ZM) to indicate the presence of
# higher dimensional coordinates (M not yet supported by Django).
ogr_type = ogr_type % 1000 + OGRGeomType.wkb25bit
diff --git a/django/contrib/gis/db/backends/spatialite/operations.py b/django/contrib/gis/db/backends/spatialite/operations.py
index 173b1ca590..7a5343e2e6 100644
--- a/django/contrib/gis/db/backends/spatialite/operations.py
+++ b/django/contrib/gis/db/backends/spatialite/operations.py
@@ -117,7 +117,7 @@ class SpatiaLiteOperations(BaseSpatialOperations, DatabaseOperations):
def convert_extent(self, box, srid):
"""
- Convert the polygon data received from Spatialite to min/max values.
+ Convert the polygon data received from SpatiaLite to min/max values.
"""
if box is None:
return None
diff --git a/django/contrib/gis/db/models/functions.py b/django/contrib/gis/db/models/functions.py
index afc87bfb3a..4989ad8820 100644
--- a/django/contrib/gis/db/models/functions.py
+++ b/django/contrib/gis/db/models/functions.py
@@ -340,7 +340,7 @@ class NumPoints(GeoFunc):
def as_sqlite(self, compiler, connection):
if self.source_expressions[self.geom_param_pos].output_field.geom_type != 'LINESTRING':
- raise TypeError("Spatialite NumPoints can only operate on LineString content")
+ raise TypeError("SpatiaLite NumPoints can only operate on LineString content")
return super(NumPoints, self).as_sql(compiler, connection)
diff --git a/django/contrib/gis/utils/srs.py b/django/contrib/gis/utils/srs.py
index f1c104fdbb..f9d21ca37a 100644
--- a/django/contrib/gis/utils/srs.py
+++ b/django/contrib/gis/utils/srs.py
@@ -65,7 +65,7 @@ def add_srs_entry(srs, auth_name='EPSG', auth_srid=None, ref_sys_name=None,
if 'srtext' in srs_field_names:
kwargs['srtext'] = srs.wkt
if 'ref_sys_name' in srs_field_names:
- # Spatialite specific
+ # SpatiaLite specific
kwargs['ref_sys_name'] = ref_sys_name or srs.name
# Creating the spatial_ref_sys model.