JOSM/Plugins/ImportVec

From OpenStreetMap Wiki
Jump to: navigation, search
Help
Available languages
Deutsch English
JOSM with Ubuntu logo imported from SVG

ImportVec allows you to import SVG files into JOSM.

Example for a circle:

If you're getting data from SVG to put into OpenStreetMap then you would download the relevant area of the map at this stage, but for now let's just start a blank data layer.
For this example the circle is 100 pixels wide. With 1:1 scale selected, you will get in a circle 100 meters in diameter in JOSM, with 2:1 selected you would get a 50 meter wide circle, with 1:2 selected you would get a 200 meter wide circle, etc.
This lets you control the number of nodes generated to represent curved lines of the SVG.
For our circle SVG, choosing "1" would give you a square, "2" an octagon, "3" starts to look more circular
Generally you would want to adjust this to a higher number if your SVG has larger diameter curves. Try to follow OpenStreetMap norms for the number of nodes you use.
The SVG data is initially placed centrally on the visible map area. Select the data and drag to move it to the right place. You can also make scale adjustments by holding down Ctrl and Alt keys while dragging.
JOSM treats the new data as if you had drawn new node and ways in the editor, so you can click 'upload' to send the data to the OpenStreetMap database and have it appear on the map (you'll need to add tags first too) Don't do this if you were just messing around! Don't do it if you just wanted to convert the data. You can save the data layer from JOSM to a .osm file for processing elsewhere.
Personal tools
Namespaces
Variants
Actions
site
Toolbox