| | |
| | | resService.insert(resEntity); |
| | | |
| | | insertMetaPub(pub, publishEntity.getId()); |
| | | layerService.insert(createLayerEntity(resEntity, StaticData.I3)); |
| | | // layerService.insert(createLayerEntity(resEntity, StaticData.I3)) |
| | | |
| | | return rows; |
| | | } |
| | |
| | | layer.setNodata(getNoData(pub, metas)); |
| | | layer.setConfig(getColorTableConfig(entity, pub)); |
| | | |
| | | CreateLayerEntity.ImagePathList imagePathList = entity.new ImagePathList(); |
| | | imagePathList.setPath(sjPath); |
| | | entity.getImage_path_list().add(imagePathList); |
| | | |
| | | List<String> filters = imagePathList.getFilter(); |
| | | for (MetaEntity meta : metas) { |
| | | filters.add(meta.getPath().replace("\\", "/")); |
| | | String[] strs = meta.getPath().split(StaticData.BACKSLASH); |
| | | |
| | | CreateLayerEntity.ImagePathList imagePathList = entity.new ImagePathList(); |
| | | imagePathList.setPath(sjPath + strs[0]); |
| | | imagePathList.getFilter().add(strs[1]); |
| | | |
| | | entity.getImage_path_list().add(imagePathList); |
| | | } |
| | | |
| | | return entity; |