| | |
| | | |
| | | private final static List<Integer> PIXELS = new ArrayList<>(Arrays.asList(1, 2, 4, 8, 16, 32, 64, 128, 256)); |
| | | |
| | | private final static List<Integer> NODES = new ArrayList<>(Arrays.asList(16, 32, 64, 96, 128, 192, 256, 384, 512, 768, 1024)); |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "查询点分析") |
| | | @ApiImplicitParams({ |
| | |
| | | @ApiOperation(value = "查询线分析") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "wkt", value = "线WKT", dataType = "String", example = "LINESTRING(165.680851 31.333443,166.383982 31.283475,166.016355 30.908709)"), |
| | | @ApiImplicitParam(name = "pixel", value = "像素值", dataType = "Integer", example = "1") |
| | | @ApiImplicitParam(name = "nodes", value = "节点数", dataType = "Integer", example = "16") |
| | | }) |
| | | @GetMapping(value = "/selectByPolyline") |
| | | public ResponseMsg<Object> selectByPolyline(String wkt, Integer pixel) { |
| | | public ResponseMsg<Object> selectByPolyline(String wkt, Integer nodes) { |
| | | try { |
| | | if (StringHelper.isEmpty(wkt)) { |
| | | return fail("WKT字符串不能为空"); |
| | |
| | | if (null == geo || geo.GetGeometryType() != ogr.wkbLineString) { |
| | | return fail("WKT字符串不正确"); |
| | | } |
| | | if (null == pixel || !PIXELS.contains(pixel)) { |
| | | return fail("像素值只能为:" + StringHelper.join(PIXELS, ", ")); |
| | | if (null == nodes || !NODES.contains(nodes)) { |
| | | return fail("节点数只能为:" + StringHelper.join(NODES, ", ")); |
| | | } |
| | | |
| | | List<?> rs = rasterService.analysis(geo, pixel); |
| | | List<?> rs = rasterService.analysis(geo, nodes); |
| | | |
| | | return success(rs.size(), rs); |
| | | } catch (Exception ex) { |
| | |
| | | return 0; |
| | | } |
| | | |
| | | Integer imgId = 0; |
| | | List<ImageResultEntity.Image> itemList = ir.getResult().getItem_list(); |
| | | for (ImageResultEntity.Image image : itemList) { |
| | | imgId = updateImageLayerStretch(image.getData_id(), entity); |
| | | Integer imgId = updateImageLayerStretch(image.getData_id(), entity); |
| | | } |
| | | |
| | | pub.setUpdateUser(entity.getUserId()); |
| | |
| | | </select> |
| | | |
| | | <select id="selectRaster" resultType="com.moon.server.entity.data.PublishEntity"> |
| | | select * from lf.sys_publish where status = 3 and type in ('DOM', 'DEM'); |
| | | select c.cn_name "name", a.* |
| | | from lf.sys_publish a inner join lf.sys_res b on a.id = b.pubid |
| | | inner join lf.sys_layer c on b.id = c.resid |
| | | where a.type in ('DOM', 'DEM') and a.status = 3 and c.status = 1; |
| | | </select> |
| | | |
| | | <select id="selectByLayerId" resultType="com.moon.server.entity.data.PublishEntity"> |