#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
using System.Collections.Specialized;
namespace OSGeo.MapGuide.MaestroAPI
{
///
[System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=false)]
public class LoadProcedure : LoadProcedureTypeType {
public static readonly string SchemaName = "LoadProcedure-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"); }
}
}
///
[System.Xml.Serialization.XmlIncludeAttribute(typeof(LoadProcedure))]
public class LoadProcedureTypeType {
private LoadProcedureType m_item;
///
[System.Xml.Serialization.XmlElementAttribute("ShpLoadProcedure", typeof(ShpLoadProcedureType))]
[System.Xml.Serialization.XmlElementAttribute("DwfLoadProcedure", typeof(DwfLoadProcedureType))]
[System.Xml.Serialization.XmlElementAttribute("SdfLoadProcedure", typeof(SdfLoadProcedureType))]
[System.Xml.Serialization.XmlElementAttribute("RasterLoadProcedure", typeof(RasterLoadProcedureType))]
[System.Xml.Serialization.XmlElementAttribute("DwgLoadProcedure", typeof(DwgLoadProcedureType))]
public LoadProcedureType Item {
get {
return this.m_item;
}
set {
this.m_item = value;
}
}
}
///
public class ShpLoadProcedureType : LoadProcedureType {
private System.Double m_generalization;
private bool m_convertToSdf;
///
public System.Double Generalization {
get {
return this.m_generalization;
}
set {
this.m_generalization = value;
}
}
///
public bool ConvertToSdf {
get {
return this.m_convertToSdf;
}
set {
this.m_convertToSdf = value;
}
}
}
///
[System.Xml.Serialization.XmlIncludeAttribute(typeof(SdfLoadProcedureType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(DwfLoadProcedureType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(RasterLoadProcedureType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(DwgLoadProcedureType))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(ShpLoadProcedureType))]
public class LoadProcedureType {
private string[] m_sourceFile;
private string m_rootPath;
private string m_coordinateSystem;
private bool m_generateSpatialDataSources;
private string m_spatialDataSourcesPath;
private string m_spatialDataSourcesFolder;
private bool m_generateLayers;
private string m_layersPath;
private string m_layersFolder;
private bool m_generateMaps;
private bool m_generateMapsSpecified;
private string m_mapsPath;
private string m_mapsFolder;
private bool m_generateSymbolLibraries;
private bool m_generateSymbolLibrariesSpecified;
private string m_symbolLibrariesPath;
private string m_symbolLibrariesFolder;
private string[] m_resourceId;
///
[System.Xml.Serialization.XmlElementAttribute("SourceFile")]
public string[] SourceFile {
get {
return this.m_sourceFile;
}
set {
this.m_sourceFile = value;
}
}
///
public string RootPath {
get {
return this.m_rootPath;
}
set {
this.m_rootPath = value;
}
}
///
public string CoordinateSystem {
get {
return this.m_coordinateSystem;
}
set {
this.m_coordinateSystem = value;
}
}
///
public bool GenerateSpatialDataSources {
get {
return this.m_generateSpatialDataSources;
}
set {
this.m_generateSpatialDataSources = value;
}
}
///
public string SpatialDataSourcesPath {
get {
return this.m_spatialDataSourcesPath;
}
set {
this.m_spatialDataSourcesPath = value;
}
}
///
public string SpatialDataSourcesFolder {
get {
return this.m_spatialDataSourcesFolder;
}
set {
this.m_spatialDataSourcesFolder = value;
}
}
///
public bool GenerateLayers {
get {
return this.m_generateLayers;
}
set {
this.m_generateLayers = value;
}
}
///
public string LayersPath {
get {
return this.m_layersPath;
}
set {
this.m_layersPath = value;
}
}
///
public string LayersFolder {
get {
return this.m_layersFolder;
}
set {
this.m_layersFolder = value;
}
}
///
public bool GenerateMaps {
get {
return this.m_generateMaps;
}
set {
this.m_generateMaps = value;
}
}
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool GenerateMapsSpecified {
get {
return this.m_generateMapsSpecified;
}
set {
this.m_generateMapsSpecified = value;
}
}
///
public string MapsPath {
get {
return this.m_mapsPath;
}
set {
this.m_mapsPath = value;
}
}
///
public string MapsFolder {
get {
return this.m_mapsFolder;
}
set {
this.m_mapsFolder = value;
}
}
///
public bool GenerateSymbolLibraries {
get {
return this.m_generateSymbolLibraries;
}
set {
this.m_generateSymbolLibraries = value;
}
}
///
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool GenerateSymbolLibrariesSpecified {
get {
return this.m_generateSymbolLibrariesSpecified;
}
set {
this.m_generateSymbolLibrariesSpecified = value;
}
}
///
public string SymbolLibrariesPath {
get {
return this.m_symbolLibrariesPath;
}
set {
this.m_symbolLibrariesPath = value;
}
}
///
public string SymbolLibrariesFolder {
get {
return this.m_symbolLibrariesFolder;
}
set {
this.m_symbolLibrariesFolder = value;
}
}
///
[System.Xml.Serialization.XmlElementAttribute("ResourceId")]
public string[] ResourceId {
get {
return this.m_resourceId;
}
set {
this.m_resourceId = value;
}
}
}
///
public class GeoReferenceOverrideType {
private string m_sourceFile;
private System.Double m_locationX;
private System.Double m_locationY;
private System.Double m_scaleX;
private System.Double m_scaleY;
///
public string SourceFile {
get {
return this.m_sourceFile;
}
set {
this.m_sourceFile = value;
}
}
///
public System.Double LocationX {
get {
return this.m_locationX;
}
set {
this.m_locationX = value;
}
}
///
public System.Double LocationY {
get {
return this.m_locationY;
}
set {
this.m_locationY = value;
}
}
///
public System.Double ScaleX {
get {
return this.m_scaleX;
}
set {
this.m_scaleX = value;
}
}
///
public System.Double ScaleY {
get {
return this.m_scaleY;
}
set {
this.m_scaleY = value;
}
}
}
///
public class DwgDriveAliasType {
private string m_name;
private string m_path;
///
public string Name {
get {
return this.m_name;
}
set {
this.m_name = value;
}
}
///
public string Path {
get {
return this.m_path;
}
set {
this.m_path = value;
}
}
}
///
public class DwgComponentType {
private DwgComponentTypeType m_type;
private string m_name;
private string m_dwgHandle;
private bool m_selected;
private DwgComponentTypeCollection m_children;
///
public DwgComponentTypeType Type {
get {
return this.m_type;
}
set {
this.m_type = value;
}
}
///
public string Name {
get {
return this.m_name;
}
set {
this.m_name = value;
}
}
///
public string DwgHandle {
get {
return this.m_dwgHandle;
}
set {
this.m_dwgHandle = value;
}
}
///
public bool Selected {
get {
return this.m_selected;
}
set {
this.m_selected = value;
}
}
///
[System.Xml.Serialization.XmlElementAttribute("Children")]
public DwgComponentTypeCollection Children {
get {
return this.m_children;
}
set {
this.m_children = value;
}
}
}
///
public enum DwgComponentTypeType {
///
Dwg,
///
Map,
///
Group,
///
Element,
///
Layer,
///
QueryCategory,
///
Query,
///
ThematicMap,
///
Theme,
}
///
public class SdfLoadProcedureType : LoadProcedureType {
private System.Double m_generalization;
private SdfKeyTreatmentType m_sdfKeyTreatment;
///
public System.Double Generalization {
get {
return this.m_generalization;
}
set {
this.m_generalization = value;
}
}
///
public SdfKeyTreatmentType SdfKeyTreatment {
get {
return this.m_sdfKeyTreatment;
}
set {
this.m_sdfKeyTreatment = value;
}
}
}
///
public enum SdfKeyTreatmentType {
///
AutogenerateAll,
///
DiscardDuplicates,
///
MergeDuplicates,
}
///
public class DwfLoadProcedureType : LoadProcedureType {
}
///
public class RasterLoadProcedureType : LoadProcedureType {
private string m_featureSourceName;
private System.Double m_subsampleFactor;
private OverlapTreatmentType m_overlapTreatmentType;
private GeoReferenceOverrideTypeCollection m_geoReferenceOverride;
///
public string FeatureSourceName {
get {
return this.m_featureSourceName;
}
set {
this.m_featureSourceName = value;
}
}
///
public System.Double SubsampleFactor {
get {
return this.m_subsampleFactor;
}
set {
this.m_subsampleFactor = value;
}
}
///
public OverlapTreatmentType OverlapTreatmentType {
get {
return this.m_overlapTreatmentType;
}
set {
this.m_overlapTreatmentType = value;
}
}
///
[System.Xml.Serialization.XmlElementAttribute("GeoReferenceOverride")]
public GeoReferenceOverrideTypeCollection GeoReferenceOverride {
get {
return this.m_geoReferenceOverride;
}
set {
this.m_geoReferenceOverride = value;
}
}
}
///
public enum OverlapTreatmentType {
///
None,
///
ForegroundOn,
///
ForegroundOff,
}
///
public class DwgLoadProcedureType : LoadProcedureType {
private DwgComponentTypeCollection m_components;
private DwgResourceTypeType m_resourceType;
private bool m_combineComponents;
private System.Double m_generalization;
private bool m_closedPolylinesToPolygons;
private DwgDriveAliasTypeCollection m_dwgDriveAlias;
///
[System.Xml.Serialization.XmlArrayItemAttribute("Component", IsNullable=false)]
public DwgComponentTypeCollection Components {
get {
return this.m_components;
}
set {
this.m_components = value;
}
}
///
public DwgResourceTypeType ResourceType {
get {
return this.m_resourceType;
}
set {
this.m_resourceType = value;
}
}
///
public bool CombineComponents {
get {
return this.m_combineComponents;
}
set {
this.m_combineComponents = value;
}
}
///
public System.Double Generalization {
get {
return this.m_generalization;
}
set {
this.m_generalization = value;
}
}
///
public bool ClosedPolylinesToPolygons {
get {
return this.m_closedPolylinesToPolygons;
}
set {
this.m_closedPolylinesToPolygons = value;
}
}
///
[System.Xml.Serialization.XmlElementAttribute("DwgDriveAlias")]
public DwgDriveAliasTypeCollection DwgDriveAlias {
get {
return this.m_dwgDriveAlias;
}
set {
this.m_dwgDriveAlias = value;
}
}
}
///
public enum DwgResourceTypeType {
///
Feature,
///
Drawing,
}
public class DwgComponentTypeCollection : System.Collections.CollectionBase {
public DwgComponentType this[int idx] {
get {
return ((DwgComponentType)(base.InnerList[idx]));
}
set {
base.InnerList[idx] = value;
}
}
public int Add(DwgComponentType value) {
return base.InnerList.Add(value);
}
}
public class GeoReferenceOverrideTypeCollection : System.Collections.CollectionBase {
public GeoReferenceOverrideType this[int idx] {
get {
return ((GeoReferenceOverrideType)(base.InnerList[idx]));
}
set {
base.InnerList[idx] = value;
}
}
public int Add(GeoReferenceOverrideType value) {
return base.InnerList.Add(value);
}
}
public class DwgDriveAliasTypeCollection : System.Collections.CollectionBase {
public DwgDriveAliasType this[int idx] {
get {
return ((DwgDriveAliasType)(base.InnerList[idx]));
}
set {
base.InnerList[idx] = value;
}
}
public int Add(DwgDriveAliasType value) {
return base.InnerList.Add(value);
}
}
}