MarcCoru / MTLCC

Multi-temporal land cover classification. Source code and evaluation of IJGI 2018 journal publication

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EPSG Code is Unknown

agroener opened this issue · comments

Greetings! Following your installation instructions has led me to the following error when trying to convert the tfrecords to tifs:

rasterio.errors.CRSError: The EPSG code is unknown. Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.

Looking up this issue reveals that there are some data files missing (possibly gcs.csv and pcs.csv; see here) from the $GDAL_DATA directory.

Do you have listed anywhere all of the project dependencies and their respective versions? This would be useful to ensure I have the right versions of things (and hopefully the right data files to run your scripts).

It is also possible that installing GDAL from conda does not download the right supporting files. I tried manually adding the gcs.csv and pcs.csv files to my $GDAL_DATA folder, and it changed the error to this:

rasterio.errors.CRSError: The EPSG code is unknown. EPSG PCS/GCS code 32632 not found in EPSG support files. Is this a valid EPSG coordinate system?

Thanks for any assistance!

I believe I fixed this by unsetting the $GDAL_DATA environment variable. On my system:
unset GDAL_DATA

Apparently the correct resource files were not at the location specified by the path. Not sure where it ended up looking by default, but the script ran. Checking to make sure the data converted to tifs correctly before closing this one out.