Skip to content

A simple command line tool for cutting shape files to preferred bounds.

Notifications You must be signed in to change notification settings

ohelli/mapcutter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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] 

About

A simple command line tool for cutting shape files to preferred bounds.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages