summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Fedoseev <fedoseev.sergey@gmail.com>2017-07-13 01:11:11 +0600
committerTim Graham <timograham@gmail.com>2017-07-12 15:11:11 -0400
commit815a0bb80de7bdbabe0d865e8f37fa7e9b64c095 (patch)
tree3bea4a6431a7ac7ca3291052c522519f3a80fd59
parente19b9d601574693e0b9d4769a9c9e4a4ed2fa01e (diff)
Refs #28020 -- Removed obsolete GeometryCollection.json.
Unused since 12d0567aa5e82322543f0c0c126ba18c91a1e439.
-rw-r--r--django/contrib/gis/geos/collections.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/django/contrib/gis/geos/collections.py b/django/contrib/gis/geos/collections.py
index 83df035b07..b8055d49f1 100644
--- a/django/contrib/gis/geos/collections.py
+++ b/django/contrib/gis/geos/collections.py
@@ -2,7 +2,6 @@
This module houses the Geometry Collection objects:
GeometryCollection, MultiPoint, MultiLineString, and MultiPolygon
"""
-import json
from ctypes import byref, c_int, c_uint
from django.contrib.gis.geos import prototypes as capi
@@ -79,19 +78,6 @@ class GeometryCollection(GEOSGeometry):
_assign_extended_slice = GEOSGeometry._assign_extended_slice_rebuild
@property
- def json(self):
- if self.__class__.__name__ == 'GeometryCollection':
- return json.dumps({
- 'type': self.__class__.__name__,
- 'geometries': [
- {'type': geom.__class__.__name__, 'coordinates': geom.coords}
- for geom in self
- ],
- })
- return super().json
- geojson = json
-
- @property
def kml(self):
"Return the KML for this Geometry Collection."
return '<MultiGeometry>%s</MultiGeometry>' % ''.join(g.kml for g in self)