https://github.com/jancaha/qgis-qmapshaper
QGIS plugin for running mapshaper directly from QGIS.
https://github.com/jancaha/qgis-qmapshaper
python3 qgis qgis-plugin qgis-processing
Last synced: about 1 year ago
JSON representation
QGIS plugin for running mapshaper directly from QGIS.
- Host: GitHub
- URL: https://github.com/jancaha/qgis-qmapshaper
- Owner: JanCaha
- Created: 2022-01-28T23:04:04.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-12-17T21:29:32.000Z (over 2 years ago)
- Last Synced: 2023-12-17T22:22:36.814Z (over 2 years ago)
- Topics: python3, qgis, qgis-plugin, qgis-processing
- Language: Python
- Homepage: https://jancaha.github.io/qgis-qmapshaper/
- Size: 4.32 MB
- Stars: 12
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# QMapshaper
[](https://github.com/JanCaha/qgis-qmapshaper/actions/workflows/test_plugin.yaml)
QGIS plugin to turn [mapshaper](https://github.com/mbloch/mapshaper) into QGIS tool.
## Installation
Requires installation of NodeJS, npm and mapshaper.
### Linux
On most Linux distributions this should do:
```
sudo apt install nodejs
sudo apt install npm
npm install mapshaper
```
You can also install mapshaper globally for the system.
```
npm install -g mapshaper
```
### Windows
On Windows the setup may vary. You then need the path to `mapshaper` folder in `node_modules`. See details below.
## Setting up
In **QGIS settings** under **Processing** under **QMapshaper** the **_mapshaper_** folder needs to be set up.
On Linux this tends to be: `/home/user_name/node_modules/mapshaper`, where you just replace `user_name` with your user name. If this is not the case you have to investigate, where the folder is. Best way might be to search for file **mapshaper-gui** which is located in the `mapshaper/bin` directory.
## Tools
So far there is processing tool **Simplify vector** usable in complex workflows. There is also **Interactive Simplifier** which is GUI tool that allows playing around interactively with the simplification parameters.
## Examples
### Plugin Settings
The settings requires `Mapshaper folder` and `Mapshaper tool name`. The tool name for Linux and Windows wary, but the plugin does it's best to set it up correctly. For Linux and MacOS it should be `mapshaper-xl` while on Windows `mapshaper-xl.cmd` should be the correct programme.

### Interactive Tool

### Use Case
