From 06f2ddeb51517c6754ccd5a69d00f5b29cd899c3 Mon Sep 17 00:00:00 2001 From: Justin Bronn Date: Mon, 28 Jan 2008 16:31:41 +0000 Subject: [PATCH] gis: Fixed #6440. Removed degree conversion from `Distance` -- should not have been placed here because it is a spherical conversion factor in radians (not meters). git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@7047 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/gis/measure.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/django/contrib/gis/measure.py b/django/contrib/gis/measure.py index b04d8c8f29..5af5ab40f6 100644 --- a/django/contrib/gis/measure.py +++ b/django/contrib/gis/measure.py @@ -48,7 +48,6 @@ class Distance(object): 'cm' : 0.01, 'british_ft' : 0.304799471539, 'british_yd' : 0.914398414616, - 'degree' : 0.0174532925199, 'clarke_ft' : 0.3047972654, 'clarke_link' : 0.201166195164, 'fathom' : 1.8288, @@ -99,7 +98,6 @@ class Distance(object): "Clarke's link" : 'clarke_link', 'Chain (Benoit)' : 'chain_benoit', 'Chain (Sears)' : 'chain_sears', - 'Decimal Degree' : 'degree', 'Foot (International)' : 'ft', 'German legal metre' : 'german_m', 'Gold Coast foot' : 'gold_coast_ft',