I'm attempting to serve netCDFs to a Leaflet map using Geoserver (2.12.1) and its NetCDF extension. I can set up the layers and get Leaflet to receive tiles over WCS 1.0.0 without a problem, but the tiles appear to distort as I scroll the map westward:
One possible reason is that, as in this question, these NetCDFs use longitude 0:+360, rather than -180:+180. (EDIT: I've confirmed that the distortion only occurs when tiles with X < 0 are requested.) I've tried a few solutions to preprocess the files to -180:+180, but they don't appear to change the output to Leaflet, even if I can verify the changed longitude in something like
Can anyone help me figure out what the problem is here (whether it's the longitude or something else)? Ideally, I'd like Geoserver to process the files as they are, as they're CF-compliant and I'd prefer to put less preprocessing on the folks who'll be giving me these files in the future if possible. Is there a version of EPSG:4326 that can handle this shifted longitude, or is there an option in Geoserver that can handle it? or is the problem something else entirely?