[Geoserver-users] Netcdf Dateline Wrapping

Hi all,

Running Geoserver 2.8 and have an imagemosaic store with a NetCDF. The NetCDF defines a grid which crosses the dateline (x range [150,240], equivalent to 150E to 120W, or 150 to -120). The NetCDF is stored in EPSG:4326.

Through WMS, if I request the data with a minX/maxX of 0,360 the grid is drawn correctly in the middle of the image.

However, if I specify a minX/maxX of -180,180, only part of the grid is drawn on the right side of the image (the section between 150,180). The section between 180,240, or -180,-120, expected on the left side of the image, is not drawn.

See attached images for examples.

I assume this is caused by the NetCDF reader does not wrapping the dateline correctly. For example, x=190 is not mapped to -170, so no data is found.

Is there a workaround to this issue?

Again, this issue is only seen on grids which cross the dateline.

Thanks,

-ap

k0-360.png

k180180.png