#region Disclaimer / License // Copyright (C) 2009, Kenneth Skovhede // http://www.hexad.dk, opensource@hexad.dk // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either // version 2.1 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, write to the Free Software // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // #endregion namespace OSGeo.MapGuide.MaestroAPI { /// [System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=false)] public class FdoSpatialContextList { public static readonly string SchemaName = "FdoSpatialContextList-1.0.0.xsd"; [System.Xml.Serialization.XmlAttribute("noNamespaceSchemaLocation", Namespace="http://www.w3.org/2001/XMLSchema-instance")] public string XsdSchema { get { return SchemaName; } set { if (value != SchemaName) throw new System.Exception("Cannot set the schema name"); } } private string m_providerName; private FdoSpatialContextListSpatialContextCollection m_spatialContext; /// public string ProviderName { get { return this.m_providerName; } set { this.m_providerName = value; } } /// [System.Xml.Serialization.XmlElementAttribute("SpatialContext")] public FdoSpatialContextListSpatialContextCollection SpatialContext { get { return this.m_spatialContext; } set { this.m_spatialContext = value; } } } /// public class FdoSpatialContextListSpatialContext { private string m_name; private string m_description; private string m_coordinateSystemName; private string m_coordinateSystemWkt; private FdoSpatialContextListSpatialContextExtentType m_extentType; private FdoSpatialContextListSpatialContextExtent m_extent; private System.Double m_xYTolerance; private System.Double m_zTolerance; private bool m_isActive = false; /// public string Name { get { return this.m_name; } set { this.m_name = value; } } /// public string Description { get { return this.m_description; } set { this.m_description = value; } } /// public string CoordinateSystemName { get { return this.m_coordinateSystemName; } set { this.m_coordinateSystemName = value; } } /// public string CoordinateSystemWkt { get { return this.m_coordinateSystemWkt; } set { this.m_coordinateSystemWkt = value; } } /// public FdoSpatialContextListSpatialContextExtentType ExtentType { get { return this.m_extentType; } set { this.m_extentType = value; } } /// public FdoSpatialContextListSpatialContextExtent Extent { get { return this.m_extent; } set { this.m_extent = value; } } /// public System.Double XYTolerance { get { return this.m_xYTolerance; } set { this.m_xYTolerance = value; } } /// public System.Double ZTolerance { get { return this.m_zTolerance; } set { this.m_zTolerance = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] [System.ComponentModel.DefaultValueAttribute(false)] public bool IsActive { get { return this.m_isActive; } set { this.m_isActive = value; } } } /// public enum FdoSpatialContextListSpatialContextExtentType { /// Static, /// Dynamic, } /// public class FdoSpatialContextListSpatialContextExtent { private FdoSpatialContextListSpatialContextExtentLowerLeftCoordinate m_lowerLeftCoordinate; private FdoSpatialContextListSpatialContextExtentUpperRightCoordinate m_upperRightCoordinate; /// public FdoSpatialContextListSpatialContextExtentLowerLeftCoordinate LowerLeftCoordinate { get { return this.m_lowerLeftCoordinate; } set { this.m_lowerLeftCoordinate = value; } } /// public FdoSpatialContextListSpatialContextExtentUpperRightCoordinate UpperRightCoordinate { get { return this.m_upperRightCoordinate; } set { this.m_upperRightCoordinate = value; } } } /// public class FdoSpatialContextListSpatialContextExtentLowerLeftCoordinate { private string m_x; private string m_y; private string m_z; private string m_m; /// public string X { get { return this.m_x; } set { this.m_x = value; } } /// public string Y { get { return this.m_y; } set { this.m_y = value; } } /// public string Z { get { return this.m_z; } set { this.m_z = value; } } /// public string M { get { return this.m_m; } set { this.m_m = value; } } } /// public class FdoSpatialContextListSpatialContextExtentUpperRightCoordinate { private string m_x; private string m_y; private string m_z; private string m_m; /// public string X { get { return this.m_x; } set { this.m_x = value; } } /// public string Y { get { return this.m_y; } set { this.m_y = value; } } /// public string Z { get { return this.m_z; } set { this.m_z = value; } } /// public string M { get { return this.m_m; } set { this.m_m = value; } } } public class FdoSpatialContextListSpatialContextCollection : System.Collections.CollectionBase { public FdoSpatialContextListSpatialContext this[int idx] { get { return ((FdoSpatialContextListSpatialContext)(base.InnerList[idx])); } set { base.InnerList[idx] = value; } } public int Add(FdoSpatialContextListSpatialContext value) { return base.InnerList.Add(value); } } }