【转】ArcGIS Field Type

The following table outlines the equivalent field data types in ArcCatalog, ArcObjects, Visual Basic and a selection of DBMSs:

ArcCatalog

esriFieldType

(IField::Type)

VB Variable Type

(IField::VarType)

AccessSQL ServerOracle
Short IntegeresriFieldTypeSmallIntegervbIntegerNumber (Integer)smallintNUMBER
Long IntegeresriFieldTypeIntegervbLongNumber (Long Integer)intNUMBER
FloatesriFieldTypeSinglevbSingleNumber (Single)floatNUMBER
DoubleesriFieldTypeDoublevbDoubleNumber (Double)floatNUMBER
TextesriFieldTypeStringvbStringTextvarcharVARCHAR2
DateesriFieldTypeDatevbDateDate/TimedatetimeDATE
Object IDesriFieldTypeOIDvbLongAutoNumber (Long Integer)intNUMBER(38)
GeometryesriFieldTypeGeometryvbDataObjectOLE ObjectintNUMBER(38) or SDO_GEOMETRY
BlobesriFieldTypeBlobvbObjectOLE ObjectimageNUMBER(38) or SDO_GEOMETRY
RasteresriFieldTypeRastervbDataObjectNumber (Long Integer)intNUMBER
GUIDesriFieldTypeGUIDvbStringNumber (Replication ID)uniqueidentifierCHAR
GlobalIDesriFieldTypeGlobalIDvbStringNumber (Replication ID)uniqueidentifierCHAR

The following table outlines the Coverage, INFO Item to Geodatabase field mapping:

Item typeItem widthGeodatabase field type (esriFieldType)
B4esriFieldTypeInteger
C1-320esriFieldTypeString
D8esriFieldTypeDate
F4esriFieldTypeSingle
F8esriFieldTypeDouble
I1-4esriFieldTypeSmallInteger
I5-9esriFieldTypeInteger
I10-16esriFieldTypeDouble
N1-9esriFieldTypeSingle
N10-16esriFieldTypeDouble

The following table outlines the Shapefile, dBASE field to Geodatabase field mapping:

Field typeField widthGeodatabase field type (esriFieldType)
Date-esriFieldTypeDate
String1-255esriFieldTypeString
Boolean-esriFieldTypeString
Number1-16 (decimals = 0)esriFieldTypeInteger
Number1-16 (decimals > 0)esriFieldTypeDouble
Note: Shapefiles only support date fields. Time is not supported. Geodatabases support date\time fields. If a shapefiles date field is queried for the time a default value of "12:00:00 AM" will be returned.
posted @ 2012-08-26 15:02  Joe-xXx  阅读(1346)  评论(0编辑  收藏  举报