3 * Copyright (c) 2008 Paolo Molaro lupus@oddwiz.org
4 * License: MIT/X11, see the MIT.X11 file.
8 using System
.Collections
.Specialized
;
10 namespace OpenStreetMap
{
12 public class Way
: OsmObject
{
15 public override string ObjectType
{
29 throw new ArgumentNullException ("value");
30 nodes
= value.Clone () as long [];
35 public override void WriteXml (XmlTextWriter writer
)
37 writer
.WriteStartElement ("way");
38 WriteCommonAttrs (writer
);
39 for (int i
= 0; i
< nodes
.Length
; ++i
) {
40 writer
.WriteStartElement ("nd");
41 writer
.WriteAttributeString ("ref", nodes
[i
].ToString ());
42 writer
.WriteEndElement ();
45 writer
.WriteEndElement ();