﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
4797	Dimensioned units of measure for Distance and Area	robert.coup@…	Jeremy Dunck	"I've attached a basic implementation (Distance & Area) of dimensioned units for the GIS module. This follows on from our [http://code.djangoproject.com/wiki/GeoDjangoDiscussion discussions]. There are tests included.

Basic usage:
{{{
>>> from django.contrib.gis.measure import Distance, Area, D, A
>>> # Create some distances
>>> d1 = Distance(m=100)
>>> d2 = D(mi=12.5)
>>> d3 = D(ft=500)
>>> # Get values out in different units
>>> d1.mi
0.062137119223733397
>>> d3.km
0.15240000000000001
>>> d1 + d2
Distance(m=20216.8)
>>> d3 + 7
TypeError: Distance must be added with Distance
}}}

The following units are available:
 * Distance: m, km, mi, ft, yd, nm
 * Area: sq_m, sq_km, sq_mi, sq_ft, sq_yd, sq_nm

Anyway, I'd appreciate comments or suggestions."		closed	GIS	dev		fixed		jbronn jdunck@…	Ready for checkin	1	0	0	0	0	0
