<div dir="ltr"><div>Thanks a lot for the help, Even.</div><div><br></div><div>That just saved me some headache.<br></div><div><br></div><div>I'll respectfully approach the source of this data before trying to figure out where to put tabs and line breaks and warping.<br></div><div>And then crossing fingers that the national administration open sources the data in a usable format rather sooner than later to prevent people from jumping through hoops.</div><div><br></div><div>Best wishes !</div><div>Matthias<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 22, 2020 at 10:17 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">> <br>
> $ head geoid+HTRANS_ETRS2020.gtx<br>
> 45.75 5.85  0.00833333333333333333 0.00833333333333333333 253 559<br>
> 49.4610<br>
> 49.4649<br>
> 49.4720<br>
> 49.4823<br>
> 49.5021<br>
> 49.5511<br>
> 49.5899<br>
> 49.5819<br>
> 49.5588<br>
> <br>
<br>
This is definitely not a GTX file. GTX is a binary format. I don't think <br>
there's an existing GDAL driver for the above variant.<br>
<br>
You'll have to write your own convertion script or modify the file to look <br>
like something recognized by GDAL, like a AAIGRID file. Or yell at the person <br>
who provided that file to you to not use something known by GDAL.<br>
<br>
The header line is likely:<br>
south_latitude (I guess for Switzerland)<br>
west_longitude<br>
vertical_resolution (or horizontal_resolution ?)<br>
horizontal_resolution (or vertical_resolution ?)<br>
height_in_pixels (or width_in_pixels ?)<br>
width_in_pixels (or height_in_pixels ?)<br>
<br>
If you map that to headers of AAIGRID, that could work. That looks like:<br>
ncols        20<br>
nrows        20<br>
xllcorner    440720.000000000000<br>
yllcorner    3750120.000000000000<br>
cellsize     60.000000000000<br>
<br>
You'll perhaps have to do a vertical flip depending on the convention of your <br>
file (can be done for example by switching top and bottom Y with <br>
gdal_translate -a_ullr and then gdalwarp) <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>
</blockquote></div>