代码如下,导入obj代码有警告,在idesktop中查看没有模型
ImportSettingModelOSG importSettingModelOSG = new ImportSettingModelOSG(filePath, datasource);
importSettingModelOSG.setTargetEncodeType(EncodeType.BYTE);
importSettingModelOSG.setPosition(new Point3D(623600, 4097600, 1700));
importSettingModelOSG.setSourceFileCharset(Charset.DEFAULT);
PrjCoordSys prjCoordSys = PrjCoordSys.fromEPSG(4544);
importSettingModelOSG.setTargetPrjCoordSys(prjCoordSys);
// importSettingModelOSG.setObjRotate();
DataImport importer = new DataImport();
importer.getImportSettings().add(importSettingModelOSG);
ImportResult importResult = importer.run();
if (importResult.getSucceedSettings().length == 0) {
System.out.println("导入数据失败!!!");
return;
}