We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is it expected that proj_crs_promote_to_3D on a derived CRS returns a non-derived CRS?
proj_crs_promote_to_3D
Ran into this with pyproj:
>>> from pyproj import CRS >>> crs = CRS("+proj=ob_tran +o_proj=longlat +o_lat_p=0 +o_lon_p=0 +lon_0=0") >>> crs.is_derived 1 >>> crs.to_3d().is_derived 0
PROJ API pseudo code:
PJ_CONTEXT* context = proj_context_create(); PJ* pj = proj_create( context, "+proj=ob_tran +o_proj=longlat +o_lat_p=0 +o_lon_p=0 +lon_0=0 +ellps=WGS84 +no_defs +type=crs" ); int is_derived = proj_is_derived_crs(context, pj); // returns 1 PJ * pj3d = proj_crs_promote_to_3D( context, NULL, pj ) int is_3d_derived = proj_is_derived_crs(context, pj3d); // returns 0 proj_destroy(pj); proj_destroy(pj3d); proj_context_destroy(context);
PROJ Version 8,1 Operating System: Ubuntu 20 Installation method: Conda w/ conda-forge
The text was updated successfully, but these errors were encountered:
Implement promoteTo3D() / demoteTo2D() for DerivedGeographicCRS (fixes …
f20ff2b
…OSGeo#2803)
bac2521
Merge pull request #2805 from rouault/fix_2803
9b0c8af
Implement promoteTo3D() / demoteTo2D() for DerivedGeographicCRS (fixes #2803)
bc97ca6
Merge pull request #2806 from OSGeo/backport-2805-to-8.1
2ddf80a
[Backport 8.1] Implement promoteTo3D() / demoteTo2D() for DerivedGeographicCRS (fixes #2803)
Thanks 👍
Sorry, something went wrong.
rouault
No branches or pull requests
Is it expected that
proj_crs_promote_to_3D
on a derived CRS returns a non-derived CRS?Ran into this with pyproj:
PROJ API pseudo code:
PROJ Version 8,1
Operating System: Ubuntu 20
Installation method: Conda w/ conda-forge
The text was updated successfully, but these errors were encountered: