Tiler incorrectly reprojecting imagery data on upload

Hi,

I have some geotiff imagery data that I’m uploading to cesium ion. Despite its extent being 0 - 360 degrees, once cesium has finished tiling only half of the data seems to appear.
image
Below is the gdalinfo report for the geotiff in question:

Driver: GTiff/GeoTIFF
Files: t_out.tiff
Size is 3072, 1536
Coordinate System is:
GEOGCRS["Coordinate System imported from GRIB file",
    DATUM["unnamed",
        ELLIPSOID["Sphere",6371229,0,
            LENGTHUNIT["metre",1,
                ID["EPSG",9001]]]],
    PRIMEM["Greenwich",0,
        ANGLEUNIT["degree",0.0174532925199433,
            ID["EPSG",9122]]],
    CS[ellipsoidal,2],
        AXIS["latitude",north,
            ORDER[1],
            ANGLEUNIT["degree",0.0174532925199433,
                ID["EPSG",9122]]],
        AXIS["longitude",east,
            ORDER[2],
            ANGLEUNIT["degree",0.0174532925199433,
                ID["EPSG",9122]]]]
Data axis to CRS axis mapping: 2,1
Origin = (-0.058593750081407,89.968897500977207)
Pixel Size = (0.117187500162813,-0.117147001954397)
Metadata:
  AREA_OR_POINT=Area
Image Structure Metadata:
  INTERLEAVE=BAND
Corner Coordinates:
Upper Left  (  -0.0585938,  89.9688975) (  0d 3'30.94"W, 89d58' 8.03"N)
Lower Left  (  -0.0585938, -89.9688975) (  0d 3'30.94"W, 89d58' 8.03"S)
Upper Right (     359.941,      89.969) (359d56'29.06"E, 89d58' 8.03"N)
Lower Right (     359.941,     -89.969) (359d56'29.06"E, 89d58' 8.03"S)
Center      ( 179.9414065,   0.0000000) (179d56'29.06"E,  0d 0' 0.00"N)
Band 1 Block=3072x1 Type=Float64, ColorInterp=Gray

The data is a single band extracted from a GRIB2 dataset, hence the CRS.

What could be causing this? The file renders fine in QGIS. I suspect it has something to do with the unorthodox CRS it has, although warping the file to EPSG:4326 and uploading that does not appear to make a difference. Does cesium ion expect (0,0) to be centered?

Thanks

Would you be able to share a sandcastle link and asset ID for this so that we can take a look?

Shehzan

Hi Shehzan,

This seems to have resolved itself on its own - I suspect I may have had some corrupt system/GDAL state that was sending incorrect data to Cesium. I can no longer reproduce this so unfortunately can’t send an asset to you. I was able to reproduce the behaviour with my own gdalwarp calls when using options like CENTER_LONG = 0, but this has also resolved on its own.