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

URI Character Encoding #41

Open
jalbertbowden opened this issue Oct 18, 2017 · 1 comment
Open

URI Character Encoding #41

jalbertbowden opened this issue Oct 18, 2017 · 1 comment

Comments

@jalbertbowden
Copy link

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.

@iandees
Copy link
Member

iandees commented Oct 18, 2017

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).

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