Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rs-cloud-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周健威
rs-cloud-platform
Commits
06e03c4a
Commit
06e03c4a
authored
Dec 23, 2021
by
周健威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
9380898e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
RscpImageDataTotalController.java
...form/rs/datacenter/rest/RscpImageDataTotalController.java
+3
-2
UploadService.java
...m/upyuns/platform/rs/universal/service/UploadService.java
+1
-1
No files found.
rs-datacenter/rs-datacenter-server/src/main/java/com/upyuns/platform/rs/datacenter/rest/RscpImageDataTotalController.java
View file @
06e03c4a
...
...
@@ -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
));
...
...
rs-universal/rs-universal-server/src/main/java/com/upyuns/platform/rs/universal/service/UploadService.java
View file @
06e03c4a
...
...
@@ -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
().
set
IfAbsent
(
key
,
geomJson
);
redisTemplate
.
opsForValue
().
set
(
key
,
geomJson
);
// realFileRelPath=xx_url+SystemConfig.XXMP_URL+realFileRelPath;
return
key
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment