using System; using System.Collections.Generic; using System.Text; namespace FastReport.Map.Import.Osm { internal class OsmNode { #region Fields private double lat; private double lon; private bool hasParent; private Dictionary tags; #endregion // Fields #region Properties public double Lat { get { return lat; } set { lat = value; } } public double Lon { get { return lon; } set { lon = value; } } public bool HasParent { get { return hasParent; } set { hasParent = value; } } public Dictionary Tags { get { return tags; } set { tags = value; } } #endregion // Properties #region Constructors public OsmNode(double lat, double lon) { this.lat = lat; this.lon = lon; hasParent = false; } public OsmNode(double lat, double lon, Dictionary tags) { this.lat = lat; this.lon = lon; hasParent = false; this.tags = tags; } #endregion // Constructors } internal class OsmWay { #region Fields private List nodeRefs; private Dictionary tags; #endregion // Fields #region Properties public List NodeRefs { get { return nodeRefs; } set { nodeRefs = value; } } public Dictionary Tags { get { return tags; } set { tags = value; } } #endregion // Properties #region Constructors public OsmWay(List nodeRefs) { this.nodeRefs = nodeRefs; } public OsmWay(List nodeRefs, Dictionary tags) { this.nodeRefs = nodeRefs; this.tags = tags; } #endregion // Constructors } internal class OsmRelation { #region Fields private List nodeRefs; private List wayRefs; #endregion // Fields #region Properties public List NodeRefs { get { return nodeRefs; } set { nodeRefs = value; } } public List WayRefs { get { return wayRefs; } set { wayRefs = value; } } #endregion // Properties #region Constructors public OsmRelation(List nodeRefs, List wayRefs) { this.nodeRefs = nodeRefs; this.wayRefs = wayRefs; } #endregion // Constructors } }