Skip to content

Commit 0348d63

Browse files
committed
Adjust previous commits
1 parent 5bc9047 commit 0348d63

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

scripts/build_db.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,6 +1166,9 @@ def fill_alias(proj_db_cursor):
11661166
proj_db_cursor.execute("SELECT DISTINCT object_code, alias, coord_op_name FROM epsg.epsg_alias, epsg.epsg_coordoperation ON coord_op_code = object_code WHERE object_table_name = 'epsg_coordoperation' AND epsg_coordoperation.deprecated = 0")
11671167
for row in proj_db_cursor.fetchall():
11681168
code, alt_name, new_name = row
1169+
# We could potentially ingest all records, but the only use of them for
1170+
# now is to workaround effects of the creation of national ETRS89-XXX
1171+
# datums. See https://github.com/OSGeo/PROJ/pull/4736 for more details
11691172
if "ETRS89" not in alt_name:
11701173
# print('Ignoring alias %s for coordinate operation %s %s' % (alt_name, code, new_name))
11711174
continue

src/iso19111/operation/coordinateoperationfactory.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4280,8 +4280,7 @@ bool CoordinateOperationFactory::Private::createOperationsFromDatabase(
42804280
// "MGI to ETRS89 (8)" operation, that is now "MGI to ETRS89-AUT [2002] (8)"
42814281
const bool srcIsETRS89 = sourceCRS->nameStr() == "ETRS89";
42824282
const bool dstIsETRS89 = targetCRS->nameStr() == "ETRS89";
4283-
if (geodSrc && geodDst && (srcIsETRS89 || dstIsETRS89) &&
4284-
!(srcIsETRS89 && dstIsETRS89)) {
4283+
if (geodSrc && geodDst && (srcIsETRS89 != dstIsETRS89)) {
42854284
const auto &authFactory = context.context->getAuthorityFactory();
42864285
const auto gridAvailabilityUse =
42874286
context.context->getGridAvailabilityUse();

0 commit comments

Comments
 (0)