Skip to content

Tool for converting SVG files into TopoJSON format used by Power BI

License

Notifications You must be signed in to change notification settings

agrohn/shapemaptool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shapemaptool

This tool converts SVG files into TopoJSON format.

Restrictions

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).

Dependencies

Build instructions

 $ mkdir build
 $ cd build
 $ cmake ..
 $ make

Usage

$ ./shapemaptool <svg file>  > output.json

Program writes json generated from svg file into stdout, redirect as you see fit.

Example files

  • kukkakartta.svg - SVG file used in .pbix file
  • powerbee.bpix - Power BI Desktop project file where custom shape map is used.

License

Copyright Anssi Gröhn anssi dot grohn at karelia dot fi (c) 2020-2021. GPL-3.0. See LICENSE for details.

About

Tool for converting SVG files into TopoJSON format used by Power BI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published