Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'burn' is working only in cli mode #33

Open
robert-werner opened this issue Feb 20, 2020 · 0 comments
Open

'burn' is working only in cli mode #33

robert-werner opened this issue Feb 20, 2020 · 0 comments

Comments

@robert-werner
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant