|
@@ -91,7 +91,11 @@ public class NodeLandImpl implements NodeLandService {
|
|
|
response.put("geomDbId", result.get("geomDbId"));
|
|
response.put("geomDbId", result.get("geomDbId"));
|
|
|
|
|
|
|
|
// 添加shppath - SHP文件路径
|
|
// 添加shppath - SHP文件路径
|
|
|
- response.put("shppath", result.get("shppath"));
|
|
|
|
|
|
|
+ //response.put("shppath", result.get("shppath"));
|
|
|
|
|
+ String shpPath = (String) result.get("shppath");
|
|
|
|
|
+ // 匹配最后一段 \xxx\xxx.shp 替换为 .zip
|
|
|
|
|
+ String zipPath = shpPath.replaceAll("\\\\[^\\\\]+\\\\[^\\\\.]+\\.shp$", ".zip");
|
|
|
|
|
+ response.put("shppath", zipPath);
|
|
|
|
|
|
|
|
// 处理geomIds - 转换为字符串数组
|
|
// 处理geomIds - 转换为字符串数组
|
|
|
String geomIdsStr = result.get("geomIds");
|
|
String geomIdsStr = result.get("geomIds");
|