mapbox / supermercado

Supercharger for mercantile
MIT License
127 stars 21 forks source link

'burn' is working only in cli mode #33

Open robert-werner opened 4 years ago

robert-werner commented 4 years ago

When I use supermercado burn in cli mode, it works, passing [x,y,z]'s to specified file. When I use it as Python function, it does not work, writing this: File "C:\Users\someuser\Anaconda3\envs\somecode\lib\site-packages\supermercado\burntiles.py", line 20, in find_extrema totalArr = np.array([c for f in features for poly in f['geometry']['coordinates'] for c in poly for poly in f]) File "C:\Users\someuser\Anaconda3\envs\somecode\lib\site-packages\supermercado\burntiles.py", line 20, in <listcomp> totalArr = np.array([c for f in features for poly in f['geometry']['coordinates'] for c in poly for poly in f]) TypeError: string indices must be integers