Created
May 25, 2019 21:46
-
-
Save jalbertbowden/6dc06345b503acf9aa24784eeecfa3b4 to your computer and use it in GitHub Desktop.
esri2geojson not complete
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """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