Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 43135

A background layer that serves as visual reference for additional layers in a map.

0 votes
Accepted

Python Basemap fails

For some reason, Basemap has to be imported before shapely. from mpl_toolkits.basemap import Basemap import shapely.geometry as sg Doing the import the other way around will cause the error. …
amaatouq's user avatar
  • 441
2 votes
1 answer
1k views

Python Basemap fails

I am using Anaconda 2.1.0 and Basemap installation is successful conda install basemap However, I keep getting the following error when I try to project lat,lon to a planar: Assertion failed: (0), … My code looks like this: import shapely.geometry as sg from pymongo import MongoClient from mpl_toolkits.basemap import Basemap p = Basemap(projection='sinu',lon_0=0,resolution='c') #fails here projected_xy …
amaatouq's user avatar
  • 441