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

NoneType is not iterable, source does not support feature count #83

Open
latot opened this issue Mar 25, 2022 · 2 comments
Open

NoneType is not iterable, source does not support feature count #83

latot opened this issue Mar 25, 2022 · 2 comments

Comments

@latot
Copy link

latot commented Mar 25, 2022

Hi hi, here a weird map (?

esri2geojson https://geografia.ine.cl/server/rest/services/Agropecuario/Marco_Maestro_Agro/MapServer/0 test.geojson
2022-03-25 11:35:46,407 - cli.esridump - INFO - Source does not support feature count
Traceback (most recent call last):
  File "/home/user/Documentos/git/pyesridump/esridump/bin/esri2geojson", line 8, in <module>
    sys.exit(main())
  File "/home/user/Documentos/git/pyesridump/esridump/lib/python3.9/site-packages/esridump/cli.py", line 114, in main
    feature = next(feature_iter)
  File "/home/user/Documentos/git/pyesridump/esridump/lib/python3.9/site-packages/esridump/dumper.py", line 354, in __iter__
    oid_field_name = self._find_oid_field_name(metadata)
  File "/home/user/Documentos/git/pyesridump/esridump/lib/python3.9/site-packages/esridump/dumper.py", line 178, in _find_oid_field_name
    for f in metadata['fields']:
TypeError: 'NoneType' object is not iterable

Thx!

@iandees
Copy link
Member

iandees commented Mar 25, 2022

Looks like that's a "layer group" or something. You'll need to use layer 1 or 2, not 0.

@latot
Copy link
Author

latot commented Mar 25, 2022

yes, is a layer group, a layer group will never have extra data that is not contained in the sublayers? because the server recognize the layer group as a layer.

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

2 participants