|
@@ -165,9 +165,8 @@ public class StNzydkUploadServiceImpl extends ServiceImpl<StNzydkMapper, StNzydk
|
|
|
TxtReader txtReader = new TxtReader(txtInputStream);
|
|
|
ParseResult parseResult = txtReader.read();
|
|
|
if (parseResult != null && parseResult.getGeometry() != null) {
|
|
|
- String wkt= parseResult.getGeometry().toText();
|
|
|
- String wkb= GisUtils.convertGeometry2WKB(parseResult.getGeometry());
|
|
|
- stNzydkMapper.updateShapeById(objectId, wkb);
|
|
|
+ String wkt = parseResult.getGeometry().toText();
|
|
|
+ stNzydkMapper.updateShapeById(objectId, wkt, 4528);
|
|
|
} else {
|
|
|
log.warn("项目 {} 的TXT文件解析失败或未获取到Geometry数据。", projectCode);
|
|
|
}
|