pyesridump icon indicating copy to clipboard operation
pyesridump copied to clipboard

URI Character Encoding

Open jalbertbowden opened this issue 8 years ago • 1 comments

came across this uri: https://services6.arcgis.com/7ceNQO09AKKCCB85/ArcGIS/rest/services/Routes%20to%20Smith%20Mountain%20Lake%20(Points)/FeatureServer that has ( and ) characters, which causes pyesridump to error out: syntax error near unexpected token '('. easily fixed swapping out ( for %28 and ) for %29, but ideally the tool can do that for us. at some point I'm going to look into source code and see if its an easy enough fix for me to apply.

jalbertbowden avatar Oct 18 '17 13:10 jalbertbowden

This looks like a shell error, not a Python error.

Also, that URL is a FeatureServer, not a layer inside a FeatureServer. Pyesridump only knows how to dump individual layers.

Try doing this:

esri2geojson "https://services6.arcgis.com/7ceNQO09AKKCCB85/ArcGIS/rest/services/Routes%20to%20Smith%20Mountain%20Lake%20(Points)/FeatureServer/0" bloop.geojson

The important part is the quotes around the URL (so your shell doesn't try to interpret the parens) and the layer identifier at the end (/0).

iandees avatar Oct 18 '17 13:10 iandees