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

Fix parameter mappings of Local Orthographic, and re-import ESRI database with the mapping for this method #4229

Merged
merged 1 commit into from
Aug 16, 2024

Conversation

rouault
Copy link
Member

@rouault rouault commented Aug 16, 2024

@rouault rouault added this to the 9.5.0 milestone Aug 16, 2024
@rouault rouault merged commit 8a94b99 into OSGeo:master Aug 16, 2024
22 of 23 checks passed
Copy link
Contributor

@jjimenezshaw jjimenezshaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @rouault

@@ -403,6 +403,11 @@ static const ParamMapping paramScaleFactorPseudoStdParallel = {
WKT1_SCALE_FACTOR, common::UnitOfMeasure::Type::SCALE,
k}; /* ignored by PROJ currently */

static const ParamMapping paramLongCentreLongCenter = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is paramLongCentreLongCenter name "duplicated" in purpose? Using "Centre" and "Center"? Or the editor tricked you?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

paraLongCentreLongCenter is indeed a very badly named variable. I believe it intends to capture the (WKT2, WKT1) names, but they are actually here ("Longitude of origin", "longitude_of_center"). I remember to have struggled establishing those mappings because the same WKT2 parameter name doesn't always map to the same WKT1 parameter name, depending on which projection method it is used in. Partly because WKT1 parameter names were invented before, and/or EPSG had renamed them after they were hardcoded in GDAL 20 years ago.

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

Successfully merging this pull request may close these issues.

2 participants