mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Make generate_landmap importable.
This file may not be needed long term, but for now I want to import to_multipoly for some other work.
This commit is contained in:
parent
643d1be6d7
commit
a74add96b7
@ -32,7 +32,16 @@ def _geometry_collection_to_multipoly(obj: GeometryCollection) -> MultiPolygon:
|
|||||||
raise RuntimeError(f"Not sure how to convert collection to multipoly: {obj.wkt}")
|
raise RuntimeError(f"Not sure how to convert collection to multipoly: {obj.wkt}")
|
||||||
|
|
||||||
|
|
||||||
for terrain in ["cau", "nev", "syria", "channel", "normandy", "gulf", "marianaislands"]:
|
def main() -> None:
|
||||||
|
for terrain in [
|
||||||
|
"cau",
|
||||||
|
"nev",
|
||||||
|
"syria",
|
||||||
|
"channel",
|
||||||
|
"normandy",
|
||||||
|
"gulf",
|
||||||
|
"marianaislands",
|
||||||
|
]:
|
||||||
print("Terrain " + terrain)
|
print("Terrain " + terrain)
|
||||||
m = Mission()
|
m = Mission()
|
||||||
m.load_file("./{}_terrain.miz".format(terrain))
|
m.load_file("./{}_terrain.miz".format(terrain))
|
||||||
@ -69,3 +78,7 @@ for terrain in ["cau", "nev", "syria", "channel", "normandy", "gulf", "marianais
|
|||||||
),
|
),
|
||||||
f,
|
f,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user