<div dir="ltr">Why keep the old convention for GeoTIFFs? I believe the sooner things become more uniform, the better.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 9, 2019 at 1:33 PM Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
Another messiness of NTv2 I (re)discover. As NTv2 was designed for Canada, it <br>
uses a "west longitude is positive" convention.<br>
That applies to the extent of the grid, the order of the columns... and the <br>
longitude shift values.<br>
NTv1 also uses that convention.<br>
<br>
Our venerable CTable2 format uses a more classic convention of negative values <br>
for west longitudes and use a west-to-east column ordering, but has also <br>
inherited that annoying characteristics that the delta longitudes are postive <br>
to the west... So this affects the +proj=deformation . Kristian, are you aware <br>
of that ? But as you hijack CTable2 to store values in mm/yr, you probably <br>
compensated that issue with the negative sign.<br>
<br>
So what about GeoTIFF storage for horizontal grids ? Do we want to perpetuate <br>
that tradition of positive longitude shift meaning correction to the west ? Or <br>
use the "natural" convention: positive longitude offset values are corrections <br>
to the east ?<br>
It seems that at the very least I should add a new metadata item: <br>
positive_value=west/east to document the convention.<br>
<br>
Perhaps for grids converted from NTv2, I will keep the original value and set<br>
positive_value=west so that it is obvious we didn't alter the values.<br>
People wanting to use the "natural" convention will be strongly encouraged to <br>
use positive_value=east (which will be the default)<br>
<br>
Thoughts ?<br>
<br>
Even<br>
<br>
-- <br>
Spatialys - Geospatial professional services<br>
<a href="http://www.spatialys.com" rel="noreferrer" target="_blank">http://www.spatialys.com</a><br>
_______________________________________________<br>
PROJ mailing list<br>
<a href="mailto:PROJ@lists.osgeo.org" target="_blank">PROJ@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/proj" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/proj</a><br>
</blockquote></div>