You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
348 lines
13 KiB
348 lines
13 KiB
using System; |
|
using System.Collections.Generic; |
|
using System.Xml; |
|
using System.Xml.Serialization; |
|
|
|
namespace Kingo.Framework.LayerStyleConvert.XSDClass |
|
{ |
|
// Token: 0x02000056 RID: 86 |
|
[XmlRoot] |
|
[Serializable] |
|
public class DEFeatureClassInfo |
|
{ |
|
// Token: 0x17000111 RID: 273 |
|
// (get) Token: 0x06000334 RID: 820 RVA: 0x00014694 File Offset: 0x00012894 |
|
// (set) Token: 0x06000335 RID: 821 RVA: 0x000146AB File Offset: 0x000128AB |
|
public string CatalogPath { get; set; } |
|
|
|
// Token: 0x17000112 RID: 274 |
|
// (get) Token: 0x06000336 RID: 822 RVA: 0x000146B4 File Offset: 0x000128B4 |
|
// (set) Token: 0x06000337 RID: 823 RVA: 0x000146CB File Offset: 0x000128CB |
|
public string Name { get; set; } |
|
|
|
// Token: 0x17000113 RID: 275 |
|
// (get) Token: 0x06000338 RID: 824 RVA: 0x000146D4 File Offset: 0x000128D4 |
|
// (set) Token: 0x06000339 RID: 825 RVA: 0x000146EB File Offset: 0x000128EB |
|
public bool ChildrenExpanded { get; set; } |
|
|
|
// Token: 0x17000114 RID: 276 |
|
// (get) Token: 0x0600033A RID: 826 RVA: 0x000146F4 File Offset: 0x000128F4 |
|
// (set) Token: 0x0600033B RID: 827 RVA: 0x0001470B File Offset: 0x0001290B |
|
public esriDatasetType DatasetType { get; set; } |
|
|
|
// Token: 0x17000115 RID: 277 |
|
// (get) Token: 0x0600033C RID: 828 RVA: 0x00014714 File Offset: 0x00012914 |
|
// (set) Token: 0x0600033D RID: 829 RVA: 0x0001472B File Offset: 0x0001292B |
|
public int DSID { get; set; } |
|
|
|
// Token: 0x17000116 RID: 278 |
|
// (get) Token: 0x0600033E RID: 830 RVA: 0x00014734 File Offset: 0x00012934 |
|
// (set) Token: 0x0600033F RID: 831 RVA: 0x0001474B File Offset: 0x0001294B |
|
public bool Versioned { get; set; } |
|
|
|
// Token: 0x17000117 RID: 279 |
|
// (get) Token: 0x06000340 RID: 832 RVA: 0x00014754 File Offset: 0x00012954 |
|
// (set) Token: 0x06000341 RID: 833 RVA: 0x0001476B File Offset: 0x0001296B |
|
public bool CanVersion { get; set; } |
|
|
|
// Token: 0x17000118 RID: 280 |
|
// (get) Token: 0x06000342 RID: 834 RVA: 0x00014774 File Offset: 0x00012974 |
|
// (set) Token: 0x06000343 RID: 835 RVA: 0x0001478B File Offset: 0x0001298B |
|
public string ConfigurationKeyword { get; set; } |
|
|
|
// Token: 0x17000119 RID: 281 |
|
// (get) Token: 0x06000344 RID: 836 RVA: 0x00014794 File Offset: 0x00012994 |
|
// (set) Token: 0x06000345 RID: 837 RVA: 0x000147AB File Offset: 0x000129AB |
|
public string RequiredGeodatabaseClientVersion { get; set; } |
|
|
|
// Token: 0x1700011A RID: 282 |
|
// (get) Token: 0x06000346 RID: 838 RVA: 0x000147B4 File Offset: 0x000129B4 |
|
// (set) Token: 0x06000347 RID: 839 RVA: 0x000147CB File Offset: 0x000129CB |
|
public bool HasOID { get; set; } |
|
|
|
// Token: 0x1700011B RID: 283 |
|
// (get) Token: 0x06000348 RID: 840 RVA: 0x000147D4 File Offset: 0x000129D4 |
|
// (set) Token: 0x06000349 RID: 841 RVA: 0x000147EB File Offset: 0x000129EB |
|
public string OIDFieldName { get; set; } |
|
|
|
// Token: 0x1700011C RID: 284 |
|
// (get) Token: 0x0600034A RID: 842 RVA: 0x000147F4 File Offset: 0x000129F4 |
|
// (set) Token: 0x0600034B RID: 843 RVA: 0x0001480B File Offset: 0x00012A0B |
|
public List<GPFieldInfoEx> GPFieldInfoExs { get; set; } |
|
|
|
// Token: 0x1700011D RID: 285 |
|
// (get) Token: 0x0600034C RID: 844 RVA: 0x00014814 File Offset: 0x00012A14 |
|
// (set) Token: 0x0600034D RID: 845 RVA: 0x0001482B File Offset: 0x00012A2B |
|
public string CLSID { get; set; } |
|
|
|
// Token: 0x1700011E RID: 286 |
|
// (get) Token: 0x0600034E RID: 846 RVA: 0x00014834 File Offset: 0x00012A34 |
|
// (set) Token: 0x0600034F RID: 847 RVA: 0x0001484B File Offset: 0x00012A4B |
|
public string EXTCLSID { get; set; } |
|
|
|
// Token: 0x1700011F RID: 287 |
|
// (get) Token: 0x06000350 RID: 848 RVA: 0x00014854 File Offset: 0x00012A54 |
|
// (set) Token: 0x06000351 RID: 849 RVA: 0x0001486B File Offset: 0x00012A6B |
|
public Names RelationshipClassNames { get; set; } |
|
|
|
// Token: 0x17000120 RID: 288 |
|
// (get) Token: 0x06000352 RID: 850 RVA: 0x00014874 File Offset: 0x00012A74 |
|
// (set) Token: 0x06000353 RID: 851 RVA: 0x0001488B File Offset: 0x00012A8B |
|
public string AliasName { get; set; } |
|
|
|
// Token: 0x17000121 RID: 289 |
|
// (get) Token: 0x06000354 RID: 852 RVA: 0x00014894 File Offset: 0x00012A94 |
|
// (set) Token: 0x06000355 RID: 853 RVA: 0x000148AB File Offset: 0x00012AAB |
|
public string ModelName { get; set; } |
|
|
|
// Token: 0x17000122 RID: 290 |
|
// (get) Token: 0x06000356 RID: 854 RVA: 0x000148B4 File Offset: 0x00012AB4 |
|
// (set) Token: 0x06000357 RID: 855 RVA: 0x000148CB File Offset: 0x00012ACB |
|
public bool HasGlobalID { get; set; } |
|
|
|
// Token: 0x17000123 RID: 291 |
|
// (get) Token: 0x06000358 RID: 856 RVA: 0x000148D4 File Offset: 0x00012AD4 |
|
// (set) Token: 0x06000359 RID: 857 RVA: 0x000148EB File Offset: 0x00012AEB |
|
public string GlobalIDFieldName { get; set; } |
|
|
|
// Token: 0x17000124 RID: 292 |
|
// (get) Token: 0x0600035A RID: 858 RVA: 0x000148F4 File Offset: 0x00012AF4 |
|
// (set) Token: 0x0600035B RID: 859 RVA: 0x0001490B File Offset: 0x00012B0B |
|
public string RasterFieldName { get; set; } |
|
|
|
// Token: 0x17000125 RID: 293 |
|
// (get) Token: 0x0600035C RID: 860 RVA: 0x00014914 File Offset: 0x00012B14 |
|
// (set) Token: 0x0600035D RID: 861 RVA: 0x0001492B File Offset: 0x00012B2B |
|
public PropertySet ExtensionProperties { get; set; } |
|
|
|
// Token: 0x17000126 RID: 294 |
|
// (get) Token: 0x0600035E RID: 862 RVA: 0x00014934 File Offset: 0x00012B34 |
|
// (set) Token: 0x0600035F RID: 863 RVA: 0x0001494B File Offset: 0x00012B4B |
|
public List<ControllerMembership> ControllerMemberships { get; set; } |
|
|
|
// Token: 0x17000127 RID: 295 |
|
// (get) Token: 0x06000360 RID: 864 RVA: 0x00014954 File Offset: 0x00012B54 |
|
// (set) Token: 0x06000361 RID: 865 RVA: 0x0001496B File Offset: 0x00012B6B |
|
public bool EditorTrackingEnabled { get; set; } |
|
|
|
// Token: 0x17000128 RID: 296 |
|
// (get) Token: 0x06000362 RID: 866 RVA: 0x00014974 File Offset: 0x00012B74 |
|
// (set) Token: 0x06000363 RID: 867 RVA: 0x0001498B File Offset: 0x00012B8B |
|
public string CreatorFieldName { get; set; } |
|
|
|
// Token: 0x17000129 RID: 297 |
|
// (get) Token: 0x06000364 RID: 868 RVA: 0x00014994 File Offset: 0x00012B94 |
|
// (set) Token: 0x06000365 RID: 869 RVA: 0x000149AB File Offset: 0x00012BAB |
|
public string CreatedAtFieldName { get; set; } |
|
|
|
// Token: 0x1700012A RID: 298 |
|
// (get) Token: 0x06000366 RID: 870 RVA: 0x000149B4 File Offset: 0x00012BB4 |
|
// (set) Token: 0x06000367 RID: 871 RVA: 0x000149CB File Offset: 0x00012BCB |
|
public string EditorFieldName { get; set; } |
|
|
|
// Token: 0x1700012B RID: 299 |
|
// (get) Token: 0x06000368 RID: 872 RVA: 0x000149D4 File Offset: 0x00012BD4 |
|
// (set) Token: 0x06000369 RID: 873 RVA: 0x000149EB File Offset: 0x00012BEB |
|
public string EditedAtFieldName { get; set; } |
|
|
|
// Token: 0x1700012C RID: 300 |
|
// (get) Token: 0x0600036A RID: 874 RVA: 0x000149F4 File Offset: 0x00012BF4 |
|
// (set) Token: 0x0600036B RID: 875 RVA: 0x00014A0B File Offset: 0x00012C0B |
|
public bool IsTimeInUTC { get; set; } |
|
|
|
// Token: 0x1700012D RID: 301 |
|
// (get) Token: 0x0600036C RID: 876 RVA: 0x00014A14 File Offset: 0x00012C14 |
|
// (set) Token: 0x0600036D RID: 877 RVA: 0x00014A2B File Offset: 0x00012C2B |
|
public esriFeatureType FeatureType { get; set; } |
|
|
|
// Token: 0x1700012E RID: 302 |
|
// (get) Token: 0x0600036E RID: 878 RVA: 0x00014A34 File Offset: 0x00012C34 |
|
// (set) Token: 0x0600036F RID: 879 RVA: 0x00014A4B File Offset: 0x00012C4B |
|
public esriGeometryType ShapeType { get; set; } |
|
|
|
// Token: 0x1700012F RID: 303 |
|
// (get) Token: 0x06000370 RID: 880 RVA: 0x00014A54 File Offset: 0x00012C54 |
|
// (set) Token: 0x06000371 RID: 881 RVA: 0x00014A6B File Offset: 0x00012C6B |
|
public string ShapeFieldName { get; set; } |
|
|
|
// Token: 0x17000130 RID: 304 |
|
// (get) Token: 0x06000372 RID: 882 RVA: 0x00014A74 File Offset: 0x00012C74 |
|
// (set) Token: 0x06000373 RID: 883 RVA: 0x00014A8B File Offset: 0x00012C8B |
|
public bool HasM { get; set; } |
|
|
|
// Token: 0x17000131 RID: 305 |
|
// (get) Token: 0x06000374 RID: 884 RVA: 0x00014A94 File Offset: 0x00012C94 |
|
// (set) Token: 0x06000375 RID: 885 RVA: 0x00014AAB File Offset: 0x00012CAB |
|
public bool HasZ { get; set; } |
|
|
|
// Token: 0x17000132 RID: 306 |
|
// (get) Token: 0x06000376 RID: 886 RVA: 0x00014AB4 File Offset: 0x00012CB4 |
|
// (set) Token: 0x06000377 RID: 887 RVA: 0x00014ACB File Offset: 0x00012CCB |
|
public bool HasSpatialIndex { get; set; } |
|
|
|
// Token: 0x17000133 RID: 307 |
|
// (get) Token: 0x06000378 RID: 888 RVA: 0x00014AD4 File Offset: 0x00012CD4 |
|
// (set) Token: 0x06000379 RID: 889 RVA: 0x00014AEB File Offset: 0x00012CEB |
|
public string AreaFieldName { get; set; } |
|
|
|
// Token: 0x17000134 RID: 308 |
|
// (get) Token: 0x0600037A RID: 890 RVA: 0x00014AF4 File Offset: 0x00012CF4 |
|
// (set) Token: 0x0600037B RID: 891 RVA: 0x00014B0B File Offset: 0x00012D0B |
|
public string LengthFieldName { get; set; } |
|
|
|
// Token: 0x17000135 RID: 309 |
|
// (get) Token: 0x0600037C RID: 892 RVA: 0x00014B14 File Offset: 0x00012D14 |
|
// (set) Token: 0x0600037D RID: 893 RVA: 0x00014B2B File Offset: 0x00012D2B |
|
public EnvelopeN Extent { get; set; } |
|
|
|
// Token: 0x17000136 RID: 310 |
|
// (get) Token: 0x0600037E RID: 894 RVA: 0x00014B34 File Offset: 0x00012D34 |
|
// (set) Token: 0x0600037F RID: 895 RVA: 0x00014B4B File Offset: 0x00012D4B |
|
public ProjectedCoordinateSystem SpatialReference { get; set; } |
|
|
|
// Token: 0x17000137 RID: 311 |
|
// (get) Token: 0x06000380 RID: 896 RVA: 0x00014B54 File Offset: 0x00012D54 |
|
// (set) Token: 0x06000381 RID: 897 RVA: 0x00014B6B File Offset: 0x00012D6B |
|
public bool ChangeTracked { get; set; } |
|
|
|
// Token: 0x17000138 RID: 312 |
|
// (get) Token: 0x06000382 RID: 898 RVA: 0x00014B74 File Offset: 0x00012D74 |
|
// (set) Token: 0x06000383 RID: 899 RVA: 0x00014B8B File Offset: 0x00012D8B |
|
public bool FieldFilteringEnabled { get; set; } |
|
|
|
// Token: 0x17000139 RID: 313 |
|
// (get) Token: 0x06000384 RID: 900 RVA: 0x00014B94 File Offset: 0x00012D94 |
|
// (set) Token: 0x06000385 RID: 901 RVA: 0x00014BAB File Offset: 0x00012DAB |
|
public Names FilteredFieldNames { get; set; } |
|
|
|
// Token: 0x06000386 RID: 902 RVA: 0x00014BB4 File Offset: 0x00012DB4 |
|
public DEFeatureClassInfo() |
|
{ |
|
this.HasSpatialIndex = true; |
|
this.IsTimeInUTC = true; |
|
this.HasOID = true; |
|
this.CanVersion = true; |
|
this.CatalogPath = ""; |
|
this.Name = ""; |
|
this.AreaFieldName = ""; |
|
this.ConfigurationKeyword = ""; |
|
this.DSID = 5; |
|
this.RequiredGeodatabaseClientVersion = "10.0"; |
|
this.OIDFieldName = "OBJECTID"; |
|
this.CLSID = "{" + Guid.NewGuid().ToString().ToUpper() + "}"; |
|
this.EXTCLSID = ""; |
|
this.GlobalIDFieldName = ""; |
|
this.RasterFieldName = ""; |
|
this.CreatorFieldName = ""; |
|
this.CreatedAtFieldName = ""; |
|
this.EditorFieldName = ""; |
|
this.EditedAtFieldName = ""; |
|
this.ShapeFieldName = "Shape"; |
|
this.AreaFieldName = "st_area(Shape)"; |
|
this.LengthFieldName = "st_perimeter(Shape)"; |
|
this.AliasName = ""; |
|
this.ModelName = ""; |
|
this.DatasetType = esriDatasetType.esriDTFeatureClass; |
|
this.FeatureType = esriFeatureType.esriFTSimple; |
|
this.ShapeType = esriGeometryType.esriGeometryPolygon; |
|
this.Extent = new EnvelopeN(); |
|
this.FilteredFieldNames = new Names(); |
|
this.RelationshipClassNames = new Names(); |
|
this.ExtensionProperties = new PropertySet(); |
|
this.ControllerMemberships = new List<ControllerMembership>(); |
|
this.GPFieldInfoExs = new List<GPFieldInfoEx>(); |
|
this.SpatialReference = new ProjectedCoordinateSystem(); |
|
} |
|
|
|
// Token: 0x06000387 RID: 903 RVA: 0x00014D64 File Offset: 0x00012F64 |
|
public static DEFeatureClassInfo FromXml(string xml) |
|
{ |
|
XmlDocument xmlDocument = new XmlDocument(); |
|
xmlDocument.LoadXml(xml); |
|
XmlNamespaceManager xmlNamespaceManager = new XmlNamespaceManager(xmlDocument.NameTable); |
|
xmlNamespaceManager.AddNamespace("xsi", "http://www.w3.org/2001/XMLSchema-instance"); |
|
XmlNodeList xmlNodeList = xmlDocument.DocumentElement.SelectNodes("//*[@xsi:type]", xmlNamespaceManager); |
|
foreach (object obj in xmlNodeList) |
|
{ |
|
XmlNode xmlNode = (XmlNode)obj; |
|
XmlAttribute node = xmlNode.Attributes["xsi:type"]; |
|
xmlNode.Attributes.Remove(node); |
|
} |
|
return CommonMethod.DeSerializerFromXml<DEFeatureClassInfo>(xmlDocument.OuterXml); |
|
} |
|
|
|
// Token: 0x06000388 RID: 904 RVA: 0x00014E38 File Offset: 0x00013038 |
|
public string ToXml() |
|
{ |
|
string xml = CommonMethod.SerializerToXmlNoHeder<DEFeatureClassInfo>(this); |
|
XmlDocument xmlDocument = new XmlDocument(); |
|
xmlDocument.LoadXml(xml); |
|
string text = ""; |
|
foreach (string text2 in DEFeatureClassInfo.XSITypeDic.Keys) |
|
{ |
|
if (text == "") |
|
{ |
|
text = "//" + text2.ToString(); |
|
} |
|
else |
|
{ |
|
text = text + " | //" + text2.ToString(); |
|
} |
|
} |
|
XmlNodeList xmlNodeList = xmlDocument.SelectNodes(text); |
|
foreach (object obj in xmlNodeList) |
|
{ |
|
XmlNode xmlNode = (XmlNode)obj; |
|
XmlAttribute xmlAttribute = xmlDocument.CreateAttribute("xsi", "type", "http://www.w3.org/2001/XMLSchema-instance"); |
|
xmlAttribute.Value = "typens:" + DEFeatureClassInfo.XSITypeDic[xmlNode.Name]; |
|
xmlNode.Attributes.Prepend(xmlAttribute); |
|
} |
|
return xmlDocument.OuterXml; |
|
} |
|
|
|
// Token: 0x040001EF RID: 495 |
|
private static readonly Dictionary<string, string> XSITypeDic = new Dictionary<string, string> |
|
{ |
|
{ |
|
"DEFeatureClassInfo", |
|
"DEFeatureClassInfo" |
|
}, |
|
{ |
|
"GPFieldInfoExs", |
|
"ArrayOfGPFieldInfoEx" |
|
}, |
|
{ |
|
"RelationshipClassNames", |
|
"Names" |
|
}, |
|
{ |
|
"ExtensionProperties", |
|
"PropertySet" |
|
}, |
|
{ |
|
"Extent", |
|
"EnvelopeN" |
|
}, |
|
{ |
|
"SpatialReference", |
|
"ProjectedCoordinateSystem" |
|
}, |
|
{ |
|
"FilteredFieldNames", |
|
"Names" |
|
}, |
|
{ |
|
"PropertyArray", |
|
"ArrayOfPropertySetProperty" |
|
}, |
|
{ |
|
"GPFieldInfoEx", |
|
"GPFieldInfoEx" |
|
}, |
|
{ |
|
"ControllerMemberships", |
|
"ArrayOfControllerMembership" |
|
} |
|
}; |
|
} |
|
}
|
|
|