Unable to load Geotiff in cesium

1,214 views
Skip to first unread message

ramadevia...@gmail.com

unread,
Mar 19, 2018, 6:42:58 AM3/19/18
to cesium-dev
1. A concise explanation of the problem you're experiencing.
Unable to load geotiff image in cesium.

2. A minimal code example. If you've found a bug, this helps us reproduce and repair it.
code:
var provider = new Cesium.WebMapServiceImageryProvider({
url : 'http://localhost:8080/Apps/geotiff.tif',
layers : '0',
proxy: new Cesium.DefaultProxy('/proxy/')
});

viewer.imageryLayers.addImageryProvider(provider);


below error found while processing:
An error occurred in "m": Failed to obtain image tile X: 0 Y: 0 Level: 0.
Cesium.js:477 An error occurred in "m": Failed to obtain image tile X: 1 Y: 0 Level: 0.


3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

I want to load geotiff file on cesium map


4. The Cesium version you're using, your operating system and browser.

cesium 1.43

Mark Erikson

unread,
Mar 19, 2018, 1:37:59 PM3/19/18
to cesium-dev
You can't load GeoTIFFs or other common image/terrain file formats directly into Cesium.  Cesium requires that images be converted into common map tile formats like TMS, and for terrain, it only understands its own "heightmap" and "quantized-mesh" terrain tile formats.

ramadevi achanta

unread,
Mar 25, 2018, 1:54:24 PM3/25/18
to cesiu...@googlegroups.com
Thanks for your support . I am not sure how to convert geotiff format to common map tile format  if you have any idea or findings can you please share those links so that it is helpful for me.

--
You received this message because you are subscribed to a topic in the Google Groups "cesium-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cesium-dev/R_OXng6v7aU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cesium-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mark Erikson

unread,
Mar 25, 2018, 9:49:52 PM3/25/18
to cesium-dev
The AGI/Cesium team has a large paid tool called STK Terrain Server.  I _think_ the upcoming Cesium Ion website will have terrain conversion capabilities.

However, if you'd like to do it for free, the https://github.com/geo-data/cesium-terrain-builder can convert file formats like GeoTIFF to Cesium's "heightmap" format.  (There's also an open PR to allow conversion to the "quantized-mesh" format).  I'm currently working on doing a very large terrain dataset conversion/generation myself, and I'll be trying to write up a blog post eventually after it's done - probably will be at least a couple months before I have time to write that, though.
To unsubscribe from this group and all its topics, send an email to cesium-dev+...@googlegroups.com.

ramadevi achanta

unread,
Mar 28, 2018, 12:50:31 PM3/28/18
to cesiu...@googlegroups.com
Thanks for your suggestion.It seems the link which you have shared is working Linux os right. . currently I am using windows operating system ,Is it possible  in windows os could you please suggest me.

To unsubscribe from this group and all its topics, send an email to cesium-dev+unsubscribe@googlegroups.com.

Mark Erikson

unread,
Mar 28, 2018, 1:10:00 PM3/28/18
to cesium-dev
The cesium-terrain-builder tool is cross-platform, and can be compiled on Windows.  It uses the CMake build system, which can generate build files for many different compile toolchains (Makefiles on Linux/Mac, Visual Studio solutions, etc).

ramadevi achanta

unread,
Apr 11, 2018, 2:30:09 AM4/11/18
to cesiu...@googlegroups.com
Hi,

I want to load rasters( jpg,IMG) files on cesium map. is it possible

To unsubscribe from this group and all its topics, send an email to cesium-dev+unsubscribe@googlegroups.com.

Gabby Getz

unread,
Apr 11, 2018, 10:57:10 AM4/11/18
to cesium-dev
If you have just one image and need to position it on the globe, use a SingleTileImageryProvider.
Reply all
Reply to author
Forward
0 new messages