Hello,

Is it possible to convert a geometry.collection (multipoint) to gml?

This is what I have so far:

var geometry_collection = new OpenLayers.Geometry.MultiPoint();
vectorLayer.features.each(function(ff, index) {
geometry_collection.addPoint(ff.geometry);
});

var writer = new OpenLayers.Format.GML();
var gml = writer.buildGeometry.multipoint(geometry_collection);
alert(gml);

But is get the following error:  this.createElementNS is not a function

Met vriendelijke groet,
Lucas Heezen

[Beschrijving: http://www.covadis.nl/emailkop/logo.gif]

Covadis b.v.

t: 026 3616600

Geograaf 12

f: 026 3612317

6921 EW Duiven

e: [email protected]<mailto:[email protected]>


<<inline: image001.gif>>

_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to