polygon-city-cli
v0.1.27
Published
Polygon City CLI
Downloads
19
Readme
Polygon City CLI
Requirements
- npm and Node v5 (https://nodejs.org/dist/v5.2.0/node-v5.2.0.pkg)
- Redis (http://redis.io/download#installation)
- A Mapzen Elevation Service key (https://mapzen.com/developers)
Installation
$ npm install polygon-city-cli@latest -g
Usage
Processing a new CityGML file:
$ polygon-city -c <epsg_code> -E <mapzen_elevation_key> -o /path/to/obj/output/directory /path/to/cityGml/file.xml
Resuming previous unfinished jobs:
$ polygon-city resume
Step-by-step example
- Run
npm install polygon-city-cli -g
- Start a local Redis server (using port 6379)
- Download some CityGML data from Linz, Austria
- Take note of the EPSG code used for the Linz dataset (EPSG:31255)
- Run the command line tool:
$ polygon-city -c 31255 -E "your_mapzen_elevation_key" -o /path/to/obj/output/directory /path/to/cityGml/file.xml