Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 1.03 KB

File metadata and controls

25 lines (18 loc) · 1.03 KB

mapcutter

A simple command line tool for clipping large amounts of shapefiles to a given bounds. This tool is needed if a group shapefiles cover a large area and need to be clipped to the exact same bounds, f.e. a country needs to be clipped to a specific city.

mapcutter

Installation

  1. Clone or download this repository.
  2. With the terminal, go into the repository directory via cd and execute (you might need sudo privelages):
  3.  npm install -g 

How To Use

  1. Get the bounds of the area or city you want to clip to (see below).
  2. Open the terminal.
  3. cd to the directory with shapefiles (.shp) you wish to clip.
  4. Enter
     mapmaker -b= [westlimit,southlimit,eastlimit,northlimit]  

Getting Map Bounds for Locations

To get the bounds needed for clipping shapefiles:

  1. visit https://boundingbox.klokantech.com.
  2. Enter your city/region and use the CSV RAW format values at the bottom in the following order:
 mapmaker -b= [westlimit,southlimit,eastlimit,northlimit]