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

add PJ_TYPE_DERIVED_PROJECTED_CRS #3488

Merged
merged 1 commit into from
Nov 25, 2022

Conversation

jjimenezshaw
Copy link
Contributor

The function PJ_TYPE proj_get_type(const PJ *obj) does not cover the case of a DerivedProjectedCRS, so it returns the generic type PJ_TYPE_OTHER_CRS. This PR defined the type PJ_TYPE_DERIVED_PROJECTED_CRS, and returns it in that case.

@@ -803,6 +803,8 @@ typedef enum
PJ_TYPE_TEMPORAL_DATUM,
PJ_TYPE_ENGINEERING_DATUM,
PJ_TYPE_PARAMETRIC_DATUM,

PJ_TYPE_DERIVED_PROJECTED_CRS,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added it at the end of the enum for backward compatibility. If it is better anywhere else, let me know.

@rouault rouault added this to the 9.2.0 milestone Nov 25, 2022
@rouault rouault merged commit 8ede717 into OSGeo:master Nov 25, 2022
rouault added a commit to rouault/gdal that referenced this pull request Nov 25, 2022
…er 9.2.0dev

OSGeo/PROJ#3488 added a PJ_TYPE_DERIVED_PROJECTED_CRS
value to the PJ_TYPE enumeration that we didn't test obviously. But
better just use proj_is_crs() to be more robust.
rouault added a commit to OSGeo/gdal that referenced this pull request Nov 25, 2022
…er 9.2.0dev

OSGeo/PROJ#3488 added a PJ_TYPE_DERIVED_PROJECTED_CRS
value to the PJ_TYPE enumeration that we didn't test obviously. But
better just use proj_is_crs() to be more robust.
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.

None yet

2 participants