cesium-terrain-builder icon indicating copy to clipboard operation
cesium-terrain-builder copied to clipboard

I try to run cmake 3.14.0 with visual studio 2017 and GDAL224 ,wrong

Open laobel opened this issue 6 years ago • 20 comments

严重性 代码 说明 项目 文件 行 禁止显示状态 错误 LNK1120 1 个无法解析的外部命令 ctb D:\cesium-terrain-builder-master-quantized-mesh\build\src\Debug\ctb.dll 1

严重性 代码 说明 项目 文件 行 禁止显示状态 错误 LNK2019 无法解析的外部符号 "class GDALDataset * __cdecl GDALCreateOverviewDataset(class GDALDataset *,int,int)" (?GDALCreateOverviewDataset@@YAPAVGDALDataset@@PAV1@HH@Z),该符号在函数 "void * __cdecl getOverviewDataset(void ,int (__cdecl)(void *,int,int,double *,double *,double *,int *),void *)" (?getOverviewDataset@@YAPAXPAXP6AH0HHPAN11PAH@Z0@Z) 中被引用 ctb D:\cesium-terrain-builder-master-quantized-mesh\build\src\GDALTiler.obj 1

laobel avatar Feb 12 '19 09:02 laobel

Related https://github.com/geo-data/cesium-terrain-builder/issues/15#issuecomment-375121426 ?

ahuarte47 avatar Feb 12 '19 10:02 ahuarte47

Hi @ahuarte47 I“m try #15 (comment) ?,but the problem still exists.

laobel avatar Feb 12 '19 12:02 laobel

Hi @ahuarte47 ,What GDAL version do you use? x64 or x86?

laobel avatar Feb 12 '19 12:02 laobel

I build CTB with GDAL 2.3.x x64 in Windows

ahuarte47 avatar Feb 12 '19 12:02 ahuarte47

Oh,,Please send me the compiled GDAL 2.3.x. Thanks!

laobel avatar Feb 12 '19 13:02 laobel

You can download it from http://www.gisinternals.com

ahuarte47 avatar Feb 12 '19 13:02 ahuarte47

I download GDAL 2.3.3 from http://www.gisinternals.com,but errors still exists.

Severity Code Description Project File Line Suppression State Error LNK2019 unresolved external symbol "class GDALDataset * __cdecl GDALCreateOverviewDataset(class GDALDataset *,int,int)" (?GDALCreateOverviewDataset@@YAPEAVGDALDataset@@PEAV1@HH@Z) referenced in function "protected: virtual class ctb::GDALTile * __cdecl ctb::GDALTiler::createRasterTile(class GDALDataset *,double (&)[6])const " (?createRasterTile@GDALTiler@ctb@@MEBAPEAVGDALTile@2@PEAVGDALDataset@@AEAY05N@Z) ctb D:\cesium-terrain-builder-master-quantized-mesh\build\src\GDALTiler.obj 1

laobel avatar Feb 13 '19 03:02 laobel

Did you try to add to your project the gdaloverviewdataset.cpp file? It was my workaround.

ahuarte47 avatar Feb 13 '19 05:02 ahuarte47

Okay, thank you for your help.After I added to my project the gdaloverviewdataset.cpp file.Fortunately, the build succeeded.

Thanks!

laobel avatar Feb 13 '19 09:02 laobel

Hi @ahuarte47, I use ctb to create terrain tiles, the format is quantized-mesh. There is an error when loaded with Cesium. Why? loadterrainerror

laobel avatar Feb 14 '19 01:02 laobel

Do you have defined the Content-Encoding: gzip content negotiation header?

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding

ahuarte47 avatar Feb 14 '19 01:02 ahuarte47

YES。 qq 20190214095552

laobel avatar Feb 14 '19 01:02 laobel

The terrain file is too small,the biggest is 2kb.. Is it normal? qq 20190214095919

laobel avatar Feb 14 '19 02:02 laobel

Request directly in the chrome browser and report the following error. qq 20190214100531

laobel avatar Feb 14 '19 02:02 laobel

Yes, my tiles are very small too. I attach a fragment of my tile set, from 0 to 6th level - qm.zip . It is located in N42°49'0.73" - O1°38'35.63"

I do not know any idea about your error, I'm sorry.

ahuarte47 avatar Feb 15 '19 00:02 ahuarte47

Thank you all the same.I try other ideas。

laobel avatar Feb 15 '19 11:02 laobel

Hi @ahuarte47 How do I create quantized-mesh terrain with multiple tif files?Must merge multiple tif files into a single file?

laobel avatar Feb 18 '19 09:02 laobel

You could use gdalbuildvrt for creating a virtual raster file without really to save a new big tif.

ahuarte47 avatar Feb 18 '19 09:02 ahuarte47

@ahuarte47 How do I create quantized-mesh terrain with water mask by master-quantized-mesh branch。thanks!

laobel avatar Apr 03 '19 06:04 laobel

Sorry, CTB tool does not support the water mask creation for any output format. You can read it in the limitations-TODO section in Readme page.

ahuarte47 avatar Apr 03 '19 08:04 ahuarte47