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

依赖安装不成功,尝试了很多种办法 #2

Open
yudeqang opened this issue Jul 25, 2024 · 7 comments
Open

依赖安装不成功,尝试了很多种办法 #2

yudeqang opened this issue Jul 25, 2024 · 7 comments

Comments

@yudeqang
Copy link

先是在windows上尝试了安装,然后在ubuntu上也尝试了。
node版本都是18.16.1
都是安装gdal的问题,请问有没有什么办法可以安装成功
image

@yudeqang
Copy link
Author

更新:使用node v16.20.2安装成功了,在ubuntu24.04和windows11上都成功了

@echohye
Copy link

echohye commented Aug 7, 2024

image
请问可以正常使用吗,有遇到这个错误吗

@sakitam-fdd
Copy link
Member

@echohye 这个库开发的时候确实用的 node16,最近没有更新,依赖的 gdal 版本也是只支持 16

@sakitam-fdd sakitam-fdd reopened this Aug 7, 2024
@sakitam-fdd
Copy link
Member

@echohye 我来看一下吧

@yudeqang
Copy link
Author

yudeqang commented Aug 7, 2024

@echohye 这个问题要改下代码,node_modules@sakitam-gis\raster-process\dist\index.js 这个文件,搜索@sakitam-gis/affine/dist/index.mjs换成@sakitam-gis/affine
我当时发现了忘记说

@yudeqang
Copy link
Author

yudeqang commented Aug 7, 2024

@sakitam-fdd 我发现在瓦片接边处会有错位的情况,我用python实现的切片错位更明显,这个库裁出来的瓦片也会有一些问题。
image
左边是python实现的切片,右边是raster-process的切片。wind-layer示例中的瓦片渲染都有这个问题,我验证过切片的原始数据是没有问题的。图中的瓦片编号(z-x-y)是2-3-1和2-3-2,目前我用单张图片规避这个问题

@sakitam-fdd
Copy link
Member

@yudeqang 渲染和瓦片都存在问题,应该需要做类似 mapbox 地形那种 buffer,图片 buffer 几个像素,渲染层再处理

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