GIS data export - Azgaar/Fantasy-Map-Generator GitHub Wiki

What is GIS?

A geographic information system (GIS) is a framework for gathering, managing, and analyzing data. Rooted in the science of geography, GIS integrates many types of data. It analyzes spatial location and organizes layers of information into visualizations using maps and 3D scenes.

Why GIS with a Fantasy Map?

GIS tools are custom-built to handle maps, with large data sets, integrate with other tools such as databases and create interactive maps such as Google Maps.

Being able to import a fantasy map into a GIS system puts all the power of those systems into your hands. Among other things, a GIS map can have many more layers, for example to have a view of the world at different times in history. It can link to a database to bring in as much information about the world as you have. It can also dynamically update itself from that database. For example, online game Might & Fealty allows to build roads, and roads can deteriorate over time. These roads and their condition are part of the game map.

Also, at this time, it is the only way to zoom from world map to street view without going to a different tool.

What GIS does not do is creating a map, it's made to deal with the real world, it doesn't generate random maps or invent cultures and religions. This is where Fantasy Map Generator comes in order to merge generated data with whatever other data you have in your game and to create an interactive read-only map view.

Here is a fantasy world made with the Fantasy Map Generator and exported to GIS tools: https://lemuria.org/dragoneye/atlas/Auseka

Quantum GIS

QGIS is a free multi-platform tool for GIS work. It can load, edit and print maps in high quality as well as export the results for interactive online maps. In essence, if you ever thought that having Google Maps for your fantasy world would be incredible cool, this is how you do it.

Download and installation instructions can be found here. There are also many videos and online instructions on QGIS:

You are not, of course, limited to only QGIS. Data exported can also be used in other GIS tools, such as GRASS, ArcGIS and others.

Loading into QGIS

Fantasy Map Generator allows to export some data in GIS-compatible format.

Cell Data

In the Save... menu of the Generator there is an option .json to save the cell data into as a GeoJSON file. These can be imported into QGIS by choosing Layer -> Add Layer... -> Add Vector Layer...

Steps

Choose the saved .geojson file. It should be set up correctly as well, but doesn't show much. For the biomes, a prepared style can be found here. Load it for the new layer you just created and the biomes should show up (click on the properties of the initial "cells" layer and then in the symbology tab of the options, you click style then load.)

Steps

There is additional cell information such as population, height (for a heightmap), but also states, provinces, culture, etc. exported, all of which can be used in QGIS to render this information.

Unfortunately, there are sometimes gaps or overlaps in the cell export data. You can find them in QGIS with Vector -> Geometry Tools... -> Check Validity. They are easy to fix by hand, if you need to (only needed if you want to do further processing with the data).

Burg Data

Burg data can be downloaded as .csv file using the button in the Burgs Editor . The downloaded file contains position information (longitude, latitude and height) for burgs. These can be imported into QGIS by choosing Layer -> Add Layer... -> Add Delimited Text Layer...

Steps

Choose the exported .csv file. It should all be set up correctly automatically, so just check that x and y are correctly set to the longitude and latitude fields.

Steps

Marker Data

Points-of-Interest (markers) also contain location information and can be exported and imported in the same way as Burgs data.

Processing in QGIS

To create a political/religious/provinces/culture/etc. map use Vector -> Geoprocessing Tools -> Dissolve... and select the .geojson file as input and the attribute you want to merge by (e.g. "state"). QGIS will merge all the polygons that share the same attribute so that you end up with one multipolygon per state/culture/religion/etc.

Steps

Steps

Note that QGIs automatically turns a polygon layer into a multipolygon layer for this.

Simply repeat this step for all the layers that you want to use (once for states, once for provinces, etc.). This will give you one layer in QGIS per attribute, and you can then style and hide/show the layers as needed.

Editing in QGIS

When working with cells, you need to make sure that neighbor cells are changed as well, to prevent overlaps or gaps. QGIS supports topological editing.

Rendering

To get that painted look, you want to use textures to fill, especially for biome data. Simply set up the symbology to use a Raster Fill Image, pick your texture and make sure to set the Coord mode to "Viewport":

steps

steps

See also