From a0df54bb21ddb3888bf5c144a80a1d73de1e8313 Mon Sep 17 00:00:00 2001 From: Tom Vogt Date: Sun, 1 Sep 2019 20:26:33 +0200 Subject: [PATCH] fixed projection problems in export added cell -> geojson export added a QGIS example style --- .DS_Store | Bin 0 -> 6148 bytes QGIS/Style_Biomes.qml | 361 +++++++++++++++++++++++++++++++++++++ README-GIS.md | 32 ++++ index.html | 203 ++++++++++----------- main.js | 38 ++-- modules/save-and-load.js | 89 ++++++++- modules/ui/burgs-editor.js | 4 +- modules/ui/options.js | 47 ++--- 8 files changed, 623 insertions(+), 151 deletions(-) create mode 100644 .DS_Store create mode 100644 QGIS/Style_Biomes.qml create mode 100644 README-GIS.md diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5beaef54d18758aea6ebdeabc7f4af9f1524c935 GIT binary patch literal 6148 zcmZQzU|@7AO)+F(5MW?n;9!8zOq>i@0Z1N%F(jFwA|RR(WJXeXaY0f}ei8!%!zrlT zC^fi402FsD41o;p44w?Z$nlp{kds+lVqkEck%^gwm5rT)gM*ucmm@YfBfmVjB(bEl z*eS6n8pI1oEXhcMvP1IobKva6q_E7?@^}Fe=lr~q#LT?ZB9QXn%#_rm#G;t+%)FHR za;N;#yp&?FIZz2sPEHQacmc`kYD;qy9R(9ZlUf~xYC|JKQym2hGo#vCP7ZNZLtD>; z+{&uzn%cTqkN{?6gwPE9P#Q+fW?*1|`>-syC@&{JFCCNvUh;{}> zXb*)E)T05J57ExR2+m_dsQ Qh5#&tM(NQIpnnJe06`s3_5c6? literal 0 HcmV?d00001 diff --git a/QGIS/Style_Biomes.qml b/QGIS/Style_Biomes.qml new file mode 100644 index 00000000..c482cfe3 --- /dev/null +++ b/QGIS/Style_Biomes.qml @@ -0,0 +1,361 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 2 + diff --git a/README-GIS.md b/README-GIS.md new file mode 100644 index 00000000..3ca8d6ce --- /dev/null +++ b/README-GIS.md @@ -0,0 +1,32 @@ +# GIS Support + +There is simple GIS support in this release, allowing the export to tools like Quantum GIS (https://qgis.org). + + +## Burg Data + +This version exports position information (longitude, latitude and height) for burgs. These can be imported into QGIS by choosing Layer -> Add Layer... -> Add Delimited Text Layer... + +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. + + +## Cell Data + +In the Save... menu is a new option ".json" to save the cell data into a GeoJSON file. These can be imported into QGIS by choosing Layer -> Add Layer... -> Add Vector Layer... + +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 in the QGIS subdirectory here. Load it for the new layer you just created and the biomes should show up. + +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 + + +## Rivers, Roads, Borders etc. + +Not yet supported, planned. + + + +## Questions, etc. + +Make a pull request: + +https://github.com/tvogt/Fantasy-Map-Generator diff --git a/index.html b/index.html index 0eaea9dc..c2cb60d6 100644 --- a/index.html +++ b/index.html @@ -172,7 +172,7 @@ - + @@ -254,50 +254,50 @@ - + - + - + - + - + - + - + - + - + @@ -306,7 +306,7 @@ - + @@ -315,7 +315,7 @@ - + @@ -324,7 +324,7 @@ - + @@ -342,7 +342,7 @@ - + @@ -351,7 +351,7 @@ - + @@ -359,37 +359,37 @@ - + - + - + - + - + - + @@ -421,7 +421,7 @@ - + @@ -429,23 +429,23 @@ - + - + - + - + @@ -455,7 +455,7 @@ - + @@ -463,14 +463,14 @@ - + - + @@ -479,26 +479,26 @@ - + - + - + - + @@ -506,25 +506,25 @@ - + - + - + - + @@ -532,13 +532,13 @@ - + - + @@ -549,7 +549,7 @@ - + @@ -557,7 +557,7 @@ - + @@ -565,7 +565,7 @@ - + @@ -575,7 +575,7 @@ - + @@ -585,7 +585,7 @@ - + @@ -595,7 +595,7 @@ - + @@ -613,7 +613,7 @@ - + @@ -622,7 +622,7 @@ - + @@ -630,44 +630,44 @@ - + - + - + - + - + - + - + @@ -685,14 +685,14 @@ - + - + @@ -703,24 +703,24 @@ - + - + - + - + @@ -730,7 +730,7 @@ - + @@ -738,14 +738,14 @@ - + - + @@ -754,20 +754,20 @@ - + - + - + @@ -975,7 +975,7 @@ - + @@ -1048,7 +1048,7 @@ #0000ff - + - + - + - + - - + + - + @@ -1158,7 +1158,7 @@ - + - + - + @@ -1216,7 +1216,7 @@ 1 - + - + @@ -1341,7 +1341,7 @@ 0.3 - + - + @@ -1386,7 +1386,7 @@ 5 - + - + @@ -1447,7 +1447,7 @@ - + @@ -1498,7 +1498,7 @@ - + @@ -1545,7 +1545,7 @@ - +
Please ensure the element is toggled on!Please ensure the element is toggled on!
Urban color @@ -1086,7 +1086,7 @@
Shift by axes @@ -1113,7 +1113,7 @@
Ocean layers @@ -1128,7 +1128,7 @@
Background @@ -1143,10 +1143,10 @@ #53679f
Type
Size @@ -1187,7 +1187,7 @@ .25
Shift by axes @@ -1196,7 +1196,7 @@
Style
Density @@ -1235,7 +1235,7 @@
Stroke
Labels size @@ -1358,7 +1358,7 @@
Color scheme
Simplify line @@ -1406,7 +1406,7 @@
Filter
@@ -1688,7 +1688,7 @@
- + @@ -1819,6 +1819,7 @@
.map
.svg
.png
+
.json
@@ -1836,7 +1837,7 @@ @@ -1844,8 +1845,8 @@
@@ -1870,18 +1871,18 @@
Map size:
- px = + px =
Meridian length:
- px = + px =
@@ -1907,7 +1908,7 @@ - + @@ -2239,7 +2240,7 @@
- + @@ -2436,14 +2437,14 @@ - +