Commit 06e03c4a authored by 周健威's avatar 周健威

修改代码

parent 9380898e
......@@ -116,8 +116,9 @@ public class RscpImageDataTotalController extends BaseController<RscpImageDataTo
return ObjectRestResponse.succ(rscpAreaImageTotalBiz.queryDataList(dto));
}else if(QueryDTO.TYPE_SHP == dto.getType()){
//shp 转 geom
String shpPath = redisTemplate.opsForValue().get(dto.getShpKey());
dto.setGeom(ShpToGeojson.shp2geojson(shpPath));
// String shpPath = redisTemplate.opsForValue().get(dto.getShpKey());
// dto.setGeom(ShpToGeojson.shp2geojson(shpPath));
dto.setGeom(redisTemplate.opsForValue().get(dto.getShpKey()));
return ObjectRestResponse.succ(baseBiz.queryDataAreaList(dto));
} else {
return ObjectRestResponse.succ(baseBiz.queryDataAreaList(dto));
......
......@@ -66,7 +66,7 @@ public class UploadService {
FileUtils.copyInputStreamToFile(file.getInputStream(), new File(filePath));
String key = "shp:"+ UUIDUtils.generateShortUuid();
String geomJson = ShpToGeojson.shp2geojson(filePath);
redisTemplate.opsForValue().setIfAbsent(key, geomJson);
redisTemplate.opsForValue().set(key, geomJson);
// realFileRelPath=xx_url+SystemConfig.XXMP_URL+realFileRelPath;
return key;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment