Ejemplo n.º 1
0
        public XmlNode ToXml(XmlNode parent)
        {
            XmlNode result = parent.OwnerDocument.CreateNode(XmlNodeType.Element, "LatLoBox", string.Empty);
            // child nodes
            XmlNode nodNorth = result.OwnerDocument.CreateNode(XmlNodeType.Element, "north", string.Empty);

            nodNorth.InnerText = North.ToString();
            result.AppendChild(nodNorth);

            XmlNode nodSouth = result.OwnerDocument.CreateNode(XmlNodeType.Element, "south", string.Empty);

            nodSouth.InnerText = South.ToString();
            result.AppendChild(nodSouth);

            XmlNode nodEast = result.OwnerDocument.CreateNode(XmlNodeType.Element, "east", string.Empty);

            nodEast.InnerText = East.ToString();
            result.AppendChild(nodEast);

            XmlNode nodWest = result.OwnerDocument.CreateNode(XmlNodeType.Element, "west", string.Empty);

            nodWest.InnerText = West.ToString();
            result.AppendChild(nodWest);

            XmlNode nodRotation = result.OwnerDocument.CreateNode(XmlNodeType.Element, "rotation", string.Empty);

            nodRotation.InnerText = Rotation.ToString();
            result.AppendChild(nodRotation);

            return(result);
        }
Ejemplo n.º 2
0
 public override void WriteLayerProperties(System.Xml.XmlTextWriter xmlWriter)
 {
     xmlWriter.WriteAttributeString("North", North.ToString());
     xmlWriter.WriteAttributeString("South", South.ToString());
     xmlWriter.WriteAttributeString("East", East.ToString());
     xmlWriter.WriteAttributeString("West", West.ToString());
     xmlWriter.WriteAttributeString("Rotation", Rotation.ToString());
     xmlWriter.WriteAttributeString("Altitude", Altitude.ToString());
 }
Ejemplo n.º 3
0
        public override String  ToString()
        {
            StringBuilder sb = new StringBuilder();

            sb.Append(geomType);
            sb.Append("((");
            sb.Append(West.ToString() + " " + South.ToString());
            sb.Append(XYPairSeparator);
            sb.Append(East.ToString() + " " + North.ToString());
            sb.Append("))");
            return(sb.ToString());
        }
Ejemplo n.º 4
0
        public override void WriteLayerProperties(System.Xml.XmlTextWriter xmlWriter)
        {
            xmlWriter.WriteAttributeString("North", North.ToString());
            xmlWriter.WriteAttributeString("South", South.ToString());
            xmlWriter.WriteAttributeString("East", East.ToString());
            xmlWriter.WriteAttributeString("West", West.ToString());
            xmlWriter.WriteAttributeString("Rotation", Rotation.ToString());
            xmlWriter.WriteAttributeString("Altitude", Altitude.ToString());

            xmlWriter.WriteAttributeString("Height", Height.ToString());
            xmlWriter.WriteAttributeString("Width", Width.ToString());
            xmlWriter.WriteAttributeString("SeriesStartTime", SeriesStartTime.ToString("o"));
            xmlWriter.WriteAttributeString("SeriesEndTime", SeriesEndTime.ToString("o"));
            xmlWriter.WriteAttributeString("TimeStep", TimeStep.ToString());
            xmlWriter.WriteAttributeString("ServiceUrl", ServiceUrl);
            xmlWriter.WriteAttributeString("Layers", Layers);
            xmlWriter.WriteAttributeString("Styles", Styles);
            xmlWriter.WriteAttributeString("Version", WmsVersion);
            xmlWriter.WriteAttributeString("TimeRanges", GetDateRangeString());
        }
Ejemplo n.º 5
0
        public XmlNode ToXml(XmlNode parent)
        {
            XmlNode result = parent.OwnerDocument.CreateNode(XmlNodeType.Element, "LatLonAltBox", string.Empty);
            // child nodes
            XmlNode nodNorth = result.OwnerDocument.CreateNode(XmlNodeType.Element, "north", string.Empty);

            nodNorth.InnerText = North.ToString();
            result.AppendChild(nodNorth);

            XmlNode nodSouth = result.OwnerDocument.CreateNode(XmlNodeType.Element, "south", string.Empty);

            nodSouth.InnerText = South.ToString();
            result.AppendChild(nodSouth);

            XmlNode nodEast = result.OwnerDocument.CreateNode(XmlNodeType.Element, "east", string.Empty);

            nodEast.InnerText = East.ToString();
            result.AppendChild(nodEast);

            XmlNode nodWest = result.OwnerDocument.CreateNode(XmlNodeType.Element, "west", string.Empty);

            nodWest.InnerText = West.ToString();
            result.AppendChild(nodWest);

            XmlNode nodMinAltitude = result.OwnerDocument.CreateNode(XmlNodeType.Element, "minAltitude", string.Empty);

            nodMinAltitude.InnerText = MinAltitude.ToString();
            result.AppendChild(nodMinAltitude);

            XmlNode nodMaxAltitude = result.OwnerDocument.CreateNode(XmlNodeType.Element, "maxAltitude", string.Empty);

            nodMaxAltitude.InnerText = MaxAltitude.ToString();
            result.AppendChild(nodMaxAltitude);

            XmlNode nodMode = result.OwnerDocument.CreateNode(XmlNodeType.Element, "altitudeMode", string.Empty);

            nodMode.InnerText = AltitudeMode;
            result.AppendChild(nodMode);

            return(result);
        }
Ejemplo n.º 6
0
        /// <summary>
        /// ueberschreibe Base.ToString. Für mehr Log-Informationen zu erhalten
        /// </summary>
        /// <returns></returns>
        public override string ToString()
        {
            string strLogDirections = "North=" + North.ToString() + ", East=" + East.ToString() + ", South=" + South.ToString() + ", West=" + West.ToString();

            return(strLogDirections);
        }