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

Error to_crs : ellipsoid do not belong to the same celestial body #1264

Closed
Skealz opened this issue Jan 14, 2020 · 2 comments
Closed

Error to_crs : ellipsoid do not belong to the same celestial body #1264

Skealz opened this issue Jan 14, 2020 · 2 comments

Comments

@Skealz
Copy link

Skealz commented Jan 14, 2020

Versions :
geopandas : 0.6.2
pyproj : 2.3.1
(I am using conda)

When doing

tracks.crs = "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"
#Or
tracks.crs = {'init': 'epsg:4326'}
tracks_data = tracks.to_crs(crs=ccrs.PlateCarree(central_longitude=lonOffset).proj4_init)

I have :

pyproj.exceptions.ProjError: Error creating CRS to CRS.: (Internal Proj Error: proj_create_operations: Source and target ellipsoid do not belong to the same celestial body)

When searching for this issue I found some links saying that a verification has recently been added to pyproj to avoid mapping CRS to wrong planets (project Earth CRS to the Moon for example).

But this is not what I'm doing (maybe I'm misusing geopandas).

I tried downgrading to pyproj 1.9.6 and it perfectly works.

@martinfleis
Copy link
Member

It looks okay from the Geopandas perspective. Seems to be caused by changes in pyproj.
cc @snowman2

@snowman2
Copy link
Contributor

It is due to the plate caree implementation in cartopy. See:

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

3 participants