For a software development, defining the user story is the first thing. Our quick started user story is this.
My current mapping software needs to work with ShapeFile. But I need to explore what the ShapeFile looks like, such as what shape type it is, how many features it includes and what the fields it has. In my development, I often switch my laptop between home (Windows) and office (macOS), so I want a cross platform light weighted tool to help me out those kind of requirements.
Open your terminal and follow the commands below:
At this step, we already setup a basic command line tool project layout. To make it simple, I will avoid to involve the ES6 or TypeScript, but it is actually compatible with those two. I will introduce the ES6 or TypeScript integration later.
const fs = require('fs');
Then execute command
node main.js [a shapefile path] will print the header information.
Get to know more about our API to you can do more powerful functions.
Here is a complete command tool for shapefile node-shapefile-cli for your continue reading.