-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: master
Are you sure you want to change the base?
Conversation
bekakh
commented
Sep 8, 2021
- Update PROJ-JNI to support PROJ 8.
- Add support for lon/lat axis enforcement.
src/main/cpp/bindings.cpp
Outdated
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); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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:
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); |
After these changes, lon/lat axis enforcement still isn't working. |
Never mind, it was a local problem. Axis enforcement works well after the changes. |
This reverts commit 5f9258c.