add heavy caching to mapdata api
This commit is contained in:
parent
23da7e3605
commit
00193f7e11
22 changed files with 259 additions and 138 deletions
|
@ -1,6 +1,6 @@
|
|||
from shapely.geometry import Polygon
|
||||
|
||||
from c3nav.mapdata.utils import assert_multipolygon
|
||||
from c3nav.mapdata.utils.geometry import assert_multipolygon
|
||||
|
||||
|
||||
def get_nearest_point(polygon, point):
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
from matplotlib.path import Path
|
||||
|
||||
from c3nav.mapdata.utils import assert_multipolygon
|
||||
from c3nav.mapdata.utils.geometry import assert_multipolygon
|
||||
|
||||
|
||||
def polygon_to_mpl_paths(polygon):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue