【问题标题】:Is there a mapping information for dataType of property?属性的数据类型是否有映射信息?
【发布时间】:2021-08-27 16:43:42
【问题描述】:

我是一名使用 Autodesk Forge 的开发人员。 现在我从 Forge API 下载的 SQLite 中获取了属性数据。 我想将这些数据插入到 Elasticsearch 中,所以我想知道每个值的数据类型。 在属性数据中,我可以找到 dataType 但它有一个整数值。 我不能用数字来判断它们。

dataType字段有映射信息吗?

【问题讨论】:

    标签: autodesk-forge


    【解决方案1】:

    请查看How to get property types,但并非全部都支持。

    enum AttributeType {
    
      /* Numeric types */
      Unknown                 = 0,
        Boolean,
        Integer,
        Double,
    
        /* Special types */
        BLOB                    = 10,
        DbKey, /* reprensets a link to another object in the database, using database internal ID */
    
        /* String types */
        String                  = 20,
        LocalizableString,
        DateTime,       /* ISO 8601 date */
        GeoLocation,    /* LatLonHeight - ISO6709 Annex H string, e.g: "+27.5916+086.5640+8850/" for Mount Everest */
        Position        /* "x y z w" space separated string representing vector with 2,3 or 4 elements*/
    };
    

    【讨论】:

    • @MASAMIKI,这是一个内部使用的定义表,尚未记录。它可能会发生变化。您可以自行承担使用风险。感谢您的理解。
    • 哦,我明白了...,这对我的系统来说是一个关键问题。我试着有其他的考虑。谢谢。
    猜你喜欢
    • 1970-01-01
    • 2012-06-16
    • 1970-01-01
    • 2012-09-23
    • 2023-03-25
    • 2017-04-04
    • 2017-04-07
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多