• ArcGIS Field Type /esriFieldTypeDate(转)


    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 Integer esriFieldTypeSmallInteger vbInteger Number (Integer) smallint NUMBER
    Long Integer esriFieldTypeInteger vbLong Number (Long Integer) int NUMBER
    Float esriFieldTypeSingle vbSingle Number (Single) float NUMBER
    Double esriFieldTypeDouble vbDouble Number (Double) float NUMBER
    Text esriFieldTypeString vbString Text varchar VARCHAR2
    Date esriFieldTypeDate vbDate Date/Time datetime DATE
    Object ID esriFieldTypeOID vbLong AutoNumber (Long Integer) int NUMBER(38)
    Geometry esriFieldTypeGeometry vbDataObject OLE Object int NUMBER(38) or SDO_GEOMETRY
    Blob esriFieldTypeBlob vbObject OLE Object image NUMBER(38) or SDO_GEOMETRY
    Raster esriFieldTypeRaster vbDataObject Number (Long Integer) int NUMBER
    GUID esriFieldTypeGUID vbString Number (Replication ID) uniqueidentifier CHAR
    GlobalID esriFieldTypeGlobalID vbString Number (Replication ID) uniqueidentifier CHAR

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

    Item typeItem widthGeodatabase field type (esriFieldType)
    B 4 esriFieldTypeInteger
    C 1-320 esriFieldTypeString
    D 8 esriFieldTypeDate
    F 4 esriFieldTypeSingle
    F 8 esriFieldTypeDouble
    I 1-4 esriFieldTypeSmallInteger
    I 5-9 esriFieldTypeInteger
    I 10-16 esriFieldTypeDouble
    N 1-9 esriFieldTypeSingle
    N 10-16 esriFieldTypeDouble

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

    Field typeField widthGeodatabase field type (esriFieldType)
    Date - esriFieldTypeDate
    String 1-255 esriFieldTypeString
    Boolean - esriFieldTypeString
    Number 1-16 (decimals = 0) esriFieldTypeInteger
    Number 1-16 (decimals > 0) esriFieldTypeDouble
    Note: Shapefiles only support date fields. Time is not supported. Geodatabases support date ime fields. If a shapefiles date field is queried for the time a default value of "12:00:00 AM" will be returned.
  • 相关阅读:
    十一月计划
    归并排序+例题
    今年暑假不AC(简单贪心)
    路障(BFS)
    堆优化版Dijkstra模板
    十月计划
    Find a way(BFS)
    Prime Path(BFS)
    Find The Multiple
    k8s中node节点资源不足
  • 原文地址:https://www.cnblogs.com/lianghong/p/8005575.html
Copyright © 2020-2023  润新知