| Copied from https://sourceforge.net/p/geoserver/mailman/message/34875998/ 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. I assume this is caused by the NetCDF reader 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. Would also like to add that reprojecting to a 'disk' projection, such as laea (I used EPSG 6931) also causes the data to cut off at the dateline. The following ticket was worked as part of v14 beta. However, I'm still seeing the issue. https://osgeo-org.atlassian.net/browse/GEOT-5205 It seems it was only tested with a tiff as the source. May be a Netcdf issue? Here is the commit linked to that issue: https://github.com/geotools/geotools/commit/f232c6f37c490d2913704d405039f05ed08be98c Unfortunately, I cannot provide the specific netcdf I'm using, but any Netcdf-4 with a lon dimension in the range of 0-360 should be enough to replicate the issue. Would also like to note that an SLD without any transformations (just a RasterSymbolizer) seems to display all data in its native projection, but the issue persists when the image is reprojected to a different CRS. |