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

[proposal] adding pm/prime_meridian as an option for Globe? #1527

Closed
snowman2 opened this issue Apr 15, 2020 · 1 comment
Closed

[proposal] adding pm/prime_meridian as an option for Globe? #1527

snowman2 opened this issue Apr 15, 2020 · 1 comment

Comments

@snowman2
Copy link
Contributor

The PROJ parameter pm can support a string or a number.

The prime meridian is used when defining a datum or for handing the -180/180 issues.

So, I propose adding prime_meridian as an input parameter to the Globe object that maps to the pm PROJ parameter.

This would enable:

    from cartopy.crs import CRS as cCRS, Globe
    from pyproj.crs import CRS

    proj_crs = CRS.from_epsg(4326)
    globe = Globe(
        ellipse=None,
        semimajor_axis=proj_crs.ellipsoid.semi_major_metre,
        semiminor_axis=proj_crs.ellipsoid.semi_minor_metre,
        inverse_flattening=proj_crs.ellipsoid.inverse_flattening,
        prime_meridian=proj_crs.prime_meridian.longitude,
    )
    proj_dict = proj_crs.to_dict()
    cart_crs = cCRS(proj_dict, globe=globe)
@snowman2
Copy link
Contributor Author

Not as important with #1808

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

No branches or pull requests

1 participant