Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
The origin of the rectifiedGrid is written (mapwcs.c:1193) as geotransform and , which is extent boundaries. The origin should be expressed as the center of the grid point.
The text was updated successfully, but these errors were encountered:
mapwcs.c is about WCS 1.0 and whole GDAL & MapServer code use pixel-corner convention, so I don't think things should be changed there
mapwcs11.c applies a half pixel shift for GridOrigin per https://github.com/mapserver/mapserver/blob/branch-7-0/mapwcs11.c#L724
So it looks the issue is for WCS 2.0 where this half pixel shift is not applied, but it should. @Schpidi any opinion ?
Sorry, something went wrong.
Yes, sorry, I was too quick to point to the place in code. I saw the error in XML returned by a server when testing the new GDAL WCS driver in 2.0.1 mode.
WCS 2.0 DescribeCoverage result: fix RectifiedGrid.origin.Point to co…
…rrespond to the coordinate of the pixel center (fixes #5511)
Fix committed per 31c25df
Both GeoServer and Rasdaman also use the center of grid point convention, so this fix was needed.
@rouault I fully agree with the necessary changes, many thanks for taking care!
I think this issue is also valid for 1.0.0. See for example http://126.96.36.199/cgi-bin/BGS_EMODnet_bathymetry/ows?SERVICE=WCS&REQUEST=DescribeCoverage&VERSION=1.0.0&COVERAGE=BGS_EMODNET_CentralMed-MCol
In 1.0.0 the origin is at the center of pixel in ArcGIS and GeoServer
No branches or pull requests