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

Error when downloading layer 'Could not retrieve this chunk of objects: Failed to execute query. ' #42

Open
samtux opened this issue Nov 20, 2017 · 2 comments

Comments

@samtux
Copy link

samtux commented Nov 20, 2017

I have tried to download the layer of the following web link but always get an error that I could not identify:

http://www.secretariadeambiente.gov.co/arcgis/rest/services/MapasVisorGeo/Cal_Aire_Geo/MapServer/68

[samtux@ultrabook tmp]$ esri2geojson h
[samtux@ultrabook tmp]$ esri2geojson http://www.secretariadeambiente.gov.co/arcgis/rest/services/MapasVisorGeo/Cal_Aire_Geo/MapServer/68 prueba.geojson
2017-11-20 13:02:13,012 - cli.esridump - INFO - Built 1 requests using resultOffset method
Traceback (most recent call last):
  File "/usr/bin/esri2geojson", line 11, in <module>
    load_entry_point('esridump==1.7.0', 'console_scripts', 'esri2geojson')()
  File "/usr/lib/python2.7/site-packages/esridump/cli.py", line 103, in main
    feature = next(feature_iter)
  File "/usr/lib/python2.7/site-packages/esridump/dumper.py", line 394, in __iter__
    raise EsriDownloadError("Could not connect to URL", e)
esridump.errors.EsriDownloadError: ('Could not connect to URL', EsriDownloadError('Could not retrieve this chunk of objects: Failed to execute query. ',))
[samtux@ultrabook tmp]$ttp://www.secretariadeambiente.gov.co/arcgis/rest/services/MapasVisorGeo/Cal_Aire_Geo/MapServer/68 prueba.geojson
2017-11-20 13:02:13,012 - cli.esridump - INFO - Built 1 requests using resultOffset method
Traceback (most recent call last):
  File "/usr/bin/esri2geojson", line 11, in <module>
    load_entry_point('esridump==1.7.0', 'console_scripts', 'esri2geojson')()
  File "/usr/lib/python2.7/site-packages/esridump/cli.py", line 103, in main
    feature = next(feature_iter)
  File "/usr/lib/python2.7/site-packages/esridump/dumper.py", line 394, in __iter__
    raise EsriDownloadError("Could not connect to URL", e)
esridump.errors.EsriDownloadError: ('Could not connect to URL', EsriDownloadError('Could not retrieve this chunk of objects: Failed to execute query. ',))
[samtux@ultrabook tmp]$
@iandees
Copy link
Member

iandees commented Nov 20, 2017

In your example there it looks like the URL is split between two executions of the esri2geojson command. Can you try again and make sure the URL is passed in properly?

@samtux
Copy link
Author

samtux commented Nov 20, 2017

Sure @iandees , I've dealt with this layer and apparently it doesn't work with the esri2geojson command.

> esri2geojson http://www.secretariadeambiente.gov.co/arcgis/rest/services/MapasVisorGeo/Cal_Aire_Geo/MapServer/68 test.geojson

However, I have found that I can actually download the layer in GeoJSON format directly with the Query request in ArcGIS Server:

http://www.secretariadeambiente.gov.co/arcgis/rest/services/MapasVisorGeo/Cal_Aire_Geo/MapServer/68/query?where=OBJECTID>0&outfields=*&f=geojson

Other layers of the same server if you can access and download with esri2geojson. I appreciate please if you can replicate the case with the esri2geojson command.

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