<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
Hi Jukka,<br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
I'm off work now so can't check the image type until next week, but the extents<span id="ms-outlook-android-cursor"></span> are the same at both GDAL 2 and GDAL 3. At v3, there is a repeated column of pixels at the right hand edge. I guess there is no more
 data, so it is padded to fill the required extent.<br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
Jon<br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
<span id="OutlookSignature">
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
Get <a href="https://aka.ms/ghei36">Outlook for Android</a></div>
</span><br>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> gdal-dev <gdal-dev-bounces@lists.osgeo.org> on behalf of jratike80 <jukka.rahkonen@maanmittauslaitos.fi><br>
<b>Sent:</b> Tuesday, December 22, 2020 7:47:04 PM<br>
<b>To:</b> gdal-dev@lists.osgeo.org <gdal-dev@lists.osgeo.org><br>
<b>Subject:</b> Re: [gdal-dev] Duplicate pixels in VRT</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Hi,<br>
<br>
Check what are the extents of two adjacert images reported by GDAL 2 and 3,<br>
as well as the sizes in pixels, and if images are of type "pixel is area" or<br>
"pixel is point". DEM kind of images are sometimes intentionally produced to<br>
have overlap.<br>
<br>
-Jukka Rahkonen-<br>
<br>
<br>
<br>
Jon Morris wrote<br>
> Hello all,<br>
> <br>
> I've come across a weird edge case and I'm wondering if anyone has seen<br>
> something similar.<br>
> <br>
> I'm updating our application from GDAL v2.2 to v3.2 and have a failing<br>
> test where there is a 1 pixel shift in the output. We're building a VRT<br>
> from a DTM and a flood depth raster and when you call ds.ReadAsArray() on<br>
> the VRT there is a duplicated column of pixels at GDAL 2, which is causing<br>
> the apparent shift. It's not worth raising a ticket, as the GDAL 3 output<br>
> is correct, but I can't explain why this shift has happened and I'm<br>
> wondering if this has happened anywhere else.<br>
> <br>
> If I open the two VRTs in QGIS, they look the same, so maybe it's an issue<br>
> with ReadAsArray. There is slight difference in SRS precision, which might<br>
> be causing a rounding error, but otherwise I've no idea what might be<br>
> causing it.<br>
> <br>
> GDAL 2<br>
> <SRS><br>
> PROJCS["North_America_Albers_Equal_Area_Conic",<br>
> GEOGCS["NAD83",DATUM["North_American_Datum_1983",<br>
> SPHEROID["GRS<br>
> 1980",6378137,298.2572221010042,AUTHORITY["EPSG","7019"]],AUTHORITY["EPSG","6269"]],<br>
> PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433],AUTHORITY["EPSG","4269"]],<br>
> PROJECTION["Albers_Conic_Equal_Area"],<br>
> PARAMETER["standard_parallel_1",20],<br>
> PARAMETER["standard_parallel_2",60],<br>
> PARAMETER["latitude_of_center",40],<br>
> PARAMETER["longitude_of_center",-96],<br>
> PARAMETER["false_easting",0],<br>
> PARAMETER["false_northing",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]]]<br>
> </SRS><br>
> GDAL 3<br>
> <SRS dataAxisToSRSAxisMapping="1,2"><br>
> PROJCS["North_America_Albers_Equal_Area_Conic",<br>
> GEOGCS["NAD83",DATUM["North_American_Datum_1983",<br>
> SPHEROID["GRS<br>
> 1980",6378137,298.257222101004,AUTHORITY["EPSG","7019"]],AUTHORITY["EPSG","6269"]],<br>
> PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4269"]],<br>
> PROJECTION["Albers_Conic_Equal_Area"],<br>
> PARAMETER["latitude_of_center",40],<br>
> PARAMETER["longitude_of_center",-96],<br>
> PARAMETER["standard_parallel_1",20],<br>
> PARAMETER["standard_parallel_2",60],<br>
> PARAMETER["false_easting",0],<br>
> PARAMETER["false_northing",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AXIS["Easting",EAST],AXIS["Northing",NORTH]]<br>
> </SRS><br>
> Thanks,<br>
> <br>
> Jon<br>
> <br>
> <br>
> Jon Morris<br>
> Software Developer<br>
> <br>
> COVID-19. During the current outbreak JBA remains open for business and we<br>
> continue to deliver our services. However, we have adopted flexible/remote<br>
> working as required. I will be receiving and reading email as normal but I<br>
> may not always be available on the office number.<br>
> <br>
> <br>
> [JBA COVID-19<br>
> statement]&lt;https://www.jbagroup.co.uk/sites/www.jbagroup.co.uk/files/documents/15-030%20JBA%20Business%20Continuity%20Briefing%20-%20Latest.pdf&gt;<br>
> <br>
> T +44 (0) 1756 799919<br>
> <a href="http://www.jbarisk.com&lt;http://www.jbarisk.com&gt">www.jbarisk.com&lt;http://www.jbarisk.com&gt</a>;<br>
> <br>
> [Visit our website]&lt;http://www.jbarisk.com&gt;<br>
> [<a href="http://www.jbagroup.co.uk/imgstore/JBA-Email-Sig-Icons-LINKEDIN.png">http://www.jbagroup.co.uk/imgstore/JBA-Email-Sig-Icons-LINKEDIN.png</a>]<br>
> &lt;https://www.linkedin.com/in/jon-morris-a2897b4/&gt;  [Follow us on<br>
> Twitter] &lt;https://twitter.com/jbarisk&gt;<br>
> <br>
> Find out more about us here:<br>
> <a href="http://www.jbarisk.com&lt;http://www.jbarisk.com/&gt">www.jbarisk.com&lt;http://www.jbarisk.com/&gt</a>; and follow us on Twitter<br>
> @JBARisk&lt;http://twitter.com/JBARisk&gt; and<br>
> LinkedIn&lt;https://www.linkedin.com/company/2370847?trk=tyah&amp;trkInfo=clickedVertical%3Acompany%2CclickedEntityId%3A2370847%2Cidx%3A2-1-2%2CtarId%3A1447414259786%2Ctas%3AJBA%20RISK%20MANAGEMENT&gt;<br>
> <br>
> The JBA Group supports the JBA Trust.<br>
> <br>
> All JBA Risk Management's email messages contain confidential information<br>
> and are intended only for the individual(s) named. If you are not the<br>
> named addressee you should not disseminate, distribute or copy this<br>
> e-mail.<br>
> Please notify the sender immediately by email if you have received this<br>
> email by mistake and delete this email from your system.<br>
> <br>
> <br>
> JBA Risk Management Limited is registered in England, company number<br>
> 07732946, 1 Broughton Park, Old Lane North, Broughton, Skipton, North<br>
> Yorkshire, BD23 3FD, Telephone: +441756799919<br>
> <br>
> <br>
> <br>
> _______________________________________________<br>
> gdal-dev mailing list<br>
<br>
> gdal-dev@.osgeo<br>
<br>
> <a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
<br>
<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html">http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html</a><br>
_______________________________________________<br>
gdal-dev mailing list<br>
gdal-dev@lists.osgeo.org<br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</div>
</span></font></div>
<p><a href="https://www.jbagroup.co.uk/sites/www.jbagroup.co.uk/files/documents/15-030%20JBA%20Business%20Continuity%20Briefing%20-%20Latest.pdf"><img width="449" src="https://www.jbagroup.co.uk/imgstore/covid19footer.png" alt="JBA COVID-19 statement"></a></p>
</body>
</html>