Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GTIFF_SRS_SOURCE setting Issues #7079

Closed
TQGiser opened this issue Jan 17, 2023 · 2 comments
Closed

GTIFF_SRS_SOURCE setting Issues #7079

TQGiser opened this issue Jan 17, 2023 · 2 comments

Comments

@TQGiser
Copy link

TQGiser commented Jan 17, 2023

i got this warning:Set GTIFF_SRS_SOURCE configuration option to EPSG to use official parameters (overriding the ones from GeoTIFF keys), or to GEOKEYS to use custom values from GeoTIFF keys and drop the EPSG code.
The problem is which *.h or *.cpp can set this option either EPSG or GEOKEYS?
thanks

@jratike80
Copy link
Collaborator

The message probably comes from https://github.com/OSGeo/gdal/blob/a632e3093d6dd34cdcf979a5b2a20529fe2df943/frmts/gtiff/gt_wkt_srs.cpp.

Configuration options are set runtime, with command line programs like --config GTIFF_SRS_SOURCE GEOKEYS, with Python like in https://github.com/OSGeo/gdal/blob/fdb225ad7179aa7b5698383d73aa16b8b90c5dbc/autotest/gcore/tiff_srs.py
with gdaltest.config_option("GTIFF_SRS_SOURCE", "GEOKEYS"):.

You did not report a bug, so

IMPORTANT: Do NOT use GitHub to post any questions or support requests!
They will be closed immediately and ignored.

Questions should go to the gdal-dev mailing list at
https://lists.osgeo.org/mailman/listinfo/gdal-dev
or other support forums. GitHub issues are for bug
reports and suggestions for new features.

@TQGiser
Copy link
Author

TQGiser commented Jan 17, 2023

Thanks for tip;
i fixed this issue like this:
int main()
{
GDALAllRegister();
CPLSetConfigOption("GTIFF_SRS_SOURCE","EPSG");
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants