Skip to content

Instantly share code, notes, and snippets.

@jalbertbowden
Created May 25, 2019 21:46
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jalbertbowden/6dc06345b503acf9aa24784eeecfa3b4 to your computer and use it in GitHub Desktop.
esri2geojson not complete
"""import json
from esridump.dumper import EsriDumper
d = EsriDumper('http://example.com/arcgis/rest/services/Layer/MapServer/1')
# Iterate over each feature
for feature in d:
print(json.dumps(feature))
d = EsriDumper('http://example.com/arcgis/rest/services/Layer/MapServer/2')
# Or get all features in one list
all_features = list(d)"""
import os
os.system('esri2geojson http://cookviewer1.cookcountyil.gov/ArcGIS/rest/services/cookVwrDynmc/MapServer/11 cookcounty2.geojson')
print('geojson output complete!')
"""
# write-html.py
f = open('helloworld.html','w')
message = """<!DOCTYPE html>
<html lang="en-us">
<head>
</head>
<body>
<p>Hello World!</p>
</body>
</html>"""
f.write(message)
f.close()
""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment