<div dir="ltr">Hi,<br><br>I've been having some issues getting the WCS driver to behave correctly. However, I am new to GIS so it's very likely I'm doing something wrong.<br><br>When performing a request on a coverage whose CRS is EPSG:4326, if the projWin contains a negative longitude, the driver requests instead the coverage extent's minimum longitude. For example, when requesting projWin [-0.15, 39.5, 0.15, 39.2], the driver instead performs a request on [-6.5 , 39.5, 0.15, 39.33], where -6.5 is the requested coverage's minimum longitude. I have not been able to test if this is also the case for the other axis. It results in the following error:<br><br><blockquote style="margin:0 0 0 40px;border:none;padding:0px">ERROR 1: Returned tile does not match expected configuration.<br>Got 6015x163 instead of 263x163.</blockquote><br>I've been performing my requests through Python:<br><br><blockquote style="margin:0 0 0 40px;border:none;padding:0px">target_area = [-0.15, 39.5, 0.15, 39.2]<br>global url, layername<br>      ds = gdal.OpenEx(f"WCS:{url}&coverage={layername}", open_options=["NoGridAxisSwap=TRUE"])<br>     outfile = "outputRaster.tif"<br>        gdal.Translate(outfile, ds, projWin=target_area)<br><br></blockquote>The performed request is:<div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><a href="https://URL/geoserver/wcs?SERVICE=WCS&REQUEST=GetCoverage&VERSION=2.0.1&COVERAGEID=geonode__F4_2020fromASC&SUBSET=Long%28-6.37708333,0.15000002403500634%29&SUBSET=Lat%2839.200000020966016,39.500000021936252%29&Format=image/tiff">https://URL/geoserver/wcs?SERVICE=WCS&REQUEST=GetCoverage&VERSION=2.0.1&COVERAGEID=geonode__F4_2020fromASC&SUBSET=Long%28-6.37708333,0.15000002403500634%29&SUBSET=Lat%2839.200000020966016,39.500000021936252%29&Format=image/tiff</a><br></div></blockquote><br>This approach works when target_area does not contain a negative longitude, like for projWin [0.1, 39.5, 0.4, 39.2]<br><br>Is there something wrong with this approach? What would the correct way to request this area be?<br clear="all"><div><br></div>Thanks,<br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Alberto Paradís</div></div></div></div>