Giter VIP home page Giter VIP logo

agstoshapefile's Introduction

AGStoShapefile by TannerGeo

AGStoShapefile is a node.js script that will convert Esri map services (Geoservices REST API) to Shapefile, EsriJSON and GeoJSON formats. This script will export all features and is not limited to max feature limits. AGStoShapefile can be used to cache your map services, store data for offline viewing, or used to build applications using a more simple GeJSON format.

Dependencies

  1. You will need to install node.js with NPM.
  2. Install and setup GDAL Windows - Mac/Linux

Instructions

  1. Updates services.txt to include the services you wish to query
  2. Navigate to the script directory in command line and call with node:

You will need to first download all the depencies for this app if you havent already done so

    npm install

Run the script

    // will default to [input] : services.txt and [output] : ./output/
    node AGStoSHP.js

Optionally with input and output parameters specified

    // node AGStoSHP.js [input txt file with services] [output directory]
    node AGStoSHP.js services_weather.txt ./weather_output/

for services.txt - use format [service_endpoint]|[title]\n. Take note of the PIPE (|) symbol and new line.

 //example services.txt file
 http://test.service/arcigs/rest/flooding/MapServer/0|Flooding_Layer
 http://test.service/arcigs/rest/flooding/MapServer/1|Earthquake_Layer
 http://test.service/arcigs/rest/flooding/MapServer/2|Tornado_Layer

screen capture

Known Limitations

Very large datasets have been known to run into problems with memory allocation. kramertamas has added some great modifications put into a separate branch bigdata. Please use this branch if you run into issues with larger datasets.

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.