Beispiel #1
0
 internal StyleType()
 {
     this.Name          = string.Empty;
     this.Title         = string.Empty;
     this.Abstract      = string.Empty;
     this.StyleUri      = new UriAndFormatType();
     this.StyleSheetUri = new UriAndFormatType();
     this.LegendUri     = new LogoOrLegendUriType();
 }
Beispiel #2
0
        // All the following use XPath search strings to find various bits of information in the
        // server's WMS capabilities description.

        internal static UriAndFormatType[] GetUriAndFormatInstances(System.Xml.XPath.XPathNavigator node, string pattern)
        {
            System.Xml.XPath.XPathNodeIterator iter = node.Select(Capabilities.ExpandPattern(pattern));
            UriAndFormatType[] retVal = new UriAndFormatType[iter.Count];
            while (iter.MoveNext())
            {
                int i = iter.CurrentPosition - 1;
                retVal[i]        = new UriAndFormatType();
                retVal[i].Format = Capabilities.GetStringInstance(iter.Current, @"./Format");
                retVal[i].Uri    = Capabilities.GetOnlineResourceInstance(iter.Current, @"./OnlineResource");
            }
            return(retVal);
        }
Beispiel #3
0
            public override bool Equals(System.Object obj)
            {
                if (obj == null)
                {
                    return(false);
                }

                if (this == obj)
                {
                    return(true);
                }

                if (obj.GetType() != this.GetType())
                {
                    return(false);
                }

                UriAndFormatType t = (UriAndFormatType)obj;

                return(this.Uri.Equals(t.Uri) && this.Format.Equals(t.Format));
            }
Beispiel #4
0
 internal LogoOrLegendUriType()
 {
     this.Uri = new UriAndFormatType();
 }
Beispiel #5
0
 internal MetadataUriType()
 {
     this.Type        = string.Empty;
     this.MetadataUri = new UriAndFormatType();
 }