marceloprates / prettymaps

A small set of Python functions to draw pretty maps from OpenStreetMap data. Based on osmnx, matplotlib and shapely libraries.
GNU Affero General Public License v3.0
11.04k stars 516 forks source link

Generating an map Example takes a long time and outputs many warnings into console #36

Open overdetermined opened 2 years ago

overdetermined commented 2 years ago

Cool Library. I noticed the following warnings when recreating the map example:

/python3.9/site-packages/geopandas/_vectorized.py:287: DeprecationWarning: An exception was ignored while fetching the attribute __array_interface__ from an object of type 'MultiLineString'. With the exception of AttributeError NumPy will always raise this exception in the future. Raise this deprecation warning to see the original exception. (Warning added NumPy 1.21) data[:] = [ /home/vls/proj/haxko/map/venv/lib/python3.9/site-packages/geopandas/_vectorized.py:142: DeprecationWarning: An exception was ignored while fetching the attribute __array_interface__ from an object of type 'Polygon'. With the exception of AttributeError NumPy will always raise this exception in the future. Raise this deprecation warning to see the original exception. (Warning added NumPy 1.21) aout[:] = out

and it took considerably longer than expected almost 30 seconds

mccartney commented 2 years ago

it took considerably longer than expected almost 3 seconds

Where did that come from? Also see #22

overdetermined commented 2 years ago

sorry I meant 30 seconds. (edited the comment accordingly)