Create FH5 map into a real map. Also known as a "fantasy map".
Use this as a sample project if you wanna create your won fantasy map, most important thing for converting a SVG to geoJSON is to have a clean SVG no points that start and end at the same point. (Clean up... in Illustrator fixes this), no curves make sure you add anchors and then simplify again.
WIP, please consider contributing.
Tracing quality of layers. Most important to have perfect is the road tracing, least important are Polygons for Geography
Perfectly (Game verified as good as possible)
- Nothing
Good (Best we can do from satellite image)
- Nothing
Quick (So we have data to work with quick but usable)
- Roads (WIP. 99% roads traced, intersections WIP, Bridges WIP)
- Geography (WIP, Water done, Greens WIP, Others still need to be done)
- Buildings (very simple for now)
- Bridges (50% done)
Create SVG of FH5 map and convert it to a valid geoJSON or similar format to use as a basmap in QGIS or similar.
Illustrator - Object - Path - Clean up
Add Lines below directly in SVG tag root
<MetaInfo xmlns="http://www.prognoz.ru">
<Geo>
<GeoItem X="2148" Y="1435" Longitude="0.1" Latitude="-0.1" />
<GeoItem X="0" Y="0" Longitude="-0.2" Latitude="0.1" />
</Geo>
</MetaInfo>
https://github.com/Phrogz/svg2geojson
$ npm install -g svg2geojson
$ svg2geojson file.svg # Writes file.geojson
$ svg2geojson file.svg --layers # Writes file.geojson, file-layer1Name.geojson, …
# See svg2geojson --help for more parameters
Tools Used:
Adobe Illustator 23.1
QGis 3.22.1-Białowieża
JOSM 18303
Inkscape 1.1.1
Things you cant have in your svg is lines with less than 2 vertices
You can clean up the singlepoints in Illustrator with Clean up...
To add vertices later to lines so you can still draw lines with 2 vertices. QGIS -> vector -> geometry tools -> densify