This tool converts SVG files into TopoJSON format.
Objects in SVG must not overlap. If done in Inkscape, all objects must be defined as paths and split with modify path extension to appropriate resolution. Negative scaling at any stage will make generated map appear inversed (inside is outside and vice versa).
$ mkdir build
$ cd build
$ cmake ..
$ make
$ ./shapemaptool <svg file> > output.json
Program writes json generated from svg file into stdout, redirect as you see fit.
- kukkakartta.svg - SVG file used in .pbix file
- powerbee.bpix - Power BI Desktop project file where custom shape map is used.
Copyright Anssi Gröhn anssi dot grohn at karelia dot fi (c) 2020-2021. GPL-3.0. See LICENSE for details.