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

Source does not support feature count on MapServer layer #101

Open
iandees opened this issue Dec 31, 2023 · 2 comments
Open

Source does not support feature count on MapServer layer #101

iandees opened this issue Dec 31, 2023 · 2 comments

Comments

@iandees
Copy link
Member

iandees commented Dec 31, 2023

I get "INFO - Source does not support feature count" with this map, and I'm able to run a 1=1 query on it successfully.

dumper.py", line 169, in _find_oid_field_name
    for f in metadata['fields']:
KeyError: 'fields'

Originally posted by @Geremia in #75 (comment)

@iandees
Copy link
Member Author

iandees commented Jan 1, 2024

@Geremia this seems to work fine for me:

$ esri2geojson 'https://gis.mcassessor.maricopa.gov/arcgis/rest/services/Parcels/MapServer/0' output.geojson
2023-12-31 18:09:18,086 - cli.esridump - INFO - Built 1726 requests using resultOffset method
2023-12-31 18:09:58,364 - cli.esridump - INFO - retry pause 0
...

Can you try again and/or make sure you're using the correct URL?

@Geremia
Copy link

Geremia commented Jan 1, 2024

@iandees I get a timeout:

$ esri2geojson https://gis.mcassessor.maricopa.gov/arcgis/rest/services/Parcels/MapServer/0 output.geojson
2024-01-01 16:14:57,251 - cli.esridump - INFO - Built 1726 requests using resultOffset method
2024-01-01 16:15:37,408 - cli.esridump - INFO - retry pause 0
2024-01-01 16:16:27,593 - cli.esridump - INFO - retry pause 1
2024-01-01 16:17:27,783 - cli.esridump - INFO - retry pause 2
2024-01-01 16:18:38,023 - cli.esridump - INFO - retry pause 3
2024-01-01 16:19:58,229 - cli.esridump - INFO - retry pause 4
Traceback (most recent call last):
  File "~/pyesridump/ersidump/bin/esri2geojson", line 8, in <module>
    sys.exit(main())
  File "~/pyesridump/ersidump/lib64/python3.9/site-packages/esridump/cli.py", line 119, in main
    feature = next(feature_iter)
  File "~/pyesridump/ersidump/lib64/python3.9/site-packages/esridump/dumper.py", line 460, in __iter__
    raise download_exception
esridump.errors.EsriDownloadError: ('Could not connect to URL', ReadTimeout(ReadTimeoutError("HTTPSConnectionPool(host='gis.mcassessor.maricopa.gov', port=443): Read timed out. (read timeout=30)")))

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