Coder Social home page Coder Social logo

jalbertbowden / esri2geojson2leaflethtml Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 1.44 MB

Python script that pulls GeoJSON data out of ESRI Arcgis servers and outputs Leaflet.js web map in HTML.

License: Mozilla Public License 2.0

Python 1.64% CSS 1.80% JavaScript 96.07% PHP 0.48%
geojson esri arcgis leaflet leafletjs leaflet-map web-map python open data

esri2geojson2leaflethtml's Introduction

esri2geojson2leaflethtml

Python script that pulls GeoJSON data out of ESRI Arcgis servers and outputs Leaflet.js web map in HTML. pyesridump browser implementation demo

Note: this is a work in progress/proof of concept. This can and should be optimized in more ways than one.

As is, this script is only going to work for GeoJSON with geometry of type polygon.

Up and Running

Install pyesridump
Open up esri2geojson2leaflethtml.py and edit the following variables for your desired output:
featureServerURL, datasetName, mapCoordinates, mapName, and localPath
The example below provides the information used in the example to pull Richmond, VA's City Boundary dataset of ESRI Arcgis' servers and generates a Leaflet.js powered HTML web map showing the dataset.


featureServerURL = 'https://services1.arcgis.com/k3vhq11XkBNeeOfM/ArcGIS/rest/services/CityBoundary/FeatureServer/0'
datasetName = 'Richmond City Boundary'
mapCoordinates = '[37.533333, -77.466667]'
mapName = 'richmond-city-boundary'`
localPath = 'file:///Users/j.albertbowden/Desktop/github/esri2geojson2leaflethtml/'

TO DO:
Cover all GeoJSON geometry types.
Implement setup functionality from HTML form.
Deploy on www.
All of the code is sloppy copy/pasta get it working...not even close to being ready for primetime.

esri2geojson2leaflethtml's People

Contributors

jalbertbowden avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.