From aefae985cf57aa69ca565fff1e7bd4045f7179cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Sipma?= Date: Wed, 29 Jan 2014 11:52:46 +0100 Subject: [PATCH] use name instead of link in geojson crs --- geodata/views.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/geodata/views.py b/geodata/views.py index a277e86..2157559 100644 --- a/geodata/views.py +++ b/geodata/views.py @@ -40,10 +40,10 @@ def convert_context_to_json(self, context): m = self.get_object() data = {'crs': { - "type": "link", + "type": "name", "properties": { - "href": "http://spatialreference.org/ref/epsg/4326/", - "type": "proj4"} + "name": "urn:ogc:def:crs:OGC:1.3:CRS84" + } }, 'type': "Feature", 'geometry': json.loads(m.geometry.geojson), @@ -63,10 +63,10 @@ def convert_context_to_json(self, context): queryset = self.get_queryset() data = {'crs': { - "type": "link", + "type": "name", "properties": { - "href": "http://spatialreference.org/ref/epsg/4326/", - "type": "proj4"} + "name": "urn:ogc:def:crs:OGC:1.3:CRS84" + } }, 'type': "FeatureCollection", 'features':