﻿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
13926	GeometryCollections are not visible in OSMGeoAdmin	anonymous	nobody	"Geometry collections fail to display in OSMGeoAdmin.

The bug appears in the geodjango_geom.write_wkt function:

{{{
#!javascript
geodjango_geom.write_wkt = function(feat){
if (geodjango_geom.is_collection){ geodjango_geom.num_geom = feat.geometry.components.length;}
  else { geodjango_geom.num_geom = 1;}
  document.getElementById('id_geom').value = geodjango_geom.get_ewkt(feat);
} 
}}}

If 'feat' is a geometry collection, it does not have a geometry property, but it is an array of type OpenLayers.Feature.Vector."	Bug	closed	GIS	1.7	Normal	needsinfo		apasotti@…	Accepted	1	0	0	1	0	0
