[gdal-dev] gdalsrsinfo Incorrect or Inconsistent results reporting EPSG codes

Andrew C Aitchison andrew at aitchison.me.uk
Sat Nov 2 02:34:25 PDT 2019


On Fri, 1 Nov 2019, David Cakalic wrote:

> Link below is to a sample IMG file on WeTransfer:
> https://we.tl/t-KtV9xCLaDF
>
> Depending on the computer, this is showing as:
> EPSG: -1
> EPSG: 26914
> EPSG: 6343
> when using gdalsrsinfo -e {image}
> or
> gdalsrsinfo -o epsg {image}

Hmm.
For that file, with gdal 2.4.2 or 2.4.3rc1 I get
 	EPSG:-1
but if I remove $HOME/.gdal/2.4/srs_cache/pcs.wkt.gz the next run gives
 	EPSG:6343
but the next run gives EPSG:-1 again as the cache file has been recreated.

With gdal 3.0.3rc1 I get
 	Confidence in this match: 25 %

 	EPSG:26914



More information about the gdal-dev mailing list