我花费了很多时间通过QGIS来生成JTCS兵棋地图文件,在地貌方面,我生成的文件不太好,很多农村城镇城市没有得到好的区分,在河流方面也是如此,至于地势方面,地势文件也是费劲了许多心思才生成成功,中途遇到各种各样的问题,至于道路图层则非常麻烦,因为你必须考虑格子连通性问题,即使知道2^6种排列组合法以及其对应的JTCS地图代码,也非常困难,光是第一步导出数据就很难,第二步考虑连通性更难,替换代码还是次要的,而对于格子边缘轮廓我也没有时间去搞,真的好麻烦啊,可惜我不知道怎么通过Wolfram Mathematic来识别地图然后导出数据。如果有人能够告诉我怎么生成地图就好了,我使用Gemini 2.5pro很久都难以生成代码,Claude sonnet 3.7生成的代码好一些,不过对于道路问题仍然尝试了很久都没好效果,尤其是要考虑六边形格栅问题,蜂窝状结构的行列与相邻格子是很特殊的。经常出现只生成一格的半截道路,而相邻格本来要生成的却没有生成,并且经常出现道路整体像被压缩了一样。
I have spent a lot of time generating JTCS wargame map files by using QGIS. In terms of terrain, the files I generated are not very good; many rural areas, towns, and cities are not well-differentiated. The same applies to rivers. As for elevation, the elevation files also took a lot of effort to generate successfully, encountering various problems along the way. The road layer is particularly troublesome because you have to consider grid connectivity. Even knowing the 2^6 permutations and their corresponding JTCS map codes, it's still very difficult. Just the first step, exporting the data, is hard, and the second step, considering connectivity, is even harder; replacing codes is a secondary concern. I also haven't had time to deal with the grid edge contours, which is really a hassle. Unfortunately, I don't know how to use Wolfram Mathematica to recognize maps and then export data. If only someone could tell me how to generate these maps, that would be great. I've been using Gemini 2.5 Pro for a long time and have struggled to generate the code. Claude 3.7 Sonnet's generated code is somewhat better, but I've still tried for a long time with the road issue without good results, especially considering the hexagonal grid problem—the rows, columns, and adjacent cells of a honeycomb structure are very particular. It often happens that only a half-segment of a road is generated in one cell, while the adjacent cell, where it should have been generated, is left empty. Furthermore, the roads frequently appear as if they have been compressed.
Under the article,I send my QGIS with Wolfram attempt process.You can open "Pokrovsk.map" by cold war map edit.exe,if you want open it on other map edit.exe,you need to change the code characters,you can use wolfram to replace code characters.