diff --git a/django/contrib/gis/db/backends/spatialite/operations.py b/django/contrib/gis/db/backends/spatialite/operations.py
index f3bf3e5..8c8d807 100644
|
a
|
b
|
class SpatiaLiteOperations(DatabaseOperations, BaseSpatialOperations):
|
| 63 | 63 | difference = 'Difference' |
| 64 | 64 | distance = 'Distance' |
| 65 | 65 | envelope = 'Envelope' |
| | 66 | gml = 'AsGML' |
| 66 | 67 | intersection = 'Intersection' |
| | 68 | kml = 'AsKML' |
| 67 | 69 | length = 'GLength' # OpenGis defines Length, but this conflicts with an SQLite reserved keyword |
| 68 | 70 | num_geom = 'NumGeometries' |
| 69 | 71 | num_points = 'NumPoints' |
diff --git a/django/contrib/gis/tests/geoapp/tests.py b/django/contrib/gis/tests/geoapp/tests.py
index 296f128..e66030e 100644
|
a
|
b
|
class GeoModelTest(TestCase):
|
| 93 | 93 | |
| 94 | 94 | def test03a_kml(self): |
| 95 | 95 | "Testing KML output from the database using GeoQuerySet.kml()." |
| 96 | | # Only PostGIS supports KML serialization |
| 97 | | if not postgis: |
| | 96 | # Only PostGIS and Spatialite support KML serialization |
| | 97 | if not postgis or spatialite: |
| 98 | 98 | self.assertRaises(NotImplementedError, State.objects.all().kml, field_name='poly') |
| 99 | 99 | return |
| 100 | 100 | |
| … |
… |
class GeoModelTest(TestCase):
|
| 118 | 118 | |
| 119 | 119 | def test03b_gml(self): |
| 120 | 120 | "Testing GML output from the database using GeoQuerySet.gml()." |
| 121 | | if mysql or spatialite: |
| | 121 | if mysql: |
| 122 | 122 | self.assertRaises(NotImplementedError, Country.objects.all().gml, field_name='mpoly') |
| 123 | 123 | return |
| 124 | 124 | |
diff --git a/docs/ref/contrib/gis/db-api.txt b/docs/ref/contrib/gis/db-api.txt
index fbced8e..871defe 100644
|
a
|
b
|
Method PostGIS Oracle SpatiaLite
|
| 311 | 311 | :meth:`GeoQuerySet.force_rhr` X |
| 312 | 312 | :meth:`GeoQuerySet.geohash` X |
| 313 | 313 | :meth:`GeoQuerySet.geojson` X |
| 314 | | :meth:`GeoQuerySet.gml` X X |
| | 314 | :meth:`GeoQuerySet.gml` X X X |
| 315 | 315 | :meth:`GeoQuerySet.intersection` X X X |
| 316 | | :meth:`GeoQuerySet.kml` X |
| | 316 | :meth:`GeoQuerySet.kml` X X |
| 317 | 317 | :meth:`GeoQuerySet.length` X X X |
| 318 | 318 | :meth:`GeoQuerySet.make_line` X |
| 319 | 319 | :meth:`GeoQuerySet.mem_size` X |