ArcGIS10的GDB文件解析(初步)

早就应该写一写关于esri的一些改变

参考http://resources.arcgis.com/zh-cn/help/main/10.1/index.html#//006z000000tr000000

版本10.0以上,测试环境10.2

新建一空mdb格式的GDB文件,access打开,会发现跟9.x完全不一样,参考esri提供的帮助,可以大概知道,主要是为了顺应xml格式的趋势而做出了改动,

可在我看来,这些改动,把原来简单的事情变复杂了~^_^

新建dataset-新建featureClass,发现原本关于字段别名的定义不见了~

查看GDB_Items表的字段Definition可以发现,原来把table格式的定义换成了xml定义,复制出来,看一究竟

Definition
<DEFeatureClassInfo 
xsi:type='typens:DEFeatureClassInfo' 
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' 
xmlns:xs='http://www.w3.org/2001/XMLSchema' 
xmlns:typens='http://www.esri.com/schemas/ArcGIS/10.1'>
<CatalogPath>\Map\LAKE_TRCKCatalogPath>
<Name>LAKE_TRCKName>
<ChildrenExpanded>falseChildrenExpanded>
<DatasetType>esriDTFeatureClassDatasetType>
<DSID>13DSID>
<Versioned>falseVersioned>
<CanVersion>falseCanVersion>
<ConfigurationKeyword>ConfigurationKeyword>
<RequiredGeodatabaseClientVersion>10.0RequiredGeodatabaseClientVersion>
<HasOID>trueHasOID>
<OIDFieldName>OBJECTIDOIDFieldName>
<GPFieldInfoExs xsi:type='typens:ArrayOfGPFieldInfoEx'>
<GPFieldInfoEx xsi:type='typens:GPFieldInfoEx'>
<Name>OBJECTIDName>
<AliasName>OBJECTIDAliasName>
<ModelName>OBJECTIDModelName>
<FieldType>esriFieldTypeOIDFieldType>
<IsNullable>falseIsNullable>
<DomainFixed>trueDomainFixed>
<Required>trueRequired>
<Editable>falseEditable>
GPFieldInfoEx>
<GPFieldInfoEx xsi:type='typens:GPFieldInfoEx'>
<Name>SHAPEName>
<AliasName>SHAPEAliasName>
<ModelName>SHAPEModelName>
<FieldType>esriFieldTypeGeometryFieldType>
<IsNullable>trueIsNullable>
<DomainFixed>trueDomainFixed>
<Required>trueRequired>
GPFieldInfoEx>
<GPFieldInfoEx xsi:type='typens:GPFieldInfoEx'>
<Name>JC_DMName>
<AliasName>监测点代码AliasName>
<ModelName>JC_DMModelName>
<FieldType>esriFieldTypeStringFieldType>
<IsNullable>trueIsNullable>
GPFieldInfoEx>
<GPFieldInfoEx xsi:type='typens:GPFieldInfoEx'>
<Name>JC_MCName><AliasName>监测点名称AliasName><ModelName>JC_MCModelName>
<FieldType>esriFieldTypeStringFieldType><IsNullable>trueIsNullable>
GPFieldInfoEx>
<GPFieldInfoEx xsi:type='typens:GPFieldInfoEx'>
<Name>JC_INFOName><AliasName>信息AliasName><ModelName>JC_INFOModelName>
<FieldType>esriFieldTypeStringFieldType><IsNullable>trueIsNullable>
GPFieldInfoEx>
<GPFieldInfoEx xsi:type='typens:GPFieldInfoEx'>
<Name>BZName><AliasName>备注AliasName><ModelName>BZModelName>
<FieldType>esriFieldTypeStringFieldType><IsNullable>trueIsNullable>
GPFieldInfoEx>
<GPFieldInfoEx xsi:type='typens:GPFieldInfoEx'>
<Name>JC_TYPEName><AliasName>监测点类型AliasName>
<ModelName>JC_TYPEModelName><FieldType>esriFieldTypeStringFieldType><IsNullable>trueIsNullable>
GPFieldInfoEx>
<GPFieldInfoEx xsi:type='typens:GPFieldInfoEx'>
<Name>HPDMOName><AliasName>HPDMOAliasName>
<ModelName>HPDMOModelName><FieldType>esriFieldTypeStringFieldType><IsNullable>trueIsNullable>
GPFieldInfoEx>
GPFieldInfoExs>
<CLSID>{52353152-891A-11D0-BEC6-00805F7C4268}CLSID>
<EXTCLSID>EXTCLSID>
<RelationshipClassNames xsi:type='typens:Names'>
RelationshipClassNames>
<AliasName>监测点AliasName>
<ModelName>ModelName>
<HasGlobalID>falseHasGlobalID>
<GlobalIDFieldName>GlobalIDFieldName>
<RasterFieldName>RasterFieldName>
<ExtensionProperties xsi:type='typens:PropertySet'>
<PropertyArray xsi:type='typens:ArrayOfPropertySetProperty'>PropertyArray>
ExtensionProperties>
<ControllerMemberships xsi:type='typens:ArrayOfControllerMembership'>ControllerMemberships>
<EditorTrackingEnabled>falseEditorTrackingEnabled>
<CreatorFieldName>CreatorFieldName>
<CreatedAtFieldName>CreatedAtFieldName>
<EditorFieldName>EditorFieldName>
<EditedAtFieldName>EditedAtFieldName>
<IsTimeInUTC>trueIsTimeInUTC>
<FeatureType>esriFTSimpleFeatureType>
<ShapeType>esriGeometryPointShapeType>
<ShapeFieldName>SHAPEShapeFieldName>
<HasM>falseHasM>
<HasZ>falseHasZ>
<HasSpatialIndex>trueHasSpatialIndex>
<AreaFieldName>AreaFieldName>
<LengthFieldName>LengthFieldName>
<Extent xsi:nil='true'/>
<SpatialReference xsi:type='typens:ProjectedCoordinateSystem'>
<WKT>PROJCS["Albers Conical Equal Area",GEOGCS["GCS_Krasovsky_1940",DATUM["D_Krasovsky_1940",SPHEROID["Krasovsky_1940",6378245.0,298.3]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Albers"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",105.0],PARAMETER["Standard_Parallel_1",25.0],PARAMETER["Standard_Parallel_2",47.0],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]
WKT>
<XOrigin>-17330900XOrigin>
<YOrigin>-4694300YOrigin>
<XYScale>10000XYScale>
<ZOrigin>-100000ZOrigin>
<ZScale>10000ZScale>
<MOrigin>-100000MOrigin>
<MScale>10000MScale>
<XYTolerance>0.001XYTolerance>
<ZTolerance>0.001ZTolerance>
<MTolerance>0.001MTolerance>
<HighPrecision>trueHighPrecision>
SpatialReference>
<ChangeTracked>falseChangeTracked>
DEFeatureClassInfo>
View Code

 

哦,原来是酱紫的~

转载于:https://www.cnblogs.com/feedback/p/4375078.html

你可能感兴趣的:(c#)