首页 / 浏览问题 / 组件GIS / 问题详情
DWG格式转换为GEOJSON,文字不能识别?
9EXP 2020年11月11日
调用getAllFeatures方法将数据集转换为GEOJSON,文字类型没有识别
文字:B2-1
结果:{
                    "type": "Feature",
                    "properties": {
                        "SmUserID": 0,
                        "EntityHandle": 2367,
                        "EntityType": "Text",
                        "Layer": "name",
                        "LayerFroze": 0,
                        "LayerLocked": 0,
                        "LayerOn": 1,
                        "Elevation": 0,
                        "Thickness": 0,
                        "ColorIndex": 7,
                        "LineStyle": "CONTINUOUS",
                        "BlockName": "",
                        "BlockRotation": 0,
                        "LineWidth": 0,
                        "X": -602946.94,
                        "Y": -1842314.2,
                        "Z": 0,
                        "Radius": 0,
                        "StartAngle": 0,
                        "EndAngle": 0
                    },
                    "geometry": null
                }
使用产品:iObjects10i 操作系统:win10 x64
数据类型:文件型

1个回答

请问你的文字的字段类型是什么类型的?您是导入的dwg数据为普通矢量数据集后再进行操作的吗?
2,842EXP 2020年11月11日
就是cad里面的普通文字
 ImportSettingDWG importSettingDWG = new ImportSettingDWG();
        importSettingDWG.setImportMode(ImportMode.OVERWRITE);
        importSettingDWG.setImportingAsCAD(true);
        importSettingDWG.setTargetDatasource(datasource);
        importSettingDWG.setSourceFilePath(base_path + "\\" + filename);
        importSettingDWG.setImportingExternalData(true);
        importSettingDWG.setImportingByLayer(true);
导入之后文本是什么类型的?
...