Using
gdalinfo on the GDA94 .tif files shows that conversion from .pdf via
gdal_translate vs
gdalwarp results in different metadata; including (i) different WKT under CONVERSION, (ii) differences in whether an EPSG code is specified in several places including DATUM and GEOGCRS, and (iii) whether they use “GeoTransform=” or “Origin=”. Neither introduces an EPSG code for PROJCRS ID, but warping and
gdal_edit -a_srs adds a USAGE section with an EPSG code (which is the same as the PROJCRS).
From comparison of
gdalinfo reports, and running
gdal_edit -a_srs on selected files to test possible problems, we can conclude that the problem for OM is when geotif files have either EPSG:7856 for the USAGE ID or Transverse Mercator for CONVERSION (which comes with “GeoTransform=”) unless a CONVERSION ID (EPSG code) is given. Under GDA2020, OM gives an EPSG:16156 error, though
gdalinfo reports no CONVERSION ID. There may be other incompatibilities with GDA2020.
The GDA94 and GDA2020 Qtotpo and nsw.spatial geopdf files have “GeoTransform=” (but they give EPSG:17056 for Transverse Mercator CONVERSION), no USAGE and no PROJCRS ID, just ESRI WKT. EPSG:17056 is not in epsg.io or elsewhere, and gets stripped out in
gdal conversions. OM may be sufficiently puzzled by EPSG:17056 to take clues from WKT in the geopdf files and guess a PROJCRS ID (possibly GDA94, as in the TerraGo Toolbar). The difference between GDA2020 and GDA94 is about 1.8 m, indiscernible in a map at 1:25,000. If this is correct, OM opens GDA2020 geopdf files through an error, which is not ideal. This conclusion is supported by
gdal_edit -a_srs EPSG:7856 (OM gives “Can not find GEO info!!” error) vs
gdal_edit -a_srs EPSG:28356 (OM opens), and similarly by sequential
gdalwarp and
gdal_translate operations, on the GDA2020 TyalgumQ geopdf file. For key
gdalinfo files, see Geospatial PDF Files.
https://scithings.id.au/geopdf.pdf. See also: Map Datums.
https://scithings.id.au/Datums.pdfTo confirm the absence of GDA2020 (and EPSG:17056) in OM, use
apktool (
https://apktool.org/docs/install) on the OM apk, then look in OruxMaps7.4.28\assets\proj4\nad\epsg where you will find lots of GDA94 but no GDA2020 codes. Until the current OM developer gets to GDA2020, you use this datum in OM at your own peril.
I still cannot explain the georeference error (of ~100m) shown for the GDA2020 geopdf in the original post. It is too hard to explore things that have changed. In any case, it was fixed by deleting and recopying the file - which may be hard to do in the field. I think there is a georeference error (of ~30m) in the GDA94 geopdf that I showed (the error is seen in Acrobat reader as well as in OM after file reload), but good luck with getting any sensible response, let alone an acknowledgement or fix of a 'past' error, from nsw.spatial.