MapBox Studio GeoTif是否显示为黑色?
MapBox Studio GeoTif是否显示为黑色?,mapbox,mapbox-gl-js,Mapbox,Mapbox Gl Js,将GeoTIFF文件加载到MapBox Studio时,该文件显示为黑色,带有扩展边界,如下图所示。该文件表示FAA剖面图 通过在线搜索,所有参考文献都指出,在不支持透明度的jpg文件中,没有数据的像素显示为黑色 我尝试了几种方法,如下所示:它们都不能解决问题 1. (https://www.mapbox.com/help/troubleshoot-raster-transparency-issues/) The first command failed with Index out
将GeoTIFF文件加载到MapBox Studio时,该文件显示为黑色,带有扩展边界,如下图所示。该文件表示FAA剖面图 通过在线搜索,所有参考文献都指出,在不支持透明度的jpg文件中,没有数据的像素显示为黑色 我尝试了几种方法,如下所示:它们都不能解决问题
1. (https://www.mapbox.com/help/troubleshoot-raster-transparency-issues/)
The first command failed with Index out of bound
2. gdal_translate -of GTiff -co PROFILE=GeoTIFF in.tiff out.tiff
3. gdal_translate -of GTiff -a_nodata 0 input.tif output.tif
4. gdalbuildvrt -of GTIFF -srcnodata 0 input.tif myVrt.vrt
gdal_translate -of GTIFF -scale -a_nodata 0 myVrt.vrt output.tif
我也遵循了教程()&(())应用了上述方法,但没有成功。
有没有办法解决这个问题,或者我只是在使用Mapbox Studio时遗漏了一些东西
提前感谢
Mo好的,在尝试之后,我放弃了直接将GeoTiff加载到MapBox。使用以下命令从GeoTIFF创建MBTiles,然后将其加载到MapBox Studio。我还使用QGIS剪裁GeoTiFF
GDAL命令将GeoTIFF图像转换为MBTILE。需要GDAL 2.1+
gdal_translate -expand rgb -of GTIFF f.tif f_1.tif
gdal_translate f_1.tif image.mbtiles -of MBTILES
gdaladdo image.mbtiles 2 4 8
希望这能帮助其他人好吧,在尝试之后,我放弃了直接将GeoTiff加载到MapBox。使用以下命令从GeoTIFF创建MBTiles,然后将其加载到MapBox Studio。我还使用QGIS剪裁GeoTiFF
GDAL命令将GeoTIFF图像转换为MBTILE。需要GDAL 2.1+
gdal_translate -expand rgb -of GTIFF f.tif f_1.tif
gdal_translate f_1.tif image.mbtiles -of MBTILES
gdaladdo image.mbtiles 2 4 8
希望这对其他人有所帮助我的,此瓷砖集在地图视图中不可见!你有过这样的经历吗?我的,这个瓷砖集在你的地图视图中是看不见的!你有过这种经历吗?