Skip to content

Commit

Permalink
OGRSpatialReference::importFromEPSG(): start looking at ESRI codes if…
Browse files Browse the repository at this point in the history
… >= 53001
  • Loading branch information
rouault committed Dec 2, 2024
1 parent 29c140f commit 5e173b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ogr/ogrspatialreference.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11932,7 +11932,8 @@ OGRErr OGRSpatialReference::importFromEPSGA(int nCode)
CPLString osCode;
osCode.Printf("%d", nCode);
PJ *obj;
if (nCode <= 100000)
constexpr int FIRST_NON_DEPRECATED_ESRI_CODE = 53001;
if (nCode < FIRST_NON_DEPRECATED_ESRI_CODE)
{
obj = proj_create_from_database(d->getPROJContext(), "EPSG",
osCode.c_str(), PJ_CATEGORY_CRS, true,
Expand Down

0 comments on commit 5e173b5

Please sign in to comment.