月球大数据地理空间分析展示平台-【后端】-月球后台服务
13693261870
2023-09-06 2ddd2b93b389d08fc96dea0756d9ee30e1a82589
src/main/java/com/moon/server/service/data/ShuJianService.java
@@ -120,7 +120,9 @@
        layer.setProjection(getEpsg(pub));
        layer.setType(TYPES.indexOf(pub.getType()));
        layer.setEnhance_type(pub.getEnhanceType());
        layer.setEnhance_factor(pub.getEnhance_factor());
        layer.setNodata(getNoData(pub, metas));
        layer.setConfig(getColorTableConfig(entity, pub));
        CreateLayerEntity.ImagePathList imagePathList = entity.new ImagePathList();
        imagePathList.setPath(sjPath);
@@ -175,6 +177,20 @@
    }
    /**
     * 获取颜色表的配置
     */
    private CreateLayerEntity.Config getColorTableConfig(CreateLayerEntity entity, PubEntity pub) {
        if (null == pub.getColorTable() && null == pub.getGradientColorTable()) {
            return null;
        }
        Integer type = null != pub.getColorTable() ? 0 : 1;
        List<?> levels = null != pub.getColorTable() ? pub.getColorTable() : pub.getGradientColorTable();
        return entity.new Config(type, levels);
    }
    /**
     * 发送图层实体类
     */
    public Integer postLayerEntity(CreateLayerEntity layerEntity) {