﻿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
18887	LineString array method (property) returns different data type without and with NumPy installed	mal		"Apparently LineString (and probably other geometry types) return data in different types depending on whether NumPy is installed.


Simple test case (reproducible in Django 1.3, 1.3.1 and 1.4.1).

Clean virtual env with only Django installed (and ipython).
First - no NumPy installed.

{{{
In [1]: from django.contrib.gis.geos import LineString
In [2]: line = LineString((0, 0), (3, 3))
In [3]: line.array
Out[3]: [(0.0, 0.0), (3.0, 3.0)]
}}}

Now - install NumPy and try again.

{{{
In [1]: from django.contrib.gis.geos import LineString
In [2]: line = LineString((0, 0), (3, 3))
In [3]: line.array
Out[3]:
array([[ 0.,  0.],
       [ 3.,  3.]])
}}}

[(0.0, 0.0), (3.0, 3.0)] =! array([[ 0., 0.],[ 3., 3.]])

This is rather serious issue."	Cleanup/optimization	new	GIS	1.4	Normal		GIS, NumPy, LineString	deprince@… Ubercore	Accepted	1	1	0	1	0	0
