in render_full immediate levels now cast shadows

This commit is contained in:
Laura Klünder 2016-12-04 02:33:50 +01:00
parent a1ed7534d9
commit a54a85da3b
8 changed files with 54 additions and 17 deletions

View file

@ -1,17 +1,6 @@
from shapely.geometry import Polygon
def assert_multipolygon(geometry):
"""
given a Polygon or a MultiPolygon, return a list of Polygons
:param geometry: a Polygon or a MultiPolygon
:return: a list of Polygons
"""
if isinstance(geometry, Polygon):
polygons = [geometry]
else:
polygons = geometry.geoms
return polygons
from c3nav.mapdata.utils import assert_multipolygon
def get_nearest_point(polygon, point):

View file

@ -1,6 +1,6 @@
from matplotlib.path import Path
from c3nav.routing.utils.base import assert_multipolygon
from c3nav.mapdata.utils import assert_multipolygon
def polygon_to_mpl_paths(polygon):