Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

加载tif图片,根据示例会修改图片的渲染颜色,是否能做到不修改原来tif图片的颜色? #2626

Open
tuchenchen opened this issue Oct 24, 2024 · 0 comments
Assignees

Comments

@tuchenchen
Copy link

问题描述

const tiffdata = await vm.getTiffData(res.data);
const layer = new RasterLayer({
zIndex: 10,
});
layer.source(tiffdata, {
parser: {
type: 'ndi',
width: tiffdata.width,
height: tiffdata.height,
extent:tiffdata.extent
},
}).style({
opacity:1,
domain: [-0.3, 0.5],
rampColors: {
colors: ['#ce4a2e', '#f0a875', '#fff8ba', '#bddd8a', '#5da73e', '#235117'],
positions: [0, 0.2, 0.4, 0.6, 0.8, 1.0],
},
clampLow: true,
});
scene.addLayer(layer);

重现链接

No response

重现步骤

No response

预期行为

No response

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@heiyexing @tuchenchen and others