# Select all objects and go to Object > Path > Simplify, under Options *check* Straight lines and then OK # Ungroup all objects, remove clipping masks, remove all strokes, leave just fill and go to Object > Expand When maps are detailed and/or sloppy created, regardless of InkScape version, you can use Adobe Illustrator: This application saved me much more time than what I spent trying to figure out these issues. In these very few cases I had to break them apart using the option "Path > Break apart".įinally I could convert my map without more problems. Not all, but some ones that were too complex.
Some paths composed by subpaths caused me problems. In my case, because the end nodes were so close, the new segments were imperceptible :). Fortunately this action ignores the nodes that are already joined and only creates a segment between the end nodes. So I tried to select all the nodes of each path and use the option of the node editor called "Join selected end nodes with a new segment". Many paths look like closed, but they aren't really! InkscapeMap returned a cryptic message: " c not implemented yet" when I tried to load the SVG file.ĭetecting the end nodes of each path and joining them, one by one, had been a very tedious task :S. It may sound obvious, but when you work with graphics from external sources, it isn't :/. It allows you to set the level of flatness, which is a desirable feature to keep the looks as much close to the original graphic as possible.Ģ. Because my graphic used lots of curves, I used an extension of Inkscape, located on "Extensions > Modify path > Flattern Beziers". The paths must be straight lines, without any Bézier curve. Thanks to some information found on Launchpad (/inkscape/+question/81736) and after many trial and error tests, I discovered some important rules that the SVG file must meet:ġ.
Specially about the requisites of the SVG file to convert. However, it took me some time to do it because of the lack of some important information. I took a SVG map that I needed from Wikimedia Commons, and converted it into a HTML image map successfully.