Open xzg5101 opened 1 year ago
This is no longer actively developed. It's very likely, that the GDAL version you are using is no longer compatible with CTB. Checkout this Docker image to use the tool without building it your own. https://github.com/tum-gis/cesium-terrain-builder-docker
This is no longer actively developed. It's very likely, that the GDAL version you are using is no longer compatible with CTB. Checkout this Docker image to use the tool without building it your own. https://github.com/tum-gis/cesium-terrain-builder-docker
Thank you very much for your reply. I was sick for the past 5 days so I did not see your suggestion right a way. My aim is actually automate the process of converting contour file (dwg/dxf) into cesiuim terrains, and add this function to a local toolkit program. I am not very familiar with docker and heard it would be pretty difficult to put it together with my app. Do you have any suggestion, comment, or thought on how to achieve this?
I don't think so. You can run CTB inside Docker and use it like any other command line tool. If you are new to Docker there is learning curve for sure, but I guaratee you it's worth looking into!
I don't think so. You can run CTB inside Docker and use it like any other command line tool. If you are new to Docker there is learning curve for sure, but I guaratee you it's worth looking into!
Do you know any library or python packages that would allow me to create .terrain file?
No, I have nothing in mind by heart, but wait let me google that for you. ;-)
Well, I managed to build gdal 2.4.2 and use CTB from the other fork today eventually. Turned out that sucessfully building it just the key of open the door of issues. There are a lot of things for a rookie like me to learn before starting anything at all, and the general health condition of the C++ GIS repos I saw in these days freaked me out a bit. The process of debugging is basically marching in a blackbox to me. Also sadly your google guide did not provide me any useful information as that was the first thing I did, which brought me here, but if it gave you joy at all I guess its worthwhile. I'll definetly learn docker, but its probably not something I would use for this task this time. Thank you for the suggestion anyway.
Yes, I'd recommend to learn Docker. It's not too hard and really worth the effort. In many cases it will save you from building things on your own, which can be quite hard.
A quick search gave me this:
Please report back if one of those turned out to be helpful.
I have checked the first two links before, and they are not helpful other than lead me to CTB. The third one looks promising, but it has a lot of dependencies to install. I might have to try the third one, because for some reason CTB only output the top two layer of terrain tiles for some of my input files. Thank you for the information.
Same problem occurred. As I understand, newer vesions of gdal do not export this function to gdallibrary but it is still in source files.
One thing you can try is to install older gdal versions (not sure which specific version, but most probably 2.4.0 and older). I got some problems here and didn't manage to solve them. Other thing that actually worked for me was downloading GDAL sources and copying everything from gdaloverviewdataset.cpp
file into cesium-terrain-builder source files. This worked fine.
check your gdal version, gdal version > 3.4, you can not found this method GDALCreateOverviewDataset. I switch the version from 3.8 to 3.4, it`s ok.
Hi! I am trying to install CTB on WSL, Ubuntu 22.04.2 LTS. My gdal verson is 3.4.3, cmake version is 3.22.1. When I run
cmake
in build directory, it seems normal? (I am not familiar with CMake, so maybe I failed to spot an issue):But when I ran
make install
, it gave me an error:I confirmed GDAL are installed property in default directory, and have also tried to manully enter path for
DGDAL_LIBRARY_DIR
,DGDAL_LIBRARY
, andDGDAL_INCLUDE_DIR
, but it ended up the same. I wonder how can I resolve this issue. Any help is appreciated!