geostyler-cli

3.1.1 • Public • Published

GeoStyler CLI

A command line interface for GeoStyler to convert between various formats for styling of geographic data.

tl;dr

npx geostyler-cli --output new-qgis-style.qml my-existing.sld

Requirements

Requires Node.js and npx or npm, both usually come with Node.js.

Usage without installation

npx geostyler-cli -s sld -t qgis -o output.qml input.sld

Global installation

Installation 💾

Once:

npm install -g geostyler-cli

You can then use the new geostyler command, e.g.:

geostyler -s sld -t qgis -o output.qml input.sld

To process a folder of files:

geostyler -s sld -t qgis -o /outputdir /inputdir

Update 🚀

npm update -g geostyler-cli

Uninstalling 😔

npm uninstall -g geostyler-cli

Syntax

On a single file:

geostyler [options] -o /path/to/output.ext /path/to/input.ext

On a directory:

geostyler [options] -t qgis -o /path/to/output /path/to/input/

Options

  • -h / --help Display the help and exit.
  • -o / --output Output filename or directory. Required. [string]
  • -s / --source Source parser, either mapbox, mapfile or map, sld (for SLD 1.0), se (for SLD 1.1), qgis or qml. If not given, it will be guessed from the extension of the input file. Mandatory if the the target is a directory.
  • -t / --target Target parser, either mapbox, sld (for SLD 1.0), se (for SLD 1.1), qgis or qml. If not given, it will be guessed from the extension of the output file. Mandatory if the the target is a directory. Mapfiles are currently not supported as target.
  • -v / --version Display the version of the program.

Developing

In your clone of the repo, in the root directory:

npm install   # get dependencies
npm run build # build from possibly changed source
# now you can call your build like this:
npm start -- -s sld -t qgis -o output.qml testdata/point_simplepoint.sld

Funding & financial sponsorship

Maintenance and further development of this code can be funded through the GeoStyler Open Collective. All contributions and expenses can transparently be reviewed by anyone; you see what we use the donated money for. Thank you for any financial support you give the GeoStyler project 💞

Readme

Keywords

Package Sidebar

Install

npm i geostyler-cli

Weekly Downloads

3

Version

3.1.1

License

BSD-2-Clause

Unpacked Size

23.4 kB

Total Files

6

Last publish

Collaborators

  • terrestris-info
  • jweskamm
  • kaivolland
  • marcjansen
  • hwbllmnn
  • annarieger
  • mholthausen
  • lukaslohoff
  • dnlkoch
  • jansule
  • simonseyock