I have an sld that applies the geoserver bundled wps contouring process transform to a raster (geotiff). When the GetMap request srs param differs from the tiff's native srs and the tiff's contents cross a boundary in the projection specified in the request, the returned map image still has the normal contours but also has horizontal lines that appear to be connecting points on the right of the image with points on the left side of the image. See attached picture.
I think the cause of this is that the wps doesn't have access to the request srs or the re-projected geotiff, so contouring occurs in the tiff's native srs - which is passed to the wps in the GridCoverage2D parameter. So contouring occurs in, say epsg:4326 where it might be reasonable to connect a point at, say -31,6 (lon/lat) to a point at -29,6 if they have similar userData values. But if the target projection is a whole-world cylindrical projection centered on 150 lon, then -30 is the edge of the world and those points are on opposite sides of the image. So the points should not be connected because it would require drawing around the back side of the image, if you will.
I know that geoserver can handle splitting raster data sources when necessary during re-projection. It happily splits the raster and shows part of it on the left and part of it on the right. (This is a very cool feature by the way.) But when the raster is vectorized (into lineStrings) via the contour service this splitting during re-projection doesn't appear to occur. Maybe the re-projection occurs on the vector data before it gets rasterized and the cool raster splitting code doesn't work on lines/polygons? Is there something that I'm missing, or is this a limitation of geoserver?
I'm using geoserver 2.7.2 but the contour process doesn't appear to have changed in any significant way since 2.7.2. Thanks for any info or suggestions you may have.
Tom Ruff