| | |
| | | return 0; |
| | | } |
| | | |
| | | Integer imgId = 0; |
| | | List<ImageResultEntity.Image> itemList = ir.getResult().getItem_list(); |
| | | for (ImageResultEntity.Image image : itemList) { |
| | | updateImageLayerStretch(image.getData_id(), entity); |
| | | imgId = updateImageLayerStretch(image.getData_id(), entity); |
| | | } |
| | | |
| | | pub.setUpdateUser(entity.getUserId()); |
| | | if (null == pub.getGeom()) { |
| | | pub.setGeom("null"); |
| | | } |
| | | publishService.update(pub); |
| | | |
| | | return 0; |
| | | return publishService.update(pub); |
| | | } |
| | | |
| | | /** |
| | |
| | | * 更新影像图层的拉伸方式 |
| | | */ |
| | | private Integer updateImageLayerStretch(Integer imageLayerId, PubEntity entity) { |
| | | String url = String.format("/sj_raster/v6/api/image/%d?op=update&%s", sjUrl5, imageLayerId, ak); |
| | | String url = String.format("%s/sj_raster/v6/api/image/%d?op=update&%s", sjUrl5, imageLayerId, ak); |
| | | |
| | | Map<String, Object> map = new HashMap<>(3); |
| | | map.put("tile_rgb", entity.getTile_rgb()); |