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

Update for PROJ version 8, support enforcement of lon/lat axis #1

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

bekakh
Copy link

@bekakh bekakh commented Sep 8, 2021

  • Update PROJ-JNI to support PROJ 8.
  • Add support for lon/lat axis enforcement.

@bekakh bekakh requested a review from azahnen September 8, 2021 09:21
Comment on lines 2685 to 2687
CRSNNPtr crs = get_shared_object<CRS>(env, operation);
BaseObjectPtr ptr = crs.as_nullable();
return specific_subclass(env, operation, ptr, org_kortforsyningen_proj_Type_COORDINATE_REFERENCE_SYSTEM);
Copy link
Author

Choose a reason for hiding this comment

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

@azahnen this code segment does nothing to the CRS. Should it be always converting the CRS to CRS:84?

Copy link
Collaborator

Choose a reason for hiding this comment

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

The line that does the actual axis order switch is missing:

Suggested change
CRSNNPtr crs = get_shared_object<CRS>(env, operation);
BaseObjectPtr ptr = crs.as_nullable();
return specific_subclass(env, operation, ptr, org_kortforsyningen_proj_Type_COORDINATE_REFERENCE_SYSTEM);
CRSNNPtr crs = get_shared_object<CRS>(env, operation);
crs = crs->normalizeForVisualization();
BaseObjectPtr ptr = crs.as_nullable();
return specific_subclass(env, operation, ptr, org_kortforsyningen_proj_Type_COORDINATE_REFERENCE_SYSTEM);

@bekakh
Copy link
Author

bekakh commented Sep 21, 2021

After these changes, lon/lat axis enforcement still isn't working.

@bekakh
Copy link
Author

bekakh commented Sep 22, 2021

Never mind, it was a local problem. Axis enforcement works well after the changes.

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.

3 participants