Skip to content

Commit

Permalink
use name instead of link in geojson crs
Browse files Browse the repository at this point in the history
  • Loading branch information
Félix Sipma committed Jan 29, 2014
1 parent 90bc5d7 commit aefae98
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions geodata/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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':
Expand Down

0 comments on commit aefae98

Please sign in to comment.