You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
drawcoastlines() plots wrong boundary for the Antarctic coast #522
cuts off the Antarctic coastline at the Greenwich meridian as seen here. This is a problem not just with the Eckert IV projection, but with most (all?) global projections. E.g.,
produces the same wrong behavior. I'm aware that basemap has been discontinued in favor or cartopy, but I have a lot of legacy plotting code using basemap that is now broken because of this. Here are the versions I'm using:
What version of geos did you link basemap to? I remember having similar problems when plotting Antarctica and they got solved using an older geos library (e.g. 3.3).
Downgrading to geos 3.8.1 solved it! Any idea why an upgraded geos causes this? I'd be happy to file a geos bug report if I knew what exactly was causing this.
Is there any update on this?
I've been trying to revert to geos 3.8.1 in my conda env but that's taking hours to resolve and it will probably mess up the entire environment :)
Is there any way maybe to compile an older version of geos directly and make basemap use that one instead than the one of conda?
Hi @guidocioni! Unfortunately, I haven't had time to look at it yet.
In the meantime, one workaround if you are using Windows or GNU/Linux is that you install manually basemap with pip and resolve the dependencies yourself with conda:
Thanks! That's definitely the easiest way to solve it for now.
I only had to uninstall basemap from conda (basemap-data and basemap-data-hires were left in place) without any additional changes of dependencies (!!), and then after installing basemap with pip everything is working as expected.
@AgilentGCMS It took me a long while to look at this, but finally I had time to solve it and it will be ready soon in the hotfix release 1.3.5 of basemap.
@guidocioni As soon as the basemap release 1.3.5 is available in PyPI, I will trigger rebuilds in the basemap-feedstock repo so that the fixed version will be available in conda-forge too. Then you will be able to install basemap with conda as usual.
Activity
molinav commentedon Oct 26, 2021
What version of geos did you link basemap to? I remember having similar problems when plotting Antarctica and they got solved using an older geos library (e.g. 3.3).
AgilentGCMS commentedon Oct 26, 2021
geos 3.9.1, which got installed by macports as a dependency when I installed basemap.
AgilentGCMS commentedon Oct 26, 2021
Do I have to go back all the way to 3.3? I can install an older version, but there seems to have been several versions between 3.3 and 3.9.
WeatherGod commentedon Oct 26, 2021
AgilentGCMS commentedon Oct 26, 2021
Downgrading to geos 3.8.1 solved it! Any idea why an upgraded geos causes this? I'd be happy to file a geos bug report if I knew what exactly was causing this.
molinav commentedon Jan 25, 2022
For the moment it seems that we are blocked to GEOS < 3.9. I was testing and this error occurs for the 3.9.x series as well as the 3.10.x series.
cosmicpudding commentedon Feb 1, 2022
Thank you for this helpful post, I encountered the same issue of Antarctica being half-gone with geos 3.9.1 and was able to solve with:
conda install -c conda-forge geos=3.8.1=h4a8c4bd_0(based on previous installation of basemap using conda-forge)
guidocioni commentedon Sep 6, 2022
Is there any update on this?
I've been trying to revert to geos 3.8.1 in my conda env but that's taking hours to resolve and it will probably mess up the entire environment :)
Is there any way maybe to compile an older version of geos directly and make basemap use that one instead than the one of
conda?molinav commentedon Sep 6, 2022
Hi @guidocioni! Unfortunately, I haven't had time to look at it yet.
In the meantime, one workaround if you are using Windows or GNU/Linux is that you install manually
basemapwithpipand resolve the dependencies yourself withconda:The precompiled binary wheels hosted in PyPI bundle GEOS 3.5.1 for both Windows and GNU/Linux, and they do not suffer from this bug.
guidocioni commentedon Sep 6, 2022
Thanks! That's definitely the easiest way to solve it for now.
I only had to uninstall
basemapfrom conda (basemap-dataandbasemap-data-hireswere left in place) without any additional changes of dependencies (!!), and then after installingbasemapwithpipeverything is working as expected.molinav commentedon Oct 24, 2022
@AgilentGCMS It took me a long while to look at this, but finally I had time to solve it and it will be ready soon in the hotfix release 1.3.5 of
basemap.@guidocioni As soon as the
basemaprelease 1.3.5 is available in PyPI, I will trigger rebuilds in thebasemap-feedstockrepo so that the fixed version will be available inconda-forgetoo. Then you will be able to installbasemapwithcondaas usual.molinav commentedon Oct 25, 2022
The bugfix is already available in the latest
basemaprelease 1.3.5 (on PyPI and conda-forge). Thanks for reporting the issue!