Skip to content

A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.

Map: the 1949 armistice lines from the agreements (Egypt, Lebanon, Jordan at low accuracy, Syria) (#248)

Eyal Golan7ec59627c39e
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index a090ad025..74a3c72cc 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -61,7 +61,7 @@ jobs:
tools/**/*.py
scripts/oss/**/*.py
- name: Data tool tests
- run: uv run --with pytest==9.1.1 --with rasterio==1.5.2 --with numpy==2.5.3 --with pyyaml==6.0.3 --with pillow==12.3.0 --with requests==2.32.5 pytest tools/tests -q
+ run: uv run --with pytest==9.1.1 --with rasterio==1.5.2 --with numpy==2.5.3 --with pyyaml==6.0.3 --with pillow==12.3.0 --with requests==2.32.5 --with pyproj==3.8.0 pytest tools/tests -q
policy:
name: Repo policy
diff --git a/ASSETS.yaml b/ASSETS.yaml
index a8189093d..30f2fe9ad 100644
--- a/ASSETS.yaml
+++ b/ASSETS.yaml
@@ -100,6 +100,11 @@ rules:
source: "tools/borders_digitise.py from the Survey of Palestine map 'Administrative Divisions' (1:750,000, 1946, overprinted May 1947; two Commons scans, SHA-256 in the file) per the 1947 Schedule (Palestine Gazette No. 1552); coast from the Copernicus DEM (NOTICE); the hex layer by tools/borders_bake.py; content/ is CC BY-SA 4.0"
status: verified
note: "Decision D-B (owner-delegated, 2026-10-11): allowed; facts redrawn, no image copied. Government of Palestine works of 1945-47, public domain in Israel and the UK since 1997; the file holds facts (where legally defined lines run) redrawn by our own method, which a possible US copyright in the map's drawing does not reach (Feist). Hebrew and Arabic names from Wikipedia, noted per row."
+ - glob: "content/map/armistice*"
+ licence: CC-BY-SA-4.0
+ source: "tools/armistice_digitise.py from the 1949 General Armistice Agreements (UNTS vol. 42) and their annexed maps: Syria, Annex I's MR points and the annexed 1:50,000 map (S/1353/Rev.1: the UN ODS colour scan and the UNISPAL 1-bit scan, SHA-256 in the tool); Lebanon, Art. V.1's international boundary as the Mandate frontier of content/map/subdistricts_1948.geojson; Egypt, Art. VI.1 and VIII.2 with the Survey of Palestine 1:100,000 sheet 9 'Gaza' (Commons, NLI copy) for the Wadi Hasi mouth, Deir Suneid and the highway; the 1950 modus vivendi line from S/1471's signed map (UNISPAL; sheet 2 from the UN Treaty Collection); Jordan from the low-resolution UNISPAL copy of the signed map 1 (source_quality low_res_scan), georeferenced on town coordinates from Wikidata (CC0) and Wikipedia; IBS 46 (1965) a named cross-check only; coast from the Copernicus DEM (NOTICE); the hex layer by tools/armistice_bake.py; content/ is CC BY-SA 4.0"
+ status: owner-verify
+ note: "Decision D-A: UN documents with symbols are not copyrighted (ST/AI/189/Add.9/Rev.2 para. 2); the Gaza sheet, the Mandate frontier and Jordan map 1's 1:250,000 base fall under D-B (Government of Palestine); S/1471's base sheets are a Survey of Israel reprint of about 1949-50 (outside D-B; facts only taken). Only the lines' positions are taken, redrawn by our own method. Status draft until the owner's fact check and sensitivity review."
- glob: "content/map/settlements_1948.yaml"
licence: CC-BY-SA-4.0
source: "Coordinates from the Wikipedia API (prop=coordinates) and tools/settlement_hexes.py; per-settlement URLs and check dates in settlements_1948.yaml"
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 12ecf7871..c11fd17ba 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -42,6 +42,15 @@ adds a line under **Unreleased**; CI's `Changelog` job checks this (see `CONTRIB
as true lines (`content/map/subdistricts_1948.geojson`, sensitivity-reviewed); the map shows them snapped to hex edges in the
blue border style, labelled "Mandate sub-districts, 1947" from the 1948 start until the 1949 armistice lines replace
them; the info panel names a hex's sub-district and district. Display only: the sim does not read them.
+- The 1949 armistice lines on the map (armistice-lines, #196): from each agreement's date (the Mandate sub-district
+ layer's per-front switch) that front's armistice zones are drawn over the sub-districts, and the label and info panel
+ name its lines; the sub-district bands stay as the base. Egypt (24 Feb 1949): the El Auja Demilitarized Zone and the Gaza-Rafah line from the
+ Wadi Hasi to Gaza, and from 22 Feb 1950 the line on the signed modus vivendi map; Lebanon (23 Mar 1949): the
+ international boundary; Jordan (3 Apr 1949, line A in the Iraqi sector by its May-July 1949 stages): low accuracy,
+ traced from a low-resolution copy of the signed map and labelled so, Jerusalem left out; Syria (20 Jul 1949): the line
+ through Annex I's points and the three-part Demilitarized Zone, from the annexed 1:50,000 map. Stored as true lines
+ (`content/map/armistice_lines_1949.geojson`, status draft), drawn snapped to hex edges in the red-orange style; the
+ info panel names the line or zone and its agreement. Display only: the sim does not read them.
- Open-source release (public since 2026-10-10): licences (MIT code, CC BY-SA 4.0 content, CC BY 4.0 original docs
and art, CC0 for AI-only images), asset provenance (`ASSETS.yaml`), contributor
and content policies, CI for the sim, tools and repository policy.
diff --git a/NOTICE b/NOTICE
index ae2697c86..c0e760a1d 100644
--- a/NOTICE
+++ b/NOTICE
@@ -33,6 +33,16 @@ Railways and roads of 1948 (content/map/route*_1948.yaml): traced on the Survey
(public domain in Israel and the UK; facts only are used, as for decision D-B in docs/oss/DECISIONS.md), using the scans
and georeferencing published by Palestine Open Maps (https://palopenmaps.org).
+1949 armistice lines (content/map/armistice_lines_1949.geojson): digitised from the General Armistice Agreements of
+1949 and their annexed maps (United Nations Treaty Series vol. 42; UN documents S/1264/Corr.1, S/1296, S/1302/Rev.1,
+S/1353/Rev.1, and S/1471 with its signed 1950 map; UN documents are not copyrighted, ST/AI/189/Add.9/Rev.2), from the
+UN Official Document System, UNISPAL and the UN Treaty Collection; the Egypt line uses the Survey of Palestine
+1:100,000 sheet "Gaza" (Government of Palestine, decision D-B; National Library of Israel scan via Wikimedia Commons)
+and the Lebanon line the sub-district data's Mandate frontier; the Jordan map is drawn on the Survey of Palestine
+1:250,000 (1946, decision D-B) and S/1471's on Survey of Palestine 1:20,000 sheets reprinted by the Survey of Israel
+(only the agreements' line positions are taken); town coordinates for georeferencing from Wikidata (CC0)
+and Wikipedia. Decision D-A.
+
Portraits: public-domain and CC0 photographs from Wikimedia Commons; per-file records in ASSETS.portraits.yaml.
Event-card photographs (unity/Assets/UI/EventImages/; per-file records in ASSETS.yaml). Each is adapted: graded and
diff --git a/content/map/armistice_hexes_1949.yaml b/content/map/armistice_hexes_1949.yaml
new file mode 100644
index 000000000..fe913b16e
--- /dev/null
+++ b/content/map/armistice_hexes_1949.yaml
@@ -0,0 +1,158 @@
+# Generated by tools/armistice_bake.py from armistice_lines_1949.geojson (the true lines), hexes.json and the
+# sub-district layer. Do not edit by hand: rerun the tool. Display only (MapBorders): the sim never reads this file.
+# Zones take the land hexes whose centre they contain; lines name the hexes they pass through (info panel).
+layer: armistice_1949
+title: "The 1949 armistice lines that the primary sources allow (true lines, not hex-snapped)"
+line: "The true lines are content/map/armistice_lines_1949.geojson (status draft): the agreements and their annexed maps; shown here to the nearest hex edge, up to half a hex (about 4 km) from the true line."
+label: "1949 armistice lines" # added to the map label while any front's line is shown
+fronts: # each agreement; shown_from null: no line data, the Mandate sub-district layer stays on that front
+ - { key: egypt, name: "Egypt", agreement: "Egypt-Israel General Armistice Agreement", signed: 1949-02-24, shown_from: 1949-02-24, low_accuracy: false, note: "Gap: from Gaza (about MR 102.4-100.1) to the Egyptian frontier the line is not drawn. Art. VI.1 says only 'continuing thus to the Egyptian frontier' and no map of the Memorandum or of the agreement was found. Art. VI.3 bounds it: Israel evacuates its outpost at the Cemetery (MR 0816-0723), so that point is inside the line, and new Israeli outposts may be set up at MR 0836-0700, east of it, so the line reaches the frontier south-east of Rafah, between about N 70 and N 72 km. Carrying the highway's bearing on from Gaza reaches the frontier at about MR 077.7-075.6, north of the Cemetery, and is therefore wrong; a 3-km offset of the coast road through Khan Yunis (MR 083.7-084.2) and Rafah (078.1-077.6), carried on its bearing, reaches the frontier near N 73, also north-west of the Cemetery. The Egyptian-held area is not drawn either, since it needs the whole line. From 22 Feb 1950 the line as drawn on the signed modus vivendi map (S/1471) is a separate feature (egypt_mv1950_demarcation), with its zone A and C lines (egypt_mv1950_zone_lines). Art. VI.4: in the Bethlehem-Hebron area no line was demarcated (left to a later agreement); nothing is drawn there." }
+ - { key: lebanon, name: "Lebanon", agreement: "Lebanon-Israel General Armistice Agreement", signed: 1949-03-23, shown_from: 1949-03-23, low_accuracy: false, note: "" }
+ - { key: jordan, name: "Jordan", agreement: "Hashemite Jordan Kingdom-Israel General Armistice Agreement", signed: 1949-04-03, shown_from: 1949-04-03, low_accuracy: true, note: "Not drawn (legibility, low-resolution scan): the Jerusalem sector (Art. V.1(b): the lines of the 30 November 1948 cease-fire, map 2, not on UNISPAL; on map 1 the city's lines merge into one blot at 51 m a pixel), so the line stops at the city's western edge on both sides; the Israeli and Jordanian lines and the no-man's-land between them, in Jerusalem and at Latrun (map 1 shows a double line at Latrun, but the two cannot be told apart at this resolution; the trace follows the outer drawn loop); the Mount Scopus enclave. To do from map 2 and a full-resolution map 1." }
+ - { key: syria, name: "Syria", agreement: "Syria-Israel General Armistice Agreement", signed: 1949-07-20, shown_from: 1949-07-20, low_accuracy: false, note: "" }
+zones: # drawn over the sub-districts from shown_from (style secondary)
+ - { id: 1, key: syria_dmz_north, front: syria, name: "Demilitarized Zone (Syria-Israel), northern part: Banias and Tell el Qadi", shown_from: 1949-07-20, style: secondary, agreement: "Syria-Israel General Armistice Agreement", signed: 1949-07-20, label_note: "", low_accuracy: false }
+ - { id: 2, key: syria_dmz_central, front: syria, name: "Demilitarized Zone (Syria-Israel), central part: Dardara, the Jordan and Mishmar HaYarden", shown_from: 1949-07-20, style: secondary, agreement: "Syria-Israel General Armistice Agreement", signed: 1949-07-20, label_note: "", low_accuracy: false }
+ - { id: 3, key: syria_dmz_south, front: syria, name: "Demilitarized Zone (Syria-Israel), southern part: Ein Gev and El Hamma", shown_from: 1949-07-20, style: secondary, agreement: "Syria-Israel General Armistice Agreement", signed: 1949-07-20, label_note: "", low_accuracy: false }
+ - { id: 4, key: egypt_el_auja_dmz, front: egypt, name: "El Auja Demilitarized Zone (Egypt-Israel)", shown_from: 1949-02-24, style: secondary, agreement: "Egypt-Israel General Armistice Agreement", signed: 1949-02-24, label_note: "", low_accuracy: false }
+lines: # named in the info panel on the hexes they pass through, from shown_from
+ - { id: 1, key: lebanon_adl, front: lebanon, name: "Armistice Demarcation Line (Lebanon-Israel): the international boundary", shown_from: 1949-03-23, agreement: "Lebanon-Israel General Armistice Agreement", signed: 1949-03-23, label_note: "", low_accuracy: false }
+ - { id: 2, key: syria_adl, front: syria, name: "Armistice Demarcation Line (Syria-Israel)", shown_from: 1949-07-20, agreement: "Syria-Israel General Armistice Agreement", signed: 1949-07-20, label_note: "", low_accuracy: false }
+ - { id: 3, key: egypt_adl_gaza, front: egypt, name: "Armistice Demarcation Line (Egypt-Israel) of 1949, Gaza-Rafah area: Wadi Hasi to Gaza", shown_from: 1949-02-24, agreement: "Egypt-Israel General Armistice Agreement", signed: 1949-02-24, label_note: "", low_accuracy: false }
+ - { id: 4, key: egypt_mv1950_demarcation, front: egypt, name: "Demarcation line as drawn on the signed 1950 modus vivendi map (Gaza-Rafah area)", shown_from: 1950-02-22, agreement: "Modus vivendi to the Egypt-Israel General Armistice Agreement", signed: 1950-02-22, label_note: "1950 modus vivendi", low_accuracy: false }
+ - { id: 5, key: egypt_mv1950_zone_lines, front: egypt, name: "Zone A and zone C lines of the 1950 modus vivendi (Gaza-Rafah area)", shown_from: 1950-02-22, agreement: "Modus vivendi to the Egypt-Israel General Armistice Agreement", signed: 1950-02-22, label_note: "1950 modus vivendi", low_accuracy: false }
+ - { id: 6, key: jordan_adl_iraqi_c_east, front: jordan, name: "Armistice Demarcation Line (Jordan-Israel), line A, Zubeiba to the Jordan (Art. VI.3(c), by 17 July 1949)", shown_from: 1949-07-17, agreement: "Hashemite Jordan Kingdom-Israel General Armistice Agreement", signed: 1949-04-03, label_note: "", low_accuracy: true }
+ - { id: 7, key: jordan_adl_iraqi_b_wadi_ara, front: jordan, name: "Armistice Demarcation Line (Jordan-Israel), line A, Wadi Ara, Zubeiba to Baqa (Art. VI.3(b), by 22 May 1949)", shown_from: 1949-05-22, agreement: "Hashemite Jordan Kingdom-Israel General Armistice Agreement", signed: 1949-04-03, label_note: "", low_accuracy: true }
+ - { id: 8, key: jordan_adl_iraqi_a_triangle, front: jordan, name: "Armistice Demarcation Line (Jordan-Israel), line A, Baqa to Kafr Qasim (Art. VI.3(a), by 8 May 1949)", shown_from: 1949-05-08, agreement: "Hashemite Jordan Kingdom-Israel General Armistice Agreement", signed: 1949-04-03, label_note: "", low_accuracy: true }
+ - { id: 9, key: jordan_adl_iraqi_c_south, front: jordan, name: "Armistice Demarcation Line (Jordan-Israel), line A, Kafr Qasim to Kh Deir Arab (Art. VI.3(c), by 17 July 1949)", shown_from: 1949-07-17, agreement: "Hashemite Jordan Kingdom-Israel General Armistice Agreement", signed: 1949-04-03, label_note: "", low_accuracy: true }
+ - { id: 10, key: jordan_adl_a_latrun, front: jordan, name: "Armistice Demarcation Line (Jordan-Israel), Kh Deir Arab to Jerusalem (Latrun)", shown_from: 1949-04-03, agreement: "Hashemite Jordan Kingdom-Israel General Armistice Agreement", signed: 1949-04-03, label_note: "", low_accuracy: true }
+ - { id: 11, key: jordan_adl_bc_south, front: jordan, name: "Armistice Demarcation Line (Jordan-Israel), Jerusalem to the Dead Sea (line B, Hebron-Dead Sea)", shown_from: 1949-04-03, agreement: "Hashemite Jordan Kingdom-Israel General Armistice Agreement", signed: 1949-04-03, label_note: "", low_accuracy: true }
+ - { id: 12, key: jordan_adl_d_arava, front: jordan, name: "Armistice Demarcation Line (Jordan-Israel), the Dead Sea to the Gulf of Aqaba", shown_from: 1949-04-03, agreement: "Hashemite Jordan Kingdom-Israel General Armistice Agreement", signed: 1949-04-03, label_note: "", low_accuracy: true }
+no_hex: ["syria_dmz_north", "syria_dmz_south"] # zones narrower than any hex centre: kept in the true lines only
+zone_hexes: # [q, r, zone id], ordered by r then q
+ - [13, 5, 2]
+ - [-16, 36, 4]
+ - [-15, 36, 4]
+ - [-16, 37, 4]
+ - [-15, 37, 4]
+ - [-16, 38, 4]
+line_hexes: # [q, r, line id], in order along each line
+ - [8, 4, 1]
+ - [9, 4, 1]
+ - [10, 4, 1]
+ - [11, 4, 1]
+ - [12, 4, 1]
+ - [13, 3, 1]
+ - [14, 2, 1]
+ - [14, 1, 1]
+ - [15, 1, 1]
+ - [15, 2, 2]
+ - [15, 3, 2]
+ - [14, 3, 2]
+ - [14, 4, 2]
+ - [13, 5, 2]
+ - [13, 6, 2]
+ - [12, 7, 2]
+ - [12, 8, 2]
+ - [11, 9, 2]
+ - [10, 10, 2]
+ - [11, 10, 2]
+ - [-10, 26, 3]
+ - [-9, 26, 3]
+ - [-9, 27, 3]
+ - [-10, 27, 3]
+ - [-10, 27, 4]
+ - [-13, 29, 4]
+ - [-14, 31, 4]
+ - [-10, 26, 5]
+ - [-9, 26, 5]
+ - [-9, 27, 5]
+ - [-10, 27, 5]
+ - [-13, 29, 5]
+ - [-13, 30, 5]
+ - [-14, 31, 5]
+ - [8, 14, 6]
+ - [7, 14, 6]
+ - [7, 13, 6]
+ - [7, 12, 6]
+ - [6, 12, 6]
+ - [5, 12, 6]
+ - [5, 12, 7]
+ - [4, 13, 7]
+ - [3, 13, 7]
+ - [2, 14, 7]
+ - [2, 14, 8]
+ - [2, 15, 8]
+ - [1, 15, 8]
+ - [1, 16, 8]
+ - [0, 17, 8]
+ - [0, 18, 8]
+ - [0, 18, 9]
+ - [-1, 19, 9]
+ - [-1, 20, 9]
+ - [-1, 20, 10]
+ - [-2, 21, 10]
+ - [-1, 21, 10]
+ - [-2, 22, 10]
+ - [-3, 22, 10]
+ - [-3, 23, 10]
+ - [-1, 22, 10]
+ - [-1, 23, 10]
+ - [0, 22, 10]
+ - [-1, 24, 11]
+ - [-2, 24, 11]
+ - [-3, 25, 11]
+ - [-4, 25, 11]
+ - [-5, 26, 11]
+ - [-5, 27, 11]
+ - [-6, 28, 11]
+ - [-7, 29, 11]
+ - [-7, 30, 11]
+ - [-6, 29, 11]
+ - [-6, 30, 11]
+ - [-5, 29, 11]
+ - [-5, 30, 11]
+ - [-4, 29, 11]
+ - [-3, 29, 11]
+ - [-2, 28, 11]
+ - [-1, 28, 11]
+ - [0, 27, 11]
+ - [0, 28, 11]
+ - [0, 28, 12]
+ - [-1, 29, 12]
+ - [-1, 30, 12]
+ - [-2, 30, 12]
+ - [-2, 31, 12]
+ - [-3, 32, 12]
+ - [-2, 32, 12]
+ - [-3, 33, 12]
+ - [-3, 34, 12]
+ - [-4, 34, 12]
+ - [-4, 35, 12]
+ - [-5, 36, 12]
+ - [-6, 37, 12]
+ - [-7, 38, 12]
+ - [-8, 39, 12]
+ - [-8, 40, 12]
+ - [-9, 40, 12]
+ - [-9, 41, 12]
+ - [-10, 41, 12]
+ - [-10, 42, 12]
+ - [-11, 43, 12]
+ - [-11, 44, 12]
+ - [-12, 45, 12]
+ - [-12, 46, 12]
+ - [-13, 46, 12]
+ - [-13, 47, 12]
+ - [-13, 48, 12]
+ - [-14, 48, 12]
+ - [-14, 49, 12]
+ - [-15, 49, 12]
+ - [-15, 50, 12]
+ - [-16, 51, 12]
+ - [-17, 52, 12]
+ - [-17, 53, 12]
+ - [-18, 53, 12]
+ - [-18, 54, 12]
+ - [-19, 55, 12]
+ - [-19, 56, 12]
diff --git a/content/map/armistice_lines_1949.geojson b/content/map/armistice_lines_1949.geojson
new file mode 100644
index 000000000..763c15efa
--- /dev/null
+++ b/content/map/armistice_lines_1949.geojson
@@ -0,0 +1,2714 @@
+{
+ "type": "FeatureCollection",
+ "statecraft": {
+ "title": "The 1949 armistice lines that the primary sources allow (true lines, not hex-snapped)",
+ "status": "draft",
+ "checked": "2026-10-11",
+ "generated_by": "tools/armistice_digitise.py",
+ "licence": "CC-BY-SA-4.0 (content/); coast from the Copernicus DEM (NOTICE)",
+ "licence_note": "The agreements and their annexed maps are UN documents with symbols, not copyrighted (UN Administrative Instruction ST/AI/189/Add.9/Rev.2, para. 2; Commons {{PD-UN-doc}}, {{PD-UN-map}}). The Gaza sheet and the Mandate frontier are Government of Palestine works (decision D-B). Only the lines' positions, facts of the agreements, are taken, redrawn by our own method; no image is copied.",
+ "sources": [
+ {
+ "cite": "United Nations Treaty Series vol. 42 (1949): No. 654 Egypt-Israel (p. 251), No. 655 Lebanon-Israel (p. 287), No. 656 Jordan-Israel (p. 303), No. 657 Syria-Israel (p. 327), English and French texts.",
+ "url": "https://treaties.un.org/doc/publication/UNTS/Volume%2042/v42.pdf",
+ "sha256": "1aacfde1ac4f9c2407fc3a3ed6d07db9a84deb52f95f91aade0bc5f1a6e2e4c1",
+ "checked": "2026-10-11",
+ "licence": "Public domain (UN treaty publication; UN document, ST/AI/189/Add.9/Rev.2 para. 2)"
+ },
+ {
+ "cite": "S/1353/Rev.1, 'Map referred to in Annexes I, II and III' of the Syria-Israel General Armistice Agreement, 1:50,000 sheet 'Houle' (Service Geographique des FFL base), colour scan in the UN Official Document System (PDF page 14); the Armistice Demarcation Line is printed in green.",
+ "url": "https://documents.un.org/api/symbol/access?s=S/1353/Rev.1&l=en&t=pdf",
+ "sha256": "0e5a406f8f749af9c73a3d6b70e92a23e6eb7b69468ca81c80ba8d6e0f2baed8",
+ "checked": "2026-10-11",
+ "licence": "Public domain (UN document with a symbol, ST/AI/189/Add.9/Rev.2 para. 2; Commons {{PD-UN-doc}}/{{PD-UN-map}})"
+ },
+ {
+ "cite": "The same map (S/1353/Rev.1), 1-bit 200 dpi scan on UNISPAL: the Demilitarized Zone's hatching and the 1-km Palestine grid.",
+ "url": "https://www.un.org/unispal/wp-content/uploads/1949/07/794884bef66f46f38525705200598b87_s1353rev1.tif",
+ "sha256": "181ee3335f22d79e3daf684c06c7fc8cc14d92d203a9c1ce2582bbd817aa7694",
+ "checked": "2026-10-11",
+ "licence": "Public domain (UN document with a symbol, ST/AI/189/Add.9/Rev.2 para. 2; Commons {{PD-UN-doc}}/{{PD-UN-map}})"
+ },
+ {
+ "cite": "S/1264/Corr.1 (the Egypt-Israel agreement as corrected), Art. VI and VIII",
+ "checked": "2026-10-11",
+ "url": "https://documents.un.org/api/symbol/access?s=S/1264/Corr.1&l=en&t=pdf",
+ "sha256": "67da96ca34141edd9cb9b33b13b7778dd73586efb5d3ee25b36baedecbb1c28d",
+ "licence": "Public domain (UN document with a symbol, ST/AI/189/Add.9/Rev.2 para. 2; Commons {{PD-UN-doc}}/{{PD-UN-map}})"
+ },
+ {
+ "cite": "Memorandum of 13 November 1948 on the implementation of the Security Council resolution of 4 November 1948 (Acting Mediator). Not read: its para. 2.B(i) is quoted verbatim in Art. VI.1; S/1086 (20 Nov 1948) refers to it; the UN Archives hold it as 'Memorandum of 13 November and Note of Transmittal (Part III) (re Negev)' (fonds AG-022, United Nations Mediator for Palestine), not digitised as text; the catalogue page needs a JavaScript check. No map of it was found.",
+ "url": "https://search.archives.un.org/memorandum-of-13-november-and-note-of-transmittal-part-iii-re-negev",
+ "checked": "2026-10-11",
+ "licence": "n/a (not used)"
+ },
+ {
+ "cite": "Survey of Palestine, 1:100,000 series sheet 9 'Gaza' (compiled, drawn and printed under F.J. Salmon), National Library of Israel copy on Wikimedia Commons: the Gaza-Al Majdal highway (first-class road), the Wadi Hasi mouth and Deir Suneid. Only these features' positions are taken.",
+ "url": "https://commons.wikimedia.org/wiki/File:Survey_of_Palestine,_Palestine_09-gaza_(FL33122277_2367645).jpg",
+ "sha256": "3c955f06ed31daa4a5dba6736ef420716039c6d7582b24f73f8f483e2716c9e6",
+ "checked": "2026-10-11",
+ "licence": "Public domain (Government of Palestine work; Commons 'Public domain'); same status as decision D-B"
+ },
+ {
+ "cite": "The Mandate frontier of content/map/subdistricts_1948.geojson (Survey of Palestine 1:750,000, 'Administrative Divisions', 1946/47; tools/borders_digitise.py): about +-1 km.",
+ "url": "https://commons.wikimedia.org/wiki/File:06_Palestine-_Administrative_divisions.jpg",
+ "checked": "2026-10-11",
+ "licence": "Public domain (Government of Palestine; decision D-B)"
+ },
+ {
+ "cite": "US Department of State, International Boundary Study No. 46, 'Israel - Egypt (United Arab Republic) Armistice Line' (1965): the Gaza Strip sector of the line 'dates from February 22, 1950'; elsewhere the line follows the 1906 Egypt-Palestine boundary from 24 February 1949. Secondary; cross-check only.",
+ "url": "https://library.law.fsu.edu/Digital-Collections/LimitsinSeas/pdf/ibs046.pdf",
+ "checked": "2026-10-11",
+ "licence": "Public domain (US Government work); cross-check only"
+ },
+ {
+ "cite": "S/1471 (17 March 1950), 'Modus vivendi to the Egyptian-Israeli General Armistice Agreement signed at El Auja on 22 February 1950', Art. I.1 (zones A, B, C by MR points), Art. III (it does not modify either party's position on the Art. VI.1 demarcation line); the zones are those 'on the map attached' (Art. I.1).",
+ "url": "https://documents.un.org/api/symbol/access?s=S/1471&l=en&t=pdf",
+ "checked": "2026-10-11",
+ "sha256": "3d1807500b9b573d754da382d2be8e44c0e2469a5703894f16369234be2f9ff7",
+ "licence": "Public domain (UN document with a symbol, ST/AI/189/Add.9/Rev.2 para. 2)"
+ },
+ {
+ "cite": "S/1471, signed map of the modus vivendi, sheet 1 'Ascalon' (1:20,000, Survey of Palestine 1:20,000 base, Jaffa 1931, revised June 1946, with a Survey of Israel reprint imprint), 1-bit scan on UNISPAL: the demarcation line as the parties drew it in 1950 (dash-dot) and the zone A line.",
+ "url": "https://www.un.org/unispal/wp-content/uploads/1950/03/02c98322cf78b99a8525705b004d7b73_s1471.tif",
+ "sha256": "55083142da168abffccb2db7f0da5516b6a26c8d3b8a7f2f4c11a982ed822434",
+ "checked": "2026-10-11",
+ "licence": "Public domain (UN document with a symbol, ST/AI/189/Add.9/Rev.2 para. 2)"
+ },
+ {
+ "cite": "The same map, sheet 2 'Khan Yunis' (1:20,000), the copy in the UN Treaty Collection (registered 14 August 1950): the demarcation line south of Khan Yunis and the zone C line.",
+ "url": "https://treaties.un.org/doc/Treaties/1950/08/19500814%2004-17%20PM/khan_yunis.pdf",
+ "sha256": "530866817158a041bb60d94e437af30de7a19068540ef6910575c07aa8b3b333",
+ "checked": "2026-10-11",
+ "licence": "Public domain (UN document with a symbol, ST/AI/189/Add.9/Rev.2 para. 2)"
+ },
+ {
+ "cite": "Annex I, map 1 of the Jordan-Israel General Armistice Agreement (S/1302/Rev.1): the Survey of Palestine 1:250,000 'Palestine' north and south sheets with the lines drawn by hand and signed, as the UNISPAL page's original upload (3119 x 8630 px, about 51 m a pixel). Low resolution: to be replaced from a full-resolution scan (UN Archives, Israel State Archives, ECF).",
+ "url": "https://www.un.org/unispal/wp-content/uploads/1949/04/f03d55e48f77ab698525643b00608d34_Arm_1949.jpg",
+ "page": "https://www.un.org/unispal/document/auto-insert-181069/",
+ "sha256": "87c374a3199d2e606278549b017c954f56271817f3be37b2f435192f5c9cb23e",
+ "checked": "2026-10-11",
+ "licence": "Public domain (UN document with a symbol, ST/AI/189/Add.9/Rev.2 para. 2); base map a Government of Palestine work (D-B)"
+ },
+ {
+ "cite": "Control-point coordinates: Wikidata (P625) and the Wikipedia API (prop=coordinates), and content/map/settlements_1948.yaml, read 2026-10-11; used only to georeference the scan.",
+ "url": "https://www.wikidata.org/",
+ "checked": "2026-10-11",
+ "licence": "CC0 (Wikidata) / CC BY-SA 4.0 (Wikipedia)"
+ }
+ ],
+ "conversion": "Palestine Grid (EPSG:28191) to WGS84 by the EPSG Helmert transformation (2 m), pipeline in tools/armistice_digitise.py",
+ "fronts": [
+ {
+ "key": "egypt",
+ "agreement": "Egypt-Israel General Armistice Agreement",
+ "signed": "1949-02-24",
+ "document": "S/1264/Corr.1; UNTS vol. 42, No. 654",
+ "shown_from": "1949-02-24",
+ "data": true,
+ "gap": "Gap: from Gaza (about MR 102.4-100.1) to the Egyptian frontier the line is not drawn. Art. VI.1 says only 'continuing thus to the Egyptian frontier' and no map of the Memorandum or of the agreement was found. Art. VI.3 bounds it: Israel evacuates its outpost at the Cemetery (MR 0816-0723), so that point is inside the line, and new Israeli outposts may be set up at MR 0836-0700, east of it, so the line reaches the frontier south-east of Rafah, between about N 70 and N 72 km. Carrying the highway's bearing on from Gaza reaches the frontier at about MR 077.7-075.6, north of the Cemetery, and is therefore wrong; a 3-km offset of the coast road through Khan Yunis (MR 083.7-084.2) and Rafah (078.1-077.6), carried on its bearing, reaches the frontier near N 73, also north-west of the Cemetery. The Egyptian-held area is not drawn either, since it needs the whole line. From 22 Feb 1950 the line as drawn on the signed modus vivendi map (S/1471) is a separate feature (egypt_mv1950_demarcation), with its zone A and C lines (egypt_mv1950_zone_lines). Art. VI.4: in the Bethlehem-Hebron area no line was demarcated (left to a later agreement); nothing is drawn there."
+ },
+ {
+ "key": "lebanon",
+ "agreement": "Lebanon-Israel General Armistice Agreement",
+ "signed": "1949-03-23",
+ "document": "S/1296; UNTS vol. 42, No. 655",
+ "shown_from": "1949-03-23",
+ "data": true
+ },
+ {
+ "key": "jordan",
+ "agreement": "Hashemite Jordan Kingdom-Israel General Armistice Agreement",
+ "signed": "1949-04-03",
+ "document": "S/1302/Rev.1; UNTS vol. 42, No. 656",
+ "shown_from": "1949-04-03",
+ "data": true,
+ "source_quality": "low_res_scan",
+ "low_accuracy": "Traced from a low-resolution copy of the signed map 1 (about +-1-2.5 km); to be replaced from a full-resolution scan.",
+ "gap": "Not drawn (legibility, low-resolution scan): the Jerusalem sector (Art. V.1(b): the lines of the 30 November 1948 cease-fire, map 2, not on UNISPAL; on map 1 the city's lines merge into one blot at 51 m a pixel), so the line stops at the city's western edge on both sides; the Israeli and Jordanian lines and the no-man's-land between them, in Jerusalem and at Latrun (map 1 shows a double line at Latrun, but the two cannot be told apart at this resolution; the trace follows the outer drawn loop); the Mount Scopus enclave. To do from map 2 and a full-resolution map 1.",
+ "searched": [
+ "UNISPAL, 'Israel-Jordan General Armistice Agreement - Map' (https://www.un.org/unispal/document/auto-insert-181069/): map 1 (Survey of Palestine 1:250,000 north and south sheets, signed); the page shows a 925 x 2560 px copy, and its original upload (f03d55e48f77ab698525643b00608d34_Arm_1949.jpg) is 3119 x 8630 px, about 51 m a pixel: the source used (owner ruling 2026-10-11), low-resolution. No map 2.",
+ "UN Official Document System, S/1302/Rev.1 (https://documents.un.org/api/symbol/access?s=S/1302/Rev.1&l=en&t=pdf) and S/1302: the text only (12 and 9 pages); no map plates.",
+ "UNTS vol. 42 (https://treaties.un.org/doc/publication/UNTS/Volume%2042/v42.pdf): the maps were an insert 'between pages 326 and 327'; the online PDF has a blank page there.",
+ "UN Archives (search.archives.un.org): the catalogue needs a JavaScript check (not passed with a plain HTTP client); no digitised map found through search engines.",
+ "Wikimedia Commons (API searches: '1949 armistice map Jordan Israel', 'Jordan Israel armistice agreement map 1949', 'Jerusalem armistice map 1949', 'Jerusalem cease-fire 30 November 1948 map', 'S/1302', 'Green Line 1949 original map'): 'File:Green Line - Cease Fire Agreement 30 Nov 1948.jpg' is a 3119 x 8630 px colour copy of the signed map 1, the same size as UNISPAL's original but not the same file (SHA-1 3d5990f9... against 370af7aa...), uploaded as 'own work' under CC0 with no source: not used, not even as a cross-check (owner ruling); 'File:UN Map of Central Jerusalem November 1949.jpg' is a later UN cartographic map (November 1949), not map 2; the others are later drawings (H212/10/1955, user-made comparisons).",
+ "National Library of Israel and ECF ('Original Green Line Map', https://ecf.org.il/media_items/338): not reached with a plain HTTP client in this pass (JavaScript catalogues); to request."
+ ],
+ "dating": "from 1949-04-03 for sectors (a), (b) (not drawn), (c), (d); line A in the Iraqi sector in stages (Art. VI.3): 1949-05-08, 1949-05-22 and 1949-07-17; until each stage the earlier military line held (not drawn)."
+ },
+ {
+ "key": "syria",
+ "agreement": "Syria-Israel General Armistice Agreement",
+ "signed": "1949-07-20",
+ "document": "S/1353; UNTS vol. 42, No. 657",
+ "shown_from": "1949-07-20",
+ "data": true
+ }
+ ],
+ "partition": {
+ "closed": false,
+ "why": "The lines do not yet enclose the areas each side held: the Egypt line stops at Gaza and the Jordan line leaves out Jerusalem. Until they do, the Mandate sub-district layer stays as the base under them (tools/borders_bake.py), each front's end recorded per front."
+ },
+ "naming": "The agreements' own terms ('Armistice Demarcation Line', 'Demilitarized Zone'); owner review.",
+ "sensitivity": "Every feature awaits the owner's sensitivity review (docs/m3-release.md); status stays draft until fact-checked.",
+ "diagnostics": {
+ "syria": {
+ "dmz_total_km2": 65.2,
+ "line_to_zone_edge_median_m": {
+ "1-1b": 1851,
+ "1b-5a": 26,
+ "5a-5b": 547,
+ "5b-5c": 4088,
+ "5c-6": 98,
+ "6-7": 21,
+ "7-8": 184,
+ "8-9": 46,
+ "9-10": 36,
+ "10-11": 36,
+ "11-12": 45,
+ "12-13": 19,
+ "13-14": 44,
+ "14-15": 12,
+ "15-16": 37,
+ "16-17": 37,
+ "17-BP61": 2644,
+ "BP61-BP66": 71,
+ "BP66-21": 487,
+ "21-22": 23,
+ "22-23": 70,
+ "23-BH": 92,
+ "BH-24": 68
+ },
+ "dmz_areas_km2": {
+ "syria_dmz_north": 4.08,
+ "syria_dmz_central": 27.33,
+ "syria_dmz_south": 33.79
+ },
+ "dropped_hatch_km2": [
+ 0.73
+ ],
+ "colour_registration": {
+ "north": {
+ "E": [
+ 195.018773654075,
+ 0.008566674920856302,
+ 0.00017451165256302765
+ ],
+ "N": [
+ 301.36881545072333,
+ 8.22122541206506e-05,
+ -0.008477076912800134
+ ],
+ "grid_rms_m": [
+ 28.9,
+ 25.3
+ ]
+ },
+ "south": {
+ "E": [
+ 195.3587851834489,
+ 0.008378632780991782,
+ 0.00015278795391238345
+ ],
+ "N": [
+ 301.02825908900036,
+ 0.00011711926992043079,
+ -0.00844852902843401
+ ],
+ "grid_rms_m": [
+ 28.5,
+ 28.2
+ ]
+ }
+ },
+ "grid_georeference_1bit": {
+ "north": {
+ "rms_m": [
+ 13.6,
+ 11.9
+ ],
+ "obs": [
+ 462,
+ 584
+ ]
+ },
+ "south": {
+ "rms_m": [
+ 11.1,
+ 13.6
+ ],
+ "obs": [
+ 952,
+ 901
+ ]
+ }
+ }
+ },
+ "egypt": {
+ "gaza_sheet_rms_m": [
+ 6.1,
+ 7.9
+ ],
+ "highway_on_red_road": 0.962,
+ "highway_km": 12.3,
+ "wadi_hasi_mouth_mr": [
+ 102.55,
+ 112.83
+ ],
+ "deir_suneid_mr": [
+ 107.86,
+ 109.36
+ ]
+ }
+ }
+ },
+ "features":[
+{"type":"Feature",
+ "properties":{"id":"lebanon_adl","front":"lebanon","kind":"line","name":"Armistice Demarcation Line (Lebanon-Israel): the international boundary","agreement":"Lebanon-Israel General Armistice Agreement","signed":"1949-03-23","place":"Ras en Naqura","document":"S/1296; UNTS vol. 42, No. 655","shown_from":"1949-03-23","accuracy":"about +-1 km: the Mandate frontier digitised from the Survey of Palestine 1:750,000 map for the 1948 sub-districts (its uncertain segments, Ras en Naqura and the Metulla tip, to about +-1.5 km); its east end lies 0.55 km from the tripoint of the Syria agreement's Annex I (MR 208.7-294.2).","method":"Art. V.1: 'The Armistice Demarcation Line shall follow the international boundary between the Lebanon and Palestine.' The boundary is the 1923 line (boundary pillars), taken as the Mandate frontier already digitised (content/map/subdistricts_1948.geojson), from the coast at Ras en Naqura to the Lebanon-Syria-Palestine tripoint.","sources":["https://treaties.un.org/doc/publication/UNTS/Volume%2042/v42.pdf","https://commons.wikimedia.org/wiki/File:06_Palestine-_Administrative_divisions.jpg"],"checked":"2026-10-11","status":"draft","diagnostics":{"tripoint_offset_km":0.55,"start_to_ras_en_naqura_km":0.44}},
+ "geometry":{"type":"LineString","coordinates":[[35.10341,33.09476],
+ [35.1212,33.09476],
+ [35.1212,33.09419],
+ [35.12804,33.09419],
+ [35.12941,33.09304],
+ [35.13625,33.09304],
+ [35.13626,33.09361],
+ [35.14583,33.09304],
+ [35.15199,33.09075],
+ [35.15267,33.0896],
+ [35.15746,33.0896],
+ [35.16225,33.09132],
+ [35.16636,33.09132],
+ [35.17047,33.09247],
+ [35.17731,33.09247],
+ [35.18073,33.09189],
+ [35.18483,33.09018],
+ [35.18757,33.09017],
+ [35.18962,33.08903],
+ [35.19304,33.08903],
+ [35.19441,33.08788],
+ [35.19715,33.08788],
+ [35.20469,33.09418],
+ [35.20676,33.09762],
+ [35.20881,33.09819],
+ [35.21156,33.10048],
+ [35.21977,33.10048],
+ [35.22797,33.09762],
+ [35.22865,33.09647],
+ [35.23207,33.0959],
+ [35.23276,33.09475],
+ [35.24028,33.09418],
+ [35.24302,33.09533],
+ [35.24713,33.09533],
+ [35.25329,33.09704],
+ [35.26219,33.09762],
+ [35.26357,33.09933],
+ [35.26973,33.10048],
+ [35.27384,33.1022],
+ [35.27863,33.1022],
+ [35.28343,33.10449],
+ [35.29096,33.10449],
+ [35.29096,33.10392],
+ [35.29917,33.10334],
+ [35.29917,33.10277],
+ [35.31217,33.10277],
+ [35.31695,33.10048],
+ [35.31831,33.09761],
+ [35.32036,33.09647],
+ [35.32035,33.09418],
+ [35.3224,33.09131],
+ [35.32306,33.08616],
+ [35.32511,33.08444],
+ [35.32579,33.08215],
+ [35.32852,33.07929],
+ [35.33191,33.07069],
+ [35.33328,33.07069],
+ [35.33669,33.06668],
+ [35.34079,33.06382],
+ [35.34761,33.05752],
+ [35.35307,33.05408],
+ [35.35307,33.05351],
+ [35.35923,33.05408],
+ [35.36061,33.05523],
+ [35.36334,33.05523],
+ [35.36882,33.05695],
+ [35.37293,33.05695],
+ [35.37841,33.05809],
+ [35.38389,33.06153],
+ [35.38663,33.0621],
+ [35.39758,33.0621],
+ [35.40169,33.06324],
+ [35.40649,33.06382],
+ [35.41744,33.06382],
+ [35.41743,33.06324],
+ [35.42565,33.06267],
+ [35.43113,33.06611],
+ [35.43388,33.06897],
+ [35.43525,33.06897],
+ [35.43799,33.07126],
+ [35.4428,33.07756],
+ [35.44487,33.08157],
+ [35.45173,33.0873],
+ [35.45447,33.0873],
+ [35.45652,33.08844],
+ [35.46063,33.08902],
+ [35.47432,33.08901],
+ [35.47842,33.08787],
+ [35.49211,33.08787],
+ [35.49348,33.08901],
+ [35.50102,33.09073],
+ [35.50376,33.09417],
+ [35.50446,33.0976],
+ [35.50652,33.10104],
+ [35.50653,33.10333],
+ [35.51067,33.11249],
+ [35.51272,33.11364],
+ [35.51343,33.11937],
+ [35.51618,33.1228],
+ [35.52029,33.12567],
+ [35.52647,33.13254],
+ [35.52649,33.13712],
+ [35.5258,33.13712],
+ [35.52584,33.14915],
+ [35.52722,33.15259],
+ [35.52724,33.15831],
+ [35.52792,33.15831],
+ [35.52794,33.1629],
+ [35.52863,33.16633],
+ [35.53277,33.1755],
+ [35.53414,33.17607],
+ [35.53483,33.17893],
+ [35.53485,33.18409],
+ [35.53623,33.18752],
+ [35.53693,33.19153],
+ [35.53695,33.19955],
+ [35.53492,33.20413],
+ [35.53287,33.20585],
+ [35.53084,33.21215],
+ [35.53087,33.22189],
+ [35.53293,33.2259],
+ [35.53501,33.2322],
+ [35.53844,33.23449],
+ [35.53844,33.23563],
+ [35.54187,33.2385],
+ [35.54394,33.2448],
+ [35.54396,33.25052],
+ [35.54466,33.25339],
+ [35.5474,33.25682],
+ [35.54946,33.25797],
+ [35.55702,33.26828],
+ [35.56045,33.27057],
+ [35.56183,33.27286],
+ [35.56663,33.2763],
+ [35.56664,33.28088],
+ [35.56802,33.28317],
+ [35.57213,33.28546],
+ [35.57761,33.28546],
+ [35.58102,33.28374],
+ [35.58307,33.28031],
+ [35.58306,33.27687],
+ [35.57893,33.27229],
+ [35.57756,33.27171],
+ [35.58166,33.26885],
+ [35.58302,33.26713],
+ [35.58712,33.26427],
+ [35.59053,33.25969],
+ [35.59531,33.25568],
+ [35.5953,33.25453],
+ [35.60146,33.25281],
+ [35.60214,33.25167],
+ [35.60556,33.25109],
+ [35.60692,33.24995],
+ [35.61103,33.24938],
+ [35.61239,33.24823],
+ [35.61649,33.24708],
+ [35.62197,33.24708],
+ [35.62197,33.24766],
+ [35.62813,33.24766],
+ [35.62813,33.24708]]}},
+{"type":"Feature",
+ "properties":{"id":"syria_adl","front":"syria","kind":"line","name":"Armistice Demarcation Line (Syria-Israel)","agreement":"Syria-Israel General Armistice Agreement","signed":"1949-07-20","place":"Hill 232 near Mahanayim","document":"S/1353; UNTS vol. 42, No. 657","shown_from":"1949-07-20","accuracy":"the Annex I points exact; stretches the text calls 'a line' straight between them; the others traced on the annexed map's green line. Evidence, independent of the trace: the map's own 1-km grid fits each sheet at 29 m rms before the points register the scan; where the line is the Demilitarized Zone's edge it agrees with the hatching of the other scan (separately georeferenced) to a median of 12-98 m per stretch. (The points' distance to the green ink after registration, median 34 m, is small by construction and is not evidence.) About +-0.1 km (the MR precision) at the points and +-0.1-0.2 km along the traced stretches, except the two short Lake Hula shoreline stretches, 9-10 and 10-11, only 9% and 18% on green ink (under 1.5 km each; error bounded by their length, about +-0.3 km). Lake Hula's shoreline is the 1949 one (the lake was drained in the 1950s).","method":"Annex I's 24 items (typed from UNTS vol. 42 pp. 342-344) converted from the Palestine Grid (EPSG:28191); the stretches between points as below; Art. V.3: the line is as delineated on the map of Annex I.","sources":["https://treaties.un.org/doc/publication/UNTS/Volume%2042/v42.pdf","https://documents.un.org/api/symbol/access?s=S/1353/Rev.1&l=en&t=pdf"],"checked":"2026-10-11","status":"draft","annex_points":[{"label":"1","mr":[208.7,294.2]},{"label":"1b","mr":[212.8,294.7]},{"label":"5a","mr":[212.7,290.4]},{"label":"5b","mr":[212.4,290.2]},{"label":"5c","mr":[211.0,276.8]},{"label":"6","mr":[210.9,276.7]},{"label":"7","mr":[210.3,276.5]},{"label":"8","mr":[209.9,272.6]},{"label":"9","mr":[209.7,272.6]},{"label":"10","mr":[209.2,271.7]},{"label":"11","mr":[208.5,272.9]},{"label":"12","mr":[205.2,269.1]},{"label":"13","mr":[208.8,265.0]},{"label":"14","mr":[208.7,260.0]},{"label":"15","mr":[208.5,258.2]},{"label":"16","mr":[207.0,257.0]},{"label":"17","mr":[207.4,256.0]},{"label":"BP61","mr":[210.6,246.3]},{"label":"BP66","mr":[211.7,240.1]},{"label":"21","mr":[209.6,239.0]},{"label":"22","mr":[206.3,234.8]},{"label":"23","mr":[206.3,234.5]},{"label":"BH","mr":[207.7,233.4]},{"label":"24","mr":[209.5,232.2]}],"stretches":[{"from":"1","to":"1b","how":"map","text":"Annex I.1: from the Lebanese-Syrian-Palestinian border point eastward to MR 212.8-294.7 (the map's line is not straight)"},{"from":"1b","to":"5a","how":"map","text":"Annex I.2-4: along the Wady Assal to the Marabout Cheikh el Makhfi, a line to the Marabout Nabi Huda, a line to MR 212.7-290.4 (the marabouts have no MR values)"},{"from":"5a","to":"5b","how":"line","text":"Annex I.5: MR 212.7-290.4 to MR 212.4-290.2"},{"from":"5b","to":"5c","how":"map","text":"Annex I.5: southward along the Syrian-Palestinian border to MR 211.0-276.8"},{"from":"5c","to":"6","how":"line","text":"Annex I.6: to a point on the Wady es Simadi"},{"from":"6","to":"7","how":"map","text":"Annex I.7: westward along the Wady es Simadi to the trail"},{"from":"7","to":"8","how":"map","text":"Annex I.8: southward along the trail, by-passing Dardara to the east"},{"from":"8","to":"9","how":"line","text":"Annex I.9: westward to the shoreline of Lake Hula"},{"from":"9","to":"10","how":"map","text":"Annex I.10: southward along the shoreline to the mouth of the Jordan River"},{"from":"10","to":"11","how":"map","text":"Annex I.11: north-west along the western shoreline of Lake Hula"},{"from":"11","to":"12","how":"line","text":"Annex I.12: a line"},{"from":"12","to":"13","how":"line","text":"Annex I.13: a line to the Jordan River"},{"from":"13","to":"14","how":"map","text":"Annex I.14: southward along the Jordan River"},{"from":"14","to":"15","how":"line","text":"Annex I.15: a line"},{"from":"15","to":"16","how":"line","text":"Annex I.16: a line"},{"from":"16","to":"17","how":"line","text":"Annex I.17: a line"},{"from":"17","to":"BP61","how":"map","text":"Annex I.18: southward along the Syrian-Palestinian border to BP 61"},{"from":"BP61","to":"BP66","how":"map","text":"Annex I.19-20: along the Syrian-Palestinian border, BP 61 to BP 62 to BP 66 (BP 62 has no MR value)"},{"from":"BP66","to":"21","how":"line","text":"Annex I.21: a line to the eastern shoreline of Lake Tiberias"},{"from":"21","to":"22","how":"map","text":"Annex I.22: southward along the shoreline of Lake Tiberias"},{"from":"22","to":"23","how":"map","text":"Annex I.23: southward to the bend in the road"},{"from":"23","to":"BH","how":"map","text":"Annex I.23: south-east along the west bank of the railroad and the west side of the road to the Block House"},{"from":"BH","to":"24","how":"map","text":"Annex I.24: along the road to the Yarmuk River, on the border"}],"diagnostics":{"annex_points_to_green_m":{"1":4,"1b":11,"5a":48,"5b":47,"5c":10,"6":33,"7":19,"8":43,"9":111,"10":100,"11":36,"12":28,"13":104,"14":22,"15":125,"16":71,"17":31,"BP61":37,"BP66":21,"21":48,"22":10,"23":3,"BH":8,"24":83},"traced":{"1-1b":{"on_green":0.738,"vertices":32},"1b-5a":{"on_green":0.434,"vertices":29},"5b-5c":{"on_green":0.727,"vertices":100},"6-7":{"on_green":0.586,"vertices":10},"7-8":{"on_green":0.745,"vertices":28},"9-10":{"on_green":0.09,"vertices":5},"10-11":{"on_green":0.184,"vertices":14},"13-14":{"on_green":0.537,"vertices":39},"17-BP61":{"on_green":0.709,"vertices":72},"BP61-BP66":{"on_green":0.454,"vertices":49},"21-22":{"on_green":0.895,"vertices":31},"22-23":{"on_green":0.761,"vertices":5},"23-BH":{"on_green":0.676,"vertices":17},"BH-24":{"on_green":0.696,"vertices":14}}}},
+ "geometry":{"type":"LineString","coordinates":[[35.62552,33.24261],
+ [35.62685,33.24315],
+ [35.62749,33.24315],
+ [35.62813,33.24354],
+ [35.63125,33.24363],
+ [35.63454,33.24479],
+ [35.64096,33.24543],
+ [35.6416,33.24574],
+ [35.64297,33.24597],
+ [35.64379,33.24651],
+ [35.64443,33.24652],
+ [35.64579,33.24752],
+ [35.64625,33.24759],
+ [35.64697,33.24821],
+ [35.64779,33.24852],
+ [35.64852,33.24906],
+ [35.65107,33.25014],
+ [35.65392,33.25015],
+ [35.65485,33.24962],
+ [35.65596,33.2494],
+ [35.65689,33.24879],
+ [35.65735,33.24879],
+ [35.658,33.24833],
+ [35.65994,33.24796],
+ [35.66031,33.24766],
+ [35.66178,33.24766],
+ [35.66206,33.24744],
+ [35.66382,33.24721],
+ [35.66556,33.24722],
+ [35.66667,33.24707],
+ [35.66695,33.24684],
+ [35.66954,33.24696],
+ [35.66851,33.24678],
+ [35.66845,33.24502],
+ [35.6671,33.24386],
+ [35.66702,33.24333],
+ [35.66647,33.24287],
+ [35.66648,33.24256],
+ [35.66585,33.24179],
+ [35.66586,33.24141],
+ [35.66541,33.24095],
+ [35.66515,33.23996],
+ [35.66325,33.23842],
+ [35.6629,33.23765],
+ [35.66172,33.2365],
+ [35.66165,33.23581],
+ [35.66101,33.23528],
+ [35.66066,33.23443],
+ [35.66061,33.23237],
+ [35.66034,33.23214],
+ [35.66041,33.22816],
+ [35.66026,33.22663],
+ [35.66008,33.22648],
+ [35.65995,33.22381],
+ [35.65977,33.22365],
+ [35.65978,33.21815],
+ [35.66382,33.21373],
+ [35.66383,33.21289],
+ [35.66776,33.2097],
+ [35.66826,33.20819],
+ [35.66503,33.2064],
+ [35.66526,33.20556],
+ [35.66499,33.20525],
+ [35.66471,33.20074],
+ [35.66463,33.20028],
+ [35.66436,33.20005],
+ [35.66431,33.19768],
+ [35.66398,33.196],
+ [35.66371,33.19569],
+ [35.66366,33.1934],
+ [35.66323,33.19179],
+ [35.66325,33.19064],
+ [35.66298,33.19041],
+ [35.66313,33.18759],
+ [35.66331,33.18743],
+ [35.66355,33.18453],
+ [35.66383,33.1843],
+ [35.66384,33.18377],
+ [35.66422,33.18323],
+ [35.66424,33.18209],
+ [35.66453,33.18163],
+ [35.66464,33.18064],
+ [35.66492,33.18033],
+ [35.66555,33.17605],
+ [35.66583,33.17582],
+ [35.66595,33.17483],
+ [35.66613,33.17468],
+ [35.66676,33.17071],
+ [35.66704,33.17048],
+ [35.66746,33.16788],
+ [35.66774,33.1675],
+ [35.66776,33.1662],
+ [35.66814,33.16559],
+ [35.66897,33.16063],
+ [35.66926,33.16009],
+ [35.66957,33.15834],
+ [35.66985,33.15811],
+ [35.66986,33.15734],
+ [35.67015,33.15696],
+ [35.67028,33.15467],
+ [35.67067,33.15337],
+ [35.6706,33.15238],
+ [35.66988,33.15169],
+ [35.66989,33.15138],
+ [35.66863,33.14977],
+ [35.66846,33.14893],
+ [35.66774,33.14816],
+ [35.66776,33.14717],
+ [35.66641,33.14601],
+ [35.66596,33.14517],
+ [35.66598,33.14441],
+ [35.66508,33.14364],
+ [35.66508,33.14333],
+ [35.66436,33.14264],
+ [35.66437,33.14211],
+ [35.66356,33.14126],
+ [35.66357,33.14096],
+ [35.66321,33.14065],
+ [35.66295,33.13981],
+ [35.66232,33.13896],
+ [35.66233,33.13835],
+ [35.66143,33.13758],
+ [35.6609,33.13636],
+ [35.66,33.13544],
+ [35.65983,33.1346],
+ [35.65921,33.13375],
+ [35.65922,33.13322],
+ [35.65831,33.13245],
+ [35.65778,33.13153],
+ [35.65782,33.12969],
+ [35.65538,33.12762],
+ [35.65476,33.12624],
+ [35.6544,33.12593],
+ [35.65441,33.12555],
+ [35.65334,33.12394],
+ [35.65335,33.1231],
+ [35.65301,33.1218],
+ [35.65304,33.12019],
+ [35.65269,33.11966],
+ [35.65266,33.11622],
+ [35.65231,33.11545],
+ [35.65237,33.11216],
+ [35.65219,33.11193],
+ [35.65207,33.1088],
+ [35.65181,33.10819],
+ [35.65185,33.10605],
+ [35.65178,33.10498],
+ [35.65151,33.10452],
+ [35.65156,33.10207],
+ [35.65122,33.10069],
+ [35.65117,33.09817],
+ [35.65091,33.09771],
+ [35.65095,33.09542],
+ [35.65081,33.09335],
+ [35.65063,33.09327],
+ [35.65066,33.09175],
+ [35.65023,33.09014],
+ [35.65028,33.08731],
+ [35.64994,33.08624],
+ [35.64941,33.08564],
+ [35.64833,33.08474],
+ [35.6474,33.08477],
+ [35.64544,33.08606],
+ [35.64489,33.08606],
+ [35.64372,33.08506],
+ [35.64328,33.0843],
+ [35.64273,33.08384],
+ [35.64237,33.08383],
+ [35.64182,33.08345],
+ [35.6419,33.08296],
+ [35.64167,33.08223],
+ [35.64186,33.08146],
+ [35.64224,33.08116],
+ [35.64225,33.08047],
+ [35.64273,33.07933],
+ [35.64271,33.07573],
+ [35.64309,33.0752],
+ [35.6431,33.07443],
+ [35.64193,33.07328],
+ [35.64113,33.07206],
+ [35.64106,33.07076],
+ [35.64135,33.0703],
+ [35.64155,33.06915],
+ [35.64212,33.06847],
+ [35.64213,33.06793],
+ [35.64326,33.06649],
+ [35.6434,33.06389],
+ [35.64277,33.06304],
+ [35.64278,33.05792],
+ [35.64251,33.05754],
+ [35.64246,33.0557],
+ [35.64219,33.05509],
+ [35.64209,33.05096],
+ [35.64119,33.05027],
+ [35.64009,33.05003],
+ [35.63937,33.04965],
+ [35.63744,33.04781],
+ [35.6353,33.04782],
+ [35.63494,33.04619],
+ [35.63487,33.04519],
+ [35.6346,33.04481],
+ [35.62991,33.03973],
+ [35.62872,33.04043],
+ [35.62871,33.04096],
+ [35.62834,33.04127],
+ [35.62832,33.04249],
+ [35.62459,33.04553],
+ [35.6242,33.04629],
+ [35.62419,33.0469],
+ [35.62391,33.04713],
+ [35.6239,33.04759],
+ [35.62288,33.04835],
+ [35.62286,33.04911],
+ [35.62249,33.04942],
+ [35.62247,33.05057],
+ [35.58699,33.01642],
+ [35.62534,32.97933],
+ [35.62463,32.97823],
+ [35.62655,32.97649],
+ [35.62656,32.97542],
+ [35.62639,32.97489],
+ [35.62569,32.97427],
+ [35.62571,32.97267],
+ [35.62545,32.97244],
+ [35.62521,32.97084],
+ [35.62494,32.97061],
+ [35.62487,32.96924],
+ [35.62461,32.96901],
+ [35.62463,32.96794],
+ [35.62499,32.96756],
+ [35.625,32.96688],
+ [35.6243,32.96588],
+ [35.62424,32.9642],
+ [35.62407,32.9639],
+ [35.62401,32.96214],
+ [35.62411,32.96116],
+ [35.62439,32.96093],
+ [35.62446,32.95643],
+ [35.62474,32.95567],
+ [35.62486,32.954],
+ [35.62504,32.95385],
+ [35.62507,32.9524],
+ [35.62561,32.95195],
+ [35.62526,32.95126],
+ [35.62527,32.95073],
+ [35.62566,32.94936],
+ [35.6258,32.94608],
+ [35.62563,32.9454],
+ [35.62502,32.94463],
+ [35.62495,32.94341],
+ [35.62468,32.94318],
+ [35.62474,32.94006],
+ [35.62438,32.93967],
+ [35.62447,32.93441],
+ [35.62406,32.93425],
+ [35.62184,32.91803],
+ [35.60576,32.90726],
+ [35.60999,32.89823],
+ [35.61078,32.8962],
+ [35.61242,32.89477],
+ [35.61287,32.89454],
+ [35.6134,32.89455],
+ [35.61647,32.89305],
+ [35.61737,32.89283],
+ [35.62226,32.88982],
+ [35.62236,32.88944],
+ [35.62445,32.8874],
+ [35.62445,32.88718],
+ [35.62573,32.88566],
+ [35.62649,32.88323],
+ [35.62695,32.88255],
+ [35.62813,32.88149],
+ [35.63003,32.88036],
+ [35.63221,32.87871],
+ [35.63357,32.87742],
+ [35.63358,32.87712],
+ [35.63668,32.87349],
+ [35.63678,32.87303],
+ [35.63806,32.87144],
+ [35.63843,32.87061],
+ [35.63943,32.86978],
+ [35.64035,32.86818],
+ [35.6419,32.86675],
+ [35.64236,32.86569],
+ [35.64309,32.86485],
+ [35.64313,32.86257],
+ [35.64252,32.86173],
+ [35.64263,32.86036],
+ [35.64345,32.85952],
+ [35.64346,32.85914],
+ [35.64473,32.85801],
+ [35.64473,32.85763],
+ [35.64565,32.85627],
+ [35.64613,32.85452],
+ [35.64658,32.85414],
+ [35.6465,32.85376],
+ [35.64732,32.85285],
+ [35.6478,32.85103],
+ [35.64807,32.8508],
+ [35.64846,32.84882],
+ [35.64883,32.84837],
+ [35.64894,32.84707],
+ [35.64921,32.84685],
+ [35.64933,32.84494],
+ [35.64931,32.84075],
+ [35.64905,32.83991],
+ [35.64561,32.83691],
+ [35.64297,32.8343],
+ [35.64253,32.83407],
+ [35.64181,32.83406],
+ [35.64119,32.83352],
+ [35.6412,32.83284],
+ [35.64157,32.83238],
+ [35.64159,32.83116],
+ [35.64187,32.83079],
+ [35.64182,32.82812],
+ [35.64264,32.82721],
+ [35.64274,32.82668],
+ [35.64347,32.82592],
+ [35.64357,32.82516],
+ [35.64411,32.82471],
+ [35.64413,32.82395],
+ [35.64459,32.82319],
+ [35.64461,32.82151],
+ [35.64489,32.82113],
+ [35.6451,32.81352],
+ [35.64475,32.81321],
+ [35.64452,32.81107],
+ [35.64376,32.81065],
+ [35.64427,32.80993],
+ [35.64544,32.80956],
+ [35.64723,32.80927],
+ [35.64759,32.80904],
+ [35.64912,32.8089],
+ [35.64939,32.80868],
+ [35.65037,32.80868],
+ [35.65459,32.80788],
+ [35.65495,32.80758],
+ [35.65501,32.80415],
+ [35.65475,32.80384],
+ [35.6548,32.80057],
+ [35.65462,32.80041],
+ [35.65467,32.79744],
+ [35.65435,32.79508],
+ [35.65432,32.79157],
+ [35.65515,32.79028],
+ [35.65526,32.78899],
+ [35.65626,32.78816],
+ [35.65636,32.78717],
+ [35.65691,32.78672],
+ [35.65691,32.78634],
+ [35.65737,32.78588],
+ [35.65738,32.78535],
+ [35.65792,32.78467],
+ [35.65793,32.78414],
+ [35.65848,32.78368],
+ [35.65876,32.78254],
+ [35.65922,32.78209],
+ [35.65933,32.78102],
+ [35.65978,32.78065],
+ [35.65996,32.76937],
+ [35.66015,32.76907],
+ [35.65937,32.76708],
+ [35.65942,32.76396],
+ [35.65775,32.7625],
+ [35.65768,32.76143],
+ [35.65733,32.76097],
+ [35.65734,32.76013],
+ [35.65682,32.75906],
+ [35.65683,32.7586],
+ [35.65639,32.75814],
+ [35.6564,32.75753],
+ [35.65605,32.75707],
+ [35.65597,32.75639],
+ [35.65571,32.75608],
+ [35.65572,32.75539],
+ [35.65523,32.75471],
+ [35.63277,32.74487],
+ [35.63337,32.74446],
+ [35.63266,32.74362],
+ [35.6325,32.7427],
+ [35.63206,32.74232],
+ [35.63172,32.7414],
+ [35.63102,32.74063],
+ [35.63015,32.7388],
+ [35.62823,32.73634],
+ [35.62797,32.73558],
+ [35.62534,32.73274],
+ [35.62411,32.73105],
+ [35.6227,32.7299],
+ [35.62227,32.72913],
+ [35.61971,32.7269],
+ [35.61885,32.72491],
+ [35.61744,32.7236],
+ [35.6163,32.72215],
+ [35.61631,32.72192],
+ [35.61587,32.72153],
+ [35.6157,32.72069],
+ [35.61526,32.72031],
+ [35.61466,32.71924],
+ [35.61202,32.7167],
+ [35.6077,32.71308],
+ [35.60177,32.70945],
+ [35.60133,32.70899],
+ [35.60088,32.70898],
+ [35.6,32.70844],
+ [35.59929,32.70828],
+ [35.5974,32.70711],
+ [35.59689,32.7072],
+ [35.59645,32.70681],
+ [35.59648,32.70498],
+ [35.59738,32.70441],
+ [35.59929,32.70318],
+ [35.60028,32.70227],
+ [35.60073,32.7022],
+ [35.60227,32.701],
+ [35.60381,32.70009],
+ [35.60417,32.69956],
+ [35.60462,32.69957],
+ [35.60498,32.69934],
+ [35.60715,32.69769],
+ [35.60769,32.69769],
+ [35.60796,32.69746],
+ [35.60797,32.69716],
+ [35.60896,32.69641],
+ [35.60923,32.69641],
+ [35.61086,32.69505],
+ [35.61227,32.69444],
+ [35.61375,32.69309],
+ [35.61439,32.69272],
+ [35.61474,32.69272],
+ [35.61719,32.69076],
+ [35.61827,32.69024],
+ [35.61945,32.68926],
+ [35.6199,32.68918],
+ [35.62451,32.68579],
+ [35.62505,32.68572],
+ [35.62722,32.68407],
+ [35.62767,32.68407],
+ [35.62848,32.68362],
+ [35.63141,32.68356]]}},
+{"type":"Feature",
+ "properties":{"id":"syria_dmz_north","front":"syria","kind":"zone","name":"Demilitarized Zone (Syria-Israel), northern part: Banias and Tell el Qadi","agreement":"Syria-Israel General Armistice Agreement","signed":"1949-07-20","place":"Hill 232 near Mahanayim","document":"S/1353; UNTS vol. 42, No. 657","shown_from":"1949-07-20","accuracy":"about +-0.1-0.2 km: the edge of the hatching on the 1:50,000 map (hatch spacing about 0.17 km; the zone's narrowest tips, under two hatch spacings wide, are under-drawn); georeference rms 14 m on the map's 1-km grid.","method":"Art. V.5: where the line departs from the international boundary, the area between them is a Demilitarized Zone, which also takes in the Ein Gev and Dardara sectors; its outline is the hatched area of the annexed map ('Demilitarized zone' in the legend), vectorised from the hatching.","sources":["https://treaties.un.org/doc/publication/UNTS/Volume%2042/v42.pdf","https://www.un.org/unispal/wp-content/uploads/1949/07/794884bef66f46f38525705200598b87_s1353rev1.tif"],"checked":"2026-10-11","status":"draft","area_km2":4.08,"withdrawal":"Annex II: forces out of the zone within 12 weeks of signing (by 12 Oct 1949), in three sectors (3, 6 and 12 weeks)"},
+ "geometry":{"type":"Polygon","coordinates":[
+ [[35.67265,33.24946],
+ [35.6721,33.24945],
+ [35.6719,33.24887],
+ [35.67123,33.24841],
+ [35.67096,33.24737],
+ [35.67029,33.24685],
+ [35.66906,33.24673],
+ [35.66873,33.24638],
+ [35.6686,33.24517],
+ [35.66766,33.24435],
+ [35.66753,33.24332],
+ [35.66598,33.24193],
+ [35.66585,33.24095],
+ [35.66484,33.23996],
+ [35.66464,33.23944],
+ [35.66383,33.23892],
+ [35.66357,33.23782],
+ [35.66154,33.23608],
+ [35.66148,33.23539],
+ [35.66114,33.23498],
+ [35.66076,33.23227],
+ [35.65995,33.23158],
+ [35.65832,33.23151],
+ [35.65832,33.23111],
+ [35.65948,33.23111],
+ [35.66037,33.23054],
+ [35.66072,33.22922],
+ [35.66045,33.22853],
+ [35.66054,33.22669],
+ [35.66021,33.22507],
+ [35.66023,33.22294],
+ [35.66003,33.22248],
+ [35.66012,33.22047],
+ [35.65993,33.21949],
+ [35.65952,33.21908],
+ [35.66034,33.21851],
+ [35.66062,33.21776],
+ [35.66124,33.21725],
+ [35.66179,33.21627],
+ [35.66241,33.21587],
+ [35.66365,33.2145],
+ [35.66393,33.21381],
+ [35.66366,33.2126],
+ [35.66482,33.21261],
+ [35.66544,33.21221],
+ [35.66612,33.21221],
+ [35.66624,33.21389],
+ [35.66603,33.21452],
+ [35.6663,33.21515],
+ [35.66717,33.21573],
+ [35.66854,33.21569],
+ [35.66853,33.21609],
+ [35.66737,33.21631],
+ [35.66676,33.21688],
+ [35.66661,33.21734],
+ [35.66661,33.21821],
+ [35.66694,33.21884],
+ [35.66687,33.21965],
+ [35.66727,33.22034],
+ [35.6671,33.22351],
+ [35.66668,33.22454],
+ [35.66687,33.22604],
+ [35.66762,33.22673],
+ [35.66843,33.22697],
+ [35.66897,33.22749],
+ [35.66951,33.22807],
+ [35.66971,33.22865],
+ [35.67045,33.22934],
+ [35.67071,33.23038],
+ [35.67173,33.23097],
+ [35.67186,33.23131],
+ [35.67301,33.2323],
+ [35.67376,33.23253],
+ [35.67512,33.23243],
+ [35.67579,33.23307],
+ [35.67709,33.23319],
+ [35.67783,33.23354],
+ [35.67851,33.23418],
+ [35.67973,33.23436],
+ [35.68169,33.2361],
+ [35.68257,33.23622],
+ [35.68256,33.23697],
+ [35.68283,33.23749],
+ [35.68282,33.23893],
+ [35.68254,33.23916],
+ [35.68233,33.2399],
+ [35.68253,33.24059],
+ [35.68314,33.24117],
+ [35.68389,33.24141],
+ [35.68443,33.24136],
+ [35.68546,33.24056],
+ [35.68607,33.24056],
+ [35.68607,33.24102],
+ [35.68511,33.24113],
+ [35.68429,33.24182],
+ [35.68414,33.24383],
+ [35.6844,33.24446],
+ [35.68337,33.24515],
+ [35.6831,33.24595],
+ [35.68186,33.24687],
+ [35.68145,33.24692],
+ [35.68097,33.24732],
+ [35.67907,33.24708],
+ [35.67832,33.24736],
+ [35.67736,33.24736],
+ [35.67682,33.24689],
+ [35.6754,33.24677],
+ [35.67479,33.24636],
+ [35.67274,33.2464],
+ [35.67185,33.24697],
+ [35.67158,33.24761],
+ [35.6717,33.2483],
+ [35.67265,33.24899],
+ [35.67265,33.24946]]]}},
+{"type":"Feature",
+ "properties":{"id":"syria_dmz_central","front":"syria","kind":"zone","name":"Demilitarized Zone (Syria-Israel), central part: Dardara, the Jordan and Mishmar HaYarden","agreement":"Syria-Israel General Armistice Agreement","signed":"1949-07-20","place":"Hill 232 near Mahanayim","document":"S/1353; UNTS vol. 42, No. 657","shown_from":"1949-07-20","accuracy":"about +-0.1-0.2 km: the edge of the hatching on the 1:50,000 map (hatch spacing about 0.17 km; the zone's narrowest tips, under two hatch spacings wide, are under-drawn); georeference rms 14 m on the map's 1-km grid.","method":"Art. V.5: where the line departs from the international boundary, the area between them is a Demilitarized Zone, which also takes in the Ein Gev and Dardara sectors; its outline is the hatched area of the annexed map ('Demilitarized zone' in the legend), vectorised from the hatching.","sources":["https://treaties.un.org/doc/publication/UNTS/Volume%2042/v42.pdf","https://www.un.org/unispal/wp-content/uploads/1949/07/794884bef66f46f38525705200598b87_s1353rev1.tif"],"checked":"2026-10-11","status":"draft","area_km2":27.33,"withdrawal":"Annex II: forces out of the zone within 12 weeks of signing (by 12 Oct 1949), in three sectors (3, 6 and 12 weeks)"},
+ "geometry":{"type":"Polygon","coordinates":[
+ [[35.6463,33.08523],
+ [35.6442,33.08533],
+ [35.64318,33.0844],
+ [35.64217,33.08428],
+ [35.64184,33.08324],
+ [35.63927,33.08132],
+ [35.63928,33.08046],
+ [35.64045,33.0792],
+ [35.6406,33.07805],
+ [35.64101,33.07753],
+ [35.64097,33.07465],
+ [35.6407,33.07402],
+ [35.63868,33.07239],
+ [35.63862,33.07164],
+ [35.63822,33.07118],
+ [35.63829,33.0702],
+ [35.63796,33.06957],
+ [35.63799,33.06617],
+ [35.63847,33.06577],
+ [35.63861,33.06508],
+ [35.63896,33.06479],
+ [35.63937,33.06387],
+ [35.63945,33.06307],
+ [35.64,33.0625],
+ [35.64015,33.06031],
+ [35.64043,33.05997],
+ [35.64072,33.05841],
+ [35.64052,33.05761],
+ [35.64068,33.0553],
+ [35.64055,33.05484],
+ [35.64008,33.05444],
+ [35.64002,33.05305],
+ [35.6378,33.05131],
+ [35.63781,33.0497],
+ [35.63619,33.0483],
+ [35.63621,33.04698],
+ [35.63493,33.04582],
+ [35.63501,33.04478],
+ [35.63474,33.04415],
+ [35.63286,33.04241],
+ [35.63197,33.04217],
+ [35.63164,33.04142],
+ [35.63077,33.04072],
+ [35.62975,33.04037],
+ [35.62907,33.04048],
+ [35.62839,33.04111],
+ [35.62757,33.04133],
+ [35.62627,33.04242],
+ [35.62605,33.04374],
+ [35.62461,33.04506],
+ [35.62378,33.04712],
+ [35.62289,33.04781],
+ [35.62219,33.05005],
+ [35.62157,33.05005],
+ [35.62063,33.04923],
+ [35.61888,33.04755],
+ [35.61875,33.0472],
+ [35.61733,33.04604],
+ [35.61727,33.04558],
+ [35.61646,33.04488],
+ [35.61531,33.04453],
+ [35.6147,33.04464],
+ [35.61388,33.04533],
+ [35.6138,33.04648],
+ [35.61339,33.04648],
+ [35.61272,33.04566],
+ [35.61204,33.04549],
+ [35.61205,33.04503],
+ [35.61402,33.04504],
+ [35.61484,33.04435],
+ [35.61491,33.04343],
+ [35.61465,33.04297],
+ [35.61397,33.04245],
+ [35.6135,33.04239],
+ [35.61168,33.04059],
+ [35.61142,33.03972],
+ [35.61075,33.0392],
+ [35.61014,33.03908],
+ [35.60482,33.03403],
+ [35.60401,33.0338],
+ [35.60346,33.03391],
+ [35.60298,33.03431],
+ [35.6021,33.0343],
+ [35.60176,33.03401],
+ [35.60076,33.03303],
+ [35.60076,33.03239],
+ [35.60152,33.03182],
+ [35.60159,33.03102],
+ [35.60038,33.02963],
+ [35.59923,33.02921],
+ [35.59773,33.02984],
+ [35.59699,33.02983],
+ [35.59686,33.02902],
+ [35.59605,33.02833],
+ [35.59449,33.02791],
+ [35.59306,33.02802],
+ [35.59321,33.02692],
+ [35.59295,33.02629],
+ [35.59234,33.02582],
+ [35.59242,33.02438],
+ [35.59155,33.02357],
+ [35.59128,33.02276],
+ [35.58947,33.02114],
+ [35.589,33.02085],
+ [35.58818,33.02073],
+ [35.58805,33.02003],
+ [35.58718,33.01916],
+ [35.58643,33.01893],
+ [35.58501,33.01903],
+ [35.58339,33.0177],
+ [35.5834,33.01718],
+ [35.58408,33.01718],
+ [35.58495,33.018],
+ [35.58576,33.01823],
+ [35.58631,33.01812],
+ [35.58699,33.01761],
+ [35.58727,33.01646],
+ [35.58776,33.01589],
+ [35.59084,33.01326],
+ [35.59105,33.01274],
+ [35.5916,33.01223],
+ [35.59255,33.01166],
+ [35.59276,33.01109],
+ [35.59331,33.01057],
+ [35.59385,33.0104],
+ [35.59488,33.00949],
+ [35.59516,33.0088],
+ [35.59728,33.00703],
+ [35.59749,33.00651],
+ [35.60064,33.00366],
+ [35.60133,33.00251],
+ [35.60174,33.0024],
+ [35.60366,33.0008],
+ [35.60497,32.99897],
+ [35.60505,32.99764],
+ [35.60654,32.9976],
+ [35.60777,32.99674],
+ [35.60853,32.99577],
+ [35.61017,32.99445],
+ [35.6108,32.99313],
+ [35.61237,32.99205],
+ [35.61319,32.99091],
+ [35.6147,32.98999],
+ [35.61559,32.98885],
+ [35.61703,32.98771],
+ [35.61779,32.98656],
+ [35.6184,32.98639],
+ [35.61908,32.98588],
+ [35.61936,32.98485],
+ [35.62025,32.98433],
+ [35.62155,32.98308],
+ [35.62183,32.9825],
+ [35.62292,32.98182],
+ [35.62361,32.98096],
+ [35.62593,32.97919],
+ [35.62683,32.97776],
+ [35.6267,32.97718],
+ [35.62609,32.97666],
+ [35.626,32.97251],
+ [35.62533,32.9713],
+ [35.62541,32.9702],
+ [35.62508,32.96899],
+ [35.62448,32.96841],
+ [35.62373,32.96818],
+ [35.62312,32.96829],
+ [35.62278,32.96857],
+ [35.62217,32.96857],
+ [35.62252,32.96725],
+ [35.62388,32.96703],
+ [35.6245,32.96645],
+ [35.62471,32.96588],
+ [35.62444,32.96513],
+ [35.62445,32.96427],
+ [35.62497,32.95949],
+ [35.62559,32.95898],
+ [35.62573,32.95852],
+ [35.6256,32.958],
+ [35.62513,32.95759],
+ [35.62514,32.95678],
+ [35.62557,32.95448],
+ [35.62605,32.95328],
+ [35.62602,32.94965],
+ [35.62644,32.94798],
+ [35.62618,32.94729],
+ [35.62577,32.94694],
+ [35.62586,32.94522],
+ [35.62559,32.9447],
+ [35.6256,32.9436],
+ [35.6252,32.94314],
+ [35.62514,32.94199],
+ [35.62454,32.94135],
+ [35.62495,32.9406],
+ [35.62477,32.9391],
+ [35.62403,32.93835],
+ [35.62403,32.93772],
+ [35.62472,32.93715],
+ [35.625,32.93634],
+ [35.62487,32.93559],
+ [35.62453,32.9353],
+ [35.62415,32.93282],
+ [35.62388,32.93224],
+ [35.62328,32.93166],
+ [35.62253,32.93143],
+ [35.62145,32.93154],
+ [35.62064,32.93055],
+ [35.62065,32.93003],
+ [35.62187,32.93022],
+ [35.62262,32.92999],
+ [35.62323,32.92942],
+ [35.62337,32.92896],
+ [35.62345,32.92821],
+ [35.62318,32.92769],
+ [35.62306,32.9259],
+ [35.62341,32.92562],
+ [35.62355,32.92504],
+ [35.62342,32.92458],
+ [35.62274,32.924],
+ [35.62224,32.91997],
+ [35.62197,32.91945],
+ [35.62117,32.91887],
+ [35.62029,32.91869],
+ [35.61893,32.91879],
+ [35.61893,32.91833],
+ [35.61948,32.91776],
+ [35.61942,32.91695],
+ [35.61861,32.91626],
+ [35.61773,32.91614],
+ [35.61693,32.91555],
+ [35.6168,32.91446],
+ [35.61519,32.91301],
+ [35.61444,32.91277],
+ [35.61302,32.91282],
+ [35.61289,32.91242],
+ [35.61228,32.91184],
+ [35.61093,32.9116],
+ [35.61019,32.9109],
+ [35.60918,32.91037],
+ [35.60905,32.90934],
+ [35.60845,32.90876],
+ [35.60709,32.90852],
+ [35.60601,32.90787],
+ [35.60602,32.90718],
+ [35.6072,32.90512],
+ [35.60734,32.90449],
+ [35.60775,32.90414],
+ [35.60789,32.90345],
+ [35.60823,32.90305],
+ [35.60831,32.90236],
+ [35.60872,32.90202],
+ [35.60934,32.90059],
+ [35.61009,32.90001],
+ [35.61024,32.89944],
+ [35.60997,32.89892],
+ [35.60998,32.89817],
+ [35.61121,32.89714],
+ [35.61175,32.89703],
+ [35.61223,32.89663],
+ [35.61311,32.89664],
+ [35.61385,32.89705],
+ [35.61385,32.89757],
+ [35.6135,32.8982],
+ [35.61369,32.89987],
+ [35.61429,32.90097],
+ [35.61584,32.90207],
+ [35.61597,32.90288],
+ [35.61657,32.9034],
+ [35.6167,32.90438],
+ [35.6173,32.90496],
+ [35.61865,32.90526],
+ [35.62008,32.90515],
+ [35.62069,32.90539],
+ [35.62313,32.90523],
+ [35.62354,32.90547],
+ [35.62373,32.90604],
+ [35.62454,32.90657],
+ [35.62446,32.90806],
+ [35.62493,32.90859],
+ [35.62513,32.90922],
+ [35.62614,32.90998],
+ [35.6262,32.91044],
+ [35.62653,32.91078],
+ [35.62658,32.91263],
+ [35.62542,32.91394],
+ [35.62486,32.91515],
+ [35.62425,32.91561],
+ [35.62384,32.91635],
+ [35.62369,32.9175],
+ [35.62402,32.91814],
+ [35.62401,32.91929],
+ [35.62448,32.91981],
+ [35.62461,32.92079],
+ [35.62521,32.92137],
+ [35.62623,32.92161],
+ [35.62649,32.92224],
+ [35.62716,32.92277],
+ [35.62879,32.92284],
+ [35.62906,32.92307],
+ [35.62906,32.92359],
+ [35.62675,32.92374],
+ [35.62586,32.92431],
+ [35.62551,32.92506],
+ [35.6255,32.92609],
+ [35.62622,32.92961],
+ [35.62633,32.93134],
+ [35.62687,32.93192],
+ [35.62679,32.93365],
+ [35.62644,32.93434],
+ [35.62657,32.9348],
+ [35.62724,32.93538],
+ [35.6273,32.93636],
+ [35.62757,32.9367],
+ [35.62756,32.93745],
+ [35.6279,32.93815],
+ [35.62793,32.94126],
+ [35.62757,32.94367],
+ [35.6277,32.94413],
+ [35.62817,32.94454],
+ [35.62809,32.94558],
+ [35.62829,32.94604],
+ [35.62833,32.94886],
+ [35.62812,32.94984],
+ [35.62824,32.95203],
+ [35.6285,32.95255],
+ [35.62821,32.95456],
+ [35.62847,32.95537],
+ [35.62839,32.9575],
+ [35.62865,32.95813],
+ [35.62946,32.95883],
+ [35.63075,32.95907],
+ [35.63074,32.95988],
+ [35.63046,32.96062],
+ [35.63073,32.96114],
+ [35.63065,32.96224],
+ [35.63104,32.96414],
+ [35.63094,32.96644],
+ [35.63128,32.96725],
+ [35.63209,32.96783],
+ [35.63208,32.96847],
+ [35.63133,32.96921],
+ [35.63124,32.97071],
+ [35.63144,32.97117],
+ [35.6316,32.97612],
+ [35.63193,32.97676],
+ [35.63183,32.97975],
+ [35.63217,32.98039],
+ [35.63219,32.98459],
+ [35.63246,32.98511],
+ [35.63231,32.9862],
+ [35.63258,32.98672],
+ [35.63257,32.9881],
+ [35.63284,32.98845],
+ [35.63283,32.98914],
+ [35.63235,32.98954],
+ [35.63221,32.99006],
+ [35.63247,32.9907],
+ [35.63315,32.99122],
+ [35.63389,32.99134],
+ [35.63416,32.99197],
+ [35.63517,32.99279],
+ [35.63516,32.99331],
+ [35.63374,32.99335],
+ [35.63285,32.99421],
+ [35.63291,32.99502],
+ [35.63392,32.99589],
+ [35.63391,32.99646],
+ [35.6333,32.99646],
+ [35.63249,32.99576],
+ [35.63168,32.99553],
+ [35.63114,32.99564],
+ [35.63045,32.99615],
+ [35.6301,32.99701],
+ [35.63023,32.99782],
+ [35.63084,32.99834],
+ [35.63081,33.00088],
+ [35.63121,33.00157],
+ [35.6312,33.00272],
+ [35.63154,33.00313],
+ [35.63146,33.00428],
+ [35.63179,33.00491],
+ [35.63185,33.00607],
+ [35.63225,33.00653],
+ [35.63202,33.00987],
+ [35.63154,33.01027],
+ [35.63147,33.01073],
+ [35.63099,33.01113],
+ [35.63071,33.01182],
+ [35.63083,33.01326],
+ [35.63008,33.01377],
+ [35.6298,33.0144],
+ [35.62991,33.01699],
+ [35.63024,33.01763],
+ [35.63023,33.01878],
+ [35.6305,33.01913],
+ [35.63042,33.02028],
+ [35.63069,33.0208],
+ [35.63067,33.02218],
+ [35.63128,33.02282],
+ [35.63133,33.0242],
+ [35.63221,33.0249],
+ [35.6322,33.0264],
+ [35.63361,33.02767],
+ [35.63435,33.02791],
+ [35.63517,33.02768],
+ [35.63579,33.02705],
+ [35.6364,33.02706],
+ [35.63646,33.02781],
+ [35.63565,33.02774],
+ [35.6349,33.02797],
+ [35.63428,33.02854],
+ [35.6342,33.02935],
+ [35.63508,33.03016],
+ [35.63513,33.0316],
+ [35.63574,33.03218],
+ [35.63642,33.03236],
+ [35.63655,33.03311],
+ [35.63695,33.03368],
+ [35.63707,33.03461],
+ [35.63741,33.03513],
+ [35.63802,33.03553],
+ [35.63807,33.03703],
+ [35.63901,33.03773],
+ [35.63934,33.03888],
+ [35.64015,33.03941],
+ [35.63993,33.04119],
+ [35.6402,33.04183],
+ [35.6408,33.04229],
+ [35.64066,33.04338],
+ [35.64079,33.04384],
+ [35.64113,33.04414],
+ [35.64118,33.04563],
+ [35.64199,33.04633],
+ [35.64191,33.04731],
+ [35.64224,33.04794],
+ [35.64223,33.04921],
+ [35.64297,33.05014],
+ [35.64301,33.05273],
+ [35.64382,33.05354],
+ [35.64381,33.05492],
+ [35.64421,33.05539],
+ [35.6442,33.05654],
+ [35.64494,33.05752],
+ [35.64499,33.05862],
+ [35.6454,33.05908],
+ [35.64532,33.06017],
+ [35.64565,33.06127],
+ [35.64652,33.06208],
+ [35.64614,33.06686],
+ [35.64579,33.06749],
+ [35.64598,33.06927],
+ [35.64582,33.07152],
+ [35.64561,33.07198],
+ [35.64567,33.07296],
+ [35.64553,33.07399],
+ [35.64491,33.07451],
+ [35.64477,33.07502],
+ [35.6449,33.07549],
+ [35.64551,33.07612],
+ [35.6455,33.07687],
+ [35.64522,33.0775],
+ [35.64542,33.07808],
+ [35.64582,33.07843],
+ [35.64595,33.07941],
+ [35.6469,33.08011],
+ [35.64702,33.08097],
+ [35.6477,33.08155],
+ [35.64775,33.08328],
+ [35.64815,33.08397],
+ [35.64814,33.08455],
+ [35.64746,33.08495],
+ [35.64671,33.085],
+ [35.6463,33.08523]]]}},
+{"type":"Feature",
+ "properties":{"id":"syria_dmz_south","front":"syria","kind":"zone","name":"Demilitarized Zone (Syria-Israel), southern part: Ein Gev and El Hamma","agreement":"Syria-Israel General Armistice Agreement","signed":"1949-07-20","place":"Hill 232 near Mahanayim","document":"S/1353; UNTS vol. 42, No. 657","shown_from":"1949-07-20","accuracy":"about +-0.1-0.2 km: the edge of the hatching on the 1:50,000 map (hatch spacing about 0.17 km; the zone's narrowest tips, under two hatch spacings wide, are under-drawn); georeference rms 14 m on the map's 1-km grid.","method":"Art. V.5: where the line departs from the international boundary, the area between them is a Demilitarized Zone, which also takes in the Ein Gev and Dardara sectors; its outline is the hatched area of the annexed map ('Demilitarized zone' in the legend), vectorised from the hatching.","sources":["https://treaties.un.org/doc/publication/UNTS/Volume%2042/v42.pdf","https://www.un.org/unispal/wp-content/uploads/1949/07/794884bef66f46f38525705200598b87_s1353rev1.tif"],"checked":"2026-10-11","status":"draft","area_km2":33.79,"withdrawal":"Annex II: forces out of the zone within 12 weeks of signing (by 12 Oct 1949), in three sectors (3, 6 and 12 weeks)"},
+ "geometry":{"type":"Polygon","coordinates":[
+ [[35.65838,32.68672],
+ [35.65791,32.68643],
+ [35.65676,32.68637],
+ [35.65622,32.68602],
+ [35.65486,32.68595],
+ [35.65385,32.68566],
+ [35.65385,32.68562],
+ [35.65303,32.68548],
+ [35.65256,32.68501],
+ [35.65182,32.68478],
+ [35.6508,32.68506],
+ [35.65005,32.68505],
+ [35.65027,32.68391],
+ [35.64994,32.68275],
+ [35.64961,32.68235],
+ [35.64853,32.68159],
+ [35.64683,32.68164],
+ [35.64622,32.68186],
+ [35.64567,32.68243],
+ [35.64472,32.68266],
+ [35.6441,32.68323],
+ [35.64409,32.68421],
+ [35.6451,32.68502],
+ [35.6451,32.68554],
+ [35.64442,32.68553],
+ [35.64409,32.6849],
+ [35.64341,32.68437],
+ [35.64246,32.68431],
+ [35.64205,32.68448],
+ [35.64137,32.68522],
+ [35.6413,32.68562],
+ [35.64163,32.68626],
+ [35.64162,32.68678],
+ [35.64095,32.68677],
+ [35.64041,32.68631],
+ [35.63973,32.68619],
+ [35.63919,32.6863],
+ [35.6383,32.68698],
+ [35.63626,32.68743],
+ [35.6355,32.68829],
+ [35.63514,32.6907],
+ [35.63486,32.69127],
+ [35.63511,32.69386],
+ [35.63591,32.69473],
+ [35.6359,32.69588],
+ [35.63658,32.69658],
+ [35.6365,32.69744],
+ [35.63676,32.69819],
+ [35.63791,32.69912],
+ [35.63994,32.69913],
+ [35.64014,32.69937],
+ [35.64014,32.69994],
+ [35.63878,32.69999],
+ [35.63782,32.70085],
+ [35.63761,32.70188],
+ [35.6378,32.70343],
+ [35.63745,32.70406],
+ [35.63758,32.70464],
+ [35.63886,32.70592],
+ [35.64116,32.70611],
+ [35.64157,32.7064],
+ [35.64183,32.70709],
+ [35.6425,32.70761],
+ [35.64481,32.70809],
+ [35.64507,32.70884],
+ [35.64595,32.70948],
+ [35.64642,32.70959],
+ [35.64628,32.71051],
+ [35.64654,32.71115],
+ [35.64728,32.71173],
+ [35.6483,32.71185],
+ [35.6489,32.7126],
+ [35.64882,32.7137],
+ [35.64908,32.71531],
+ [35.64928,32.71554],
+ [35.64933,32.71698],
+ [35.64911,32.71905],
+ [35.64924,32.71951],
+ [35.64958,32.7198],
+ [35.64962,32.72193],
+ [35.64941,32.72314],
+ [35.64886,32.72359],
+ [35.64872,32.7244],
+ [35.64885,32.72486],
+ [35.64925,32.72521],
+ [35.64931,32.72659],
+ [35.65045,32.72763],
+ [35.65113,32.72781],
+ [35.65125,32.72931],
+ [35.65158,32.72994],
+ [35.65129,32.73172],
+ [35.65148,32.73379],
+ [35.65215,32.73455],
+ [35.6531,32.73478],
+ [35.65323,32.73542],
+ [35.65356,32.73571],
+ [35.65362,32.73703],
+ [35.65469,32.73813],
+ [35.65473,32.74153],
+ [35.65452,32.74216],
+ [35.65478,32.74302],
+ [35.65579,32.74378],
+ [35.65871,32.74414],
+ [35.6587,32.74478],
+ [35.65822,32.74518],
+ [35.65808,32.74587],
+ [35.65705,32.74649],
+ [35.65678,32.74712],
+ [35.65697,32.74833],
+ [35.65675,32.75029],
+ [35.65701,32.75092],
+ [35.65769,32.75144],
+ [35.65687,32.7515],
+ [35.65619,32.75201],
+ [35.65591,32.75264],
+ [35.65597,32.7531],
+ [35.65637,32.75414],
+ [35.65697,32.75472],
+ [35.65772,32.75495],
+ [35.65867,32.7549],
+ [35.65887,32.75531],
+ [35.66015,32.75641],
+ [35.6611,32.75676],
+ [35.66109,32.75745],
+ [35.66047,32.75796],
+ [35.66033,32.75865],
+ [35.65857,32.75841],
+ [35.65754,32.75915],
+ [35.65746,32.76013],
+ [35.65787,32.76071],
+ [35.65799,32.76174],
+ [35.6584,32.76209],
+ [35.65812,32.76272],
+ [35.65818,32.76313],
+ [35.65906,32.764],
+ [35.66021,32.764],
+ [35.6611,32.7632],
+ [35.66118,32.76234],
+ [35.66071,32.76176],
+ [35.66091,32.76148],
+ [35.66125,32.76148],
+ [35.66131,32.76257],
+ [35.66178,32.76344],
+ [35.66232,32.76385],
+ [35.66223,32.76551],
+ [35.66053,32.76562],
+ [35.65985,32.76613],
+ [35.65957,32.76682],
+ [35.66064,32.76924],
+ [35.66076,32.77045],
+ [35.66164,32.7712],
+ [35.66259,32.77127],
+ [35.6623,32.7723],
+ [35.66182,32.77282],
+ [35.66168,32.77391],
+ [35.66235,32.77501],
+ [35.66247,32.77604],
+ [35.66321,32.77662],
+ [35.66321,32.77708],
+ [35.6628,32.7772],
+ [35.66218,32.77794],
+ [35.66116,32.77868],
+ [35.66107,32.78006],
+ [35.66053,32.78046],
+ [35.66025,32.78098],
+ [35.6601,32.78253],
+ [35.65955,32.78298],
+ [35.65927,32.78373],
+ [35.65886,32.78407],
+ [35.65775,32.78654],
+ [35.65741,32.78665],
+ [35.65672,32.78739],
+ [35.65665,32.78791],
+ [35.65692,32.78855],
+ [35.6563,32.78906],
+ [35.65567,32.79113],
+ [35.65594,32.79176],
+ [35.65695,32.7924],
+ [35.65694,32.79269],
+ [35.65613,32.79263],
+ [35.65538,32.79285],
+ [35.65476,32.79342],
+ [35.65455,32.79434],
+ [35.65461,32.79566],
+ [35.65501,32.79636],
+ [35.65496,32.80125],
+ [35.65523,32.80177],
+ [35.655,32.80395],
+ [35.6554,32.80464],
+ [35.65546,32.80545],
+ [35.65524,32.80694],
+ [35.65551,32.80775],
+ [35.65625,32.80845],
+ [35.65536,32.80896],
+ [35.65508,32.80982],
+ [35.65447,32.80982],
+ [35.65305,32.80888],
+ [35.65176,32.80888],
+ [35.64877,32.80943],
+ [35.64794,32.81011],
+ [35.6478,32.81092],
+ [35.64712,32.81091],
+ [35.64584,32.80964],
+ [35.64408,32.80957],
+ [35.6432,32.80887],
+ [35.64328,32.80795],
+ [35.64315,32.80749],
+ [35.64268,32.80708],
+ [35.64223,32.8038],
+ [35.64143,32.80288],
+ [35.64138,32.8008],
+ [35.64084,32.80011],
+ [35.63997,32.79953],
+ [35.64004,32.79855],
+ [35.63978,32.79803],
+ [35.63966,32.7959],
+ [35.63981,32.79487],
+ [35.64042,32.79435],
+ [35.64063,32.79378],
+ [35.64072,32.79234],
+ [35.63998,32.79159],
+ [35.64005,32.79061],
+ [35.63979,32.78998],
+ [35.63804,32.78835],
+ [35.63763,32.78824],
+ [35.63581,32.78673],
+ [35.6359,32.78477],
+ [35.63618,32.78426],
+ [35.63612,32.78339],
+ [35.63592,32.78316],
+ [35.63616,32.77873],
+ [35.63698,32.77851],
+ [35.6378,32.77777],
+ [35.63885,32.7749],
+ [35.63919,32.77461],
+ [35.63934,32.77392],
+ [35.64009,32.77335],
+ [35.64023,32.77278],
+ [35.63997,32.77214],
+ [35.63929,32.77162],
+ [35.63917,32.77035],
+ [35.63849,32.76977],
+ [35.63871,32.76851],
+ [35.63866,32.76719],
+ [35.63839,32.76667],
+ [35.63848,32.76454],
+ [35.63835,32.76408],
+ [35.63734,32.76298],
+ [35.63743,32.76085],
+ [35.63723,32.76033],
+ [35.63724,32.75924],
+ [35.6365,32.75848],
+ [35.6363,32.75796],
+ [35.63495,32.75715],
+ [35.63496,32.75646],
+ [35.63558,32.75595],
+ [35.63572,32.75549],
+ [35.63559,32.75433],
+ [35.63628,32.75376],
+ [35.63642,32.75325],
+ [35.63615,32.75261],
+ [35.63521,32.75186],
+ [35.63522,32.75065],
+ [35.63448,32.7499],
+ [35.63456,32.74915],
+ [35.63416,32.74846],
+ [35.6341,32.74742],
+ [35.63336,32.74667],
+ [35.63337,32.74598],
+ [35.63385,32.74558],
+ [35.63399,32.74512],
+ [35.63386,32.74454],
+ [35.63352,32.74425],
+ [35.63347,32.74287],
+ [35.63152,32.74113],
+ [35.63139,32.74021],
+ [35.63065,32.73957],
+ [35.63052,32.73848],
+ [35.62851,32.73662],
+ [35.62825,32.73541],
+ [35.62616,32.73361],
+ [35.6261,32.73315],
+ [35.62549,32.73257],
+ [35.62455,32.73233],
+ [35.62442,32.73141],
+ [35.62381,32.73089],
+ [35.62382,32.7302],
+ [35.62355,32.72957],
+ [35.62281,32.72898],
+ [35.62098,32.72891],
+ [35.62071,32.72868],
+ [35.62026,32.72689],
+ [35.61932,32.72597],
+ [35.61919,32.72499],
+ [35.61737,32.72342],
+ [35.61663,32.72307],
+ [35.61624,32.7214],
+ [35.61517,32.7203],
+ [35.6149,32.71955],
+ [35.61423,32.71903],
+ [35.61348,32.7189],
+ [35.61322,32.71787],
+ [35.61181,32.71671],
+ [35.61079,32.71647],
+ [35.60999,32.71554],
+ [35.60945,32.71537],
+ [35.60891,32.7149],
+ [35.60885,32.7145],
+ [35.60824,32.71392],
+ [35.60729,32.71368],
+ [35.60716,32.7131],
+ [35.60656,32.71252],
+ [35.60561,32.71223],
+ [35.60555,32.71188],
+ [35.60488,32.71125],
+ [35.60413,32.71101],
+ [35.60325,32.711],
+ [35.60305,32.71048],
+ [35.60245,32.7099],
+ [35.60109,32.70955],
+ [35.60096,32.70897],
+ [35.60016,32.70816],
+ [35.59941,32.70793],
+ [35.5984,32.70798],
+ [35.59712,32.70705],
+ [35.59727,32.70532],
+ [35.59829,32.70493],
+ [35.59898,32.7043],
+ [35.59945,32.70413],
+ [35.60035,32.7031],
+ [35.60116,32.70299],
+ [35.60184,32.70265],
+ [35.60232,32.70214],
+ [35.60389,32.70111],
+ [35.60403,32.70077],
+ [35.60465,32.70066],
+ [35.60595,32.69963],
+ [35.60744,32.69901],
+ [35.61039,32.6965],
+ [35.6112,32.69639],
+ [35.61216,32.69571],
+ [35.61244,32.69508],
+ [35.61224,32.69404],
+ [35.6136,32.69428],
+ [35.61503,32.69383],
+ [35.61564,32.69326],
+ [35.61579,32.69251],
+ [35.61654,32.69229],
+ [35.61756,32.6912],
+ [35.61865,32.69087],
+ [35.61927,32.69012],
+ [35.62016,32.68984],
+ [35.62153,32.68847],
+ [35.62241,32.68825],
+ [35.62651,32.68511],
+ [35.62726,32.68506],
+ [35.62808,32.68472],
+ [35.62945,32.68358],
+ [35.62972,32.68295],
+ [35.62946,32.68186],
+ [35.62697,32.67977],
+ [35.62685,32.67856],
+ [35.6247,32.6767],
+ [35.6247,32.67613],
+ [35.62525,32.67613],
+ [35.62773,32.67833],
+ [35.62841,32.67857],
+ [35.62888,32.67909],
+ [35.62908,32.67967],
+ [35.62995,32.68019],
+ [35.6313,32.68141],
+ [35.63204,32.68165],
+ [35.63286,32.68142],
+ [35.63381,32.68149],
+ [35.6338,32.68212],
+ [35.63312,32.68269],
+ [35.63277,32.68395],
+ [35.6333,32.68488],
+ [35.63431,32.68557],
+ [35.63526,32.68552],
+ [35.63649,32.68473],
+ [35.63772,32.68353],
+ [35.63813,32.68347],
+ [35.63861,32.68307],
+ [35.63915,32.68302],
+ [35.63949,32.68273],
+ [35.64004,32.68268],
+ [35.64058,32.68222],
+ [35.6416,32.682],
+ [35.64222,32.68143],
+ [35.64298,32.68006],
+ [35.64285,32.67931],
+ [35.64238,32.6789],
+ [35.64239,32.67833],
+ [35.64395,32.67805],
+ [35.64429,32.67776],
+ [35.64511,32.67777],
+ [35.64585,32.67755],
+ [35.64654,32.6768],
+ [35.64655,32.67536],
+ [35.64716,32.67537],
+ [35.64791,32.67589],
+ [35.6479,32.67629],
+ [35.64729,32.67652],
+ [35.64667,32.67709],
+ [35.64653,32.67761],
+ [35.6468,32.67824],
+ [35.64868,32.67969],
+ [35.64963,32.67987],
+ [35.65112,32.67977],
+ [35.65126,32.68012],
+ [35.6528,32.68128],
+ [35.65293,32.68226],
+ [35.65387,32.68295],
+ [35.65407,32.68341],
+ [35.65448,32.68371],
+ [35.65461,32.6844],
+ [35.65521,32.68498],
+ [35.65594,32.68521],
+ [35.65725,32.68518],
+ [35.65793,32.68509],
+ [35.65867,32.68489],
+ [35.65949,32.6842],
+ [35.65957,32.68271],
+ [35.65992,32.68242],
+ [35.66006,32.68173],
+ [35.66088,32.68122],
+ [35.6615,32.68007],
+ [35.66265,32.67974],
+ [35.6636,32.67974],
+ [35.66549,32.68125],
+ [35.66739,32.68109],
+ [35.66806,32.68179],
+ [35.66805,32.68346],
+ [35.66919,32.68444],
+ [35.67102,32.68463],
+ [35.67238,32.68464],
+ [35.67292,32.68447],
+ [35.67462,32.6846],
+ [35.67474,32.68592],
+ [35.67446,32.68626],
+ [35.67439,32.68701],
+ [35.67411,32.68724],
+ [35.67397,32.68781],
+ [35.67247,32.68918],
+ [35.67233,32.68993],
+ [35.67246,32.69039],
+ [35.67286,32.69074],
+ [35.67285,32.69131],
+ [35.67238,32.69131],
+ [35.67157,32.69056],
+ [35.66988,32.69055],
+ [35.6684,32.68921],
+ [35.6682,32.68881],
+ [35.66732,32.68823],
+ [35.66624,32.68828],
+ [35.66555,32.6889],
+ [35.66501,32.68907],
+ [35.66439,32.68976],
+ [35.66391,32.68976],
+ [35.66379,32.68878],
+ [35.66298,32.68808],
+ [35.66278,32.68756],
+ [35.66177,32.68675],
+ [35.65838,32.68672]]]}},
+{"type":"Feature",
+ "properties":{"id":"egypt_adl_gaza","front":"egypt","kind":"line","name":"Armistice Demarcation Line (Egypt-Israel) of 1949, Gaza-Rafah area: Wadi Hasi to Gaza","agreement":"Egypt-Israel General Armistice Agreement","signed":"1949-02-24","place":"Rhodes","document":"S/1264/Corr.1; UNTS vol. 42, No. 654","shown_from":"1949-02-24","accuracy":"about +-0.3 km: the Wadi Hasi mouth and Deir Suneid read off the 1:100,000 sheet (+-0.1 km; georeference rms 8 m), the highway traced on it (96% of the trace on its red fill) and offset 3 km; the turn at Deir Suneid ('in an easterly direction through Deir Suneid and across the highway') is read as the mouth-Deir Suneid direction carried on to the offset line. Cross-check: S/1471's demarcation line (1950) lies on it, by eye within about 0.1 km, between MR 103-100.2 and 107-102.8. The Art. VI.3 Deir Suneid outpost ('on the north side of the Wadi', MR 1075-1090) lies 0.5 km from it.","method":"Art. VI.1 (para. 2.B(i) of the Memorandum of 13 November 1948): from the coast at the mouth of the Wadi Hasi in an easterly direction through Deir Suneid and across the Gaza-Al Majdal Highway to a point 3 km east of the highway, then southerly parallel to the highway. Built on the Survey of Palestine sheet 'Gaza' (georeferenced on its 10-km grid), as far as the highway runs (to Gaza).","sources":["https://documents.un.org/api/symbol/access?s=S/1264/Corr.1&l=en&t=pdf","https://treaties.un.org/doc/publication/UNTS/Volume%2042/v42.pdf","https://search.archives.un.org/memorandum-of-13-november-and-note-of-transmittal-part-iii-re-negev","https://commons.wikimedia.org/wiki/File:Survey_of_Palestine,_Palestine_09-gaza_(FL33122277_2367645).jpg","https://www.un.org/unispal/wp-content/uploads/1950/03/02c98322cf78b99a8525705b004d7b73_s1471.tif","https://library.law.fsu.edu/Digital-Collections/LimitsinSeas/pdf/ibs046.pdf"],"checked":"2026-10-11","status":"draft","outposts_check":[{"point":"Deir Suneid, north side of the Wadi","mr":[107.5,109.0],"kind":"kept","km_from_drawn_line":0.5},{"point":"700 SW of Sa'ad","mr":[105.0,98.2],"kind":"kept","km_from_drawn_line":2.99},{"point":"Sulphur Quarries","mr":[98.7,92.4],"kind":"kept","km_from_drawn_line":8.52},{"point":"Tall-Jamma","mr":[97.2,88.7],"kind":"kept","km_from_drawn_line":12.51},{"point":"Kh al Ma'in","mr":[93.2,82.1],"kind":"kept","km_from_drawn_line":20.2},{"point":"Cemetery (evacuated the day after the next)","mr":[81.6,72.3],"kind":"evacuated","km_from_drawn_line":34.7},{"point":"Hill 79 (evacuated within four weeks)","mr":[104.5,101.7],"kind":"evacuated","km_from_drawn_line":0.47},{"point":"new outpost","mr":[83.6,70.0],"kind":"new","km_from_drawn_line":35.47}],"gap":"Gap: from Gaza (about MR 102.4-100.1) to the Egyptian frontier the line is not drawn. Art. VI.1 says only 'continuing thus to the Egyptian frontier' and no map of the Memorandum or of the agreement was found. Art. VI.3 bounds it: Israel evacuates its outpost at the Cemetery (MR 0816-0723), so that point is inside the line, and new Israeli outposts may be set up at MR 0836-0700, east of it, so the line reaches the frontier south-east of Rafah, between about N 70 and N 72 km. Carrying the highway's bearing on from Gaza reaches the frontier at about MR 077.7-075.6, north of the Cemetery, and is therefore wrong; a 3-km offset of the coast road through Khan Yunis (MR 083.7-084.2) and Rafah (078.1-077.6), carried on its bearing, reaches the frontier near N 73, also north-west of the Cemetery. The Egyptian-held area is not drawn either, since it needs the whole line."},
+ "geometry":{"type":"LineString","coordinates":[[34.49937,31.60588],
+ [34.55562,31.57486],
+ [34.58088,31.56092],
+ [34.57954,31.55796],
+ [34.57855,31.55663],
+ [34.57841,31.55641],
+ [34.57781,31.55434],
+ [34.57733,31.55303],
+ [34.57597,31.55026],
+ [34.57559,31.5482],
+ [34.57415,31.54496],
+ [34.57335,31.54269],
+ [34.57312,31.54212],
+ [34.57264,31.5408],
+ [34.57193,31.53907],
+ [34.57129,31.5351],
+ [34.56954,31.53053],
+ [34.56689,31.5263],
+ [34.5634,31.52254],
+ [34.56295,31.52214],
+ [34.56171,31.52066],
+ [34.56087,31.51988],
+ [34.55498,31.51565],
+ [34.55401,31.51511],
+ [34.54901,31.51284],
+ [34.54361,31.51138],
+ [34.54263,31.51127],
+ [34.54245,31.5112],
+ [34.53907,31.50972],
+ [34.53816,31.50949],
+ [34.53806,31.50944],
+ [34.53684,31.50912],
+ [34.5341,31.5073],
+ [34.53358,31.50706],
+ [34.53141,31.50574],
+ [34.52977,31.50489],
+ [34.52865,31.50433],
+ [34.52701,31.50356],
+ [34.52697,31.50353],
+ [34.52639,31.50326],
+ [34.52465,31.50262],
+ [34.5213,31.50108],
+ [34.51612,31.49962],
+ [34.51591,31.49959],
+ [34.51501,31.49931],
+ [34.51457,31.49925],
+ [34.51371,31.499],
+ [34.51184,31.49876],
+ [34.51096,31.49834],
+ [34.50684,31.49601],
+ [34.50621,31.49575],
+ [34.50446,31.49459],
+ [34.5009,31.49206],
+ [34.4989,31.49107],
+ [34.49863,31.49091]]}},
+{"type":"Feature",
+ "properties":{"id":"egypt_el_auja_dmz","front":"egypt","kind":"zone","name":"El Auja Demilitarized Zone (Egypt-Israel)","agreement":"Egypt-Israel General Armistice Agreement","signed":"1949-02-24","place":"Rhodes","document":"S/1264/Corr.1; UNTS vol. 42, No. 654","shown_from":"1949-02-24","accuracy":"+-0.1 km at the four Art. VIII.2 points; the closing stretch is the 1906 frontier from the Mandate data (about +-1 km; the two frontier points lie 0.26 and 0.78 km from it).","method":"Art. VIII.2: from the frontier 5 km NW of the Rafah-El Auja road crossing (MR 0875-0468) to Khashm El Mamdud (MR 0965-0414), Hill 405 (MR 1078-0285), the frontier 5 km SE of the old railway crossing (MR 0995-0145), and back along the Egypt-Palestine frontier.","sources":["https://documents.un.org/api/symbol/access?s=S/1264/Corr.1&l=en&t=pdf","https://treaties.un.org/doc/publication/UNTS/Volume%2042/v42.pdf","https://commons.wikimedia.org/wiki/File:06_Palestine-_Administrative_divisions.jpg"],"checked":"2026-10-11","status":"draft","points":[{"label":"frontier 5 km NW of the Rafah-El Auja road crossing","mr":[87.5,46.8]},{"label":"Khashm El Mamdud","mr":[96.5,41.4]},{"label":"Hill 405","mr":[107.8,28.5]},{"label":"frontier 5 km SE of the old railway crossing","mr":[99.5,14.5]}],"area_km2":276.0},
+ "geometry":{"type":"Polygon","coordinates":[
+ [[34.44086,30.96133],
+ [34.34623,31.00944],
+ [34.33975,30.99856],
+ [34.34247,30.99512],
+ [34.34315,30.99169],
+ [34.34655,30.98539],
+ [34.34791,30.98424],
+ [34.34927,30.97909],
+ [34.35131,30.97622],
+ [34.35129,30.97107],
+ [34.35334,30.9682],
+ [34.35742,30.96076],
+ [34.35809,30.95732],
+ [34.35946,30.95617],
+ [34.35945,30.95388],
+ [34.3615,30.95159],
+ [34.36285,30.94758],
+ [34.36558,30.94472],
+ [34.36624,30.93727],
+ [34.3676,30.93556],
+ [34.36963,30.92811],
+ [34.37167,30.9241],
+ [34.37166,30.91952],
+ [34.3737,30.91551],
+ [34.37506,30.91494],
+ [34.3771,30.90921],
+ [34.37847,30.90864],
+ [34.37846,30.90635],
+ [34.37982,30.90463],
+ [34.37981,30.90119],
+ [34.38117,30.89947],
+ [34.38184,30.89374],
+ [34.38388,30.88974],
+ [34.38525,30.88916],
+ [34.3866,30.88515],
+ [34.38933,30.88172],
+ [34.38932,30.87943],
+ [34.39204,30.8737],
+ [34.39203,30.86969],
+ [34.39407,30.86511],
+ [34.39612,30.86396],
+ [34.39747,30.86052],
+ [34.40021,30.85881],
+ [34.40361,30.85365],
+ [34.40361,30.85193],
+ [34.40565,30.84964],
+ [34.40565,30.84792],
+ [34.40905,30.84334],
+ [34.41315,30.84162],
+ [34.41382,30.8359],
+ [34.41518,30.8336],
+ [34.41585,30.8273],
+ [34.41721,30.82616],
+ [34.41923,30.81699],
+ [34.424,30.81012],
+ [34.42399,30.80783],
+ [34.42536,30.80669],
+ [34.42876,30.79981],
+ [34.42874,30.79466],
+ [34.43011,30.79408],
+ [34.43283,30.79008],
+ [34.43556,30.78778],
+ [34.43828,30.78206],
+ [34.44101,30.77919],
+ [34.44304,30.77232],
+ [34.44441,30.7706],
+ [34.4444,30.76831],
+ [34.44712,30.7643],
+ [34.44917,30.76316],
+ [34.45053,30.75915],
+ [34.45326,30.75571],
+ [34.45393,30.75285],
+ [34.45734,30.74826],
+ [34.45869,30.74254],
+ [34.4621,30.7391],
+ [34.46278,30.73681],
+ [34.46618,30.73223],
+ [34.46754,30.72822],
+ [34.47026,30.72421],
+ [34.47093,30.71905],
+ [34.4741,30.71891],
+ [34.55991,30.84563],
+ [34.44086,30.96133]]]}},
+{"type":"Feature",
+ "properties":{"id":"egypt_mv1950_demarcation","front":"egypt","kind":"line","name":"Demarcation line as drawn on the signed 1950 modus vivendi map (Gaza-Rafah area)","agreement":"Modus vivendi to the Egypt-Israel General Armistice Agreement","signed":"1950-02-22","place":"El Auja","document":"S/1471","shown_from":"1950-02-22","accuracy":"about +-0.1 km: waypoints read on the drawn dash-dot of the signed 1:20,000 sheets every 0.5-1 km and joined straight (georeference rms 20 m; the dash-dot is about 12 m wide; ink within 3 px along 54%, 89%, 54% of each piece); the three points the text puts on the line are exact. The signed map draws the demarcation line only in pieces: on sheet 1 from its south neatline (N 100) to MR 106.95-102.40 (the text's point; north-east of it the dotted line is zone A's); on sheet 2 from MR 90.05-87.11 to 89.07-85.25, and from MR 87.63-77.31 to 82.74-72.61. North of N 102.6 the 1949 line is not redrawn on the map; between N 85.4 and 77.3 zone C lies against it but no demarcation line is drawn; the two sheets do not cover N 90-100; south-west of MR 82.8-72.6 nothing is drawn. Those stretches are not drawn here.","method":"The modus vivendi of 22 February 1950 (S/1471) sets local patrol zones A, B and C beside the demarcation line and, by its Art. III, does not change either party's position on the Art. VI.1 line; its signed map draws that line (dash-dot, 'Demarcation line'). Drawn here where the map draws it, through waypoints read off the georeferenced sheets. A later drawing of the 1949 line, kept as its own feature and date.","sources":["https://documents.un.org/api/symbol/access?s=S/1471&l=en&t=pdf","https://www.un.org/unispal/wp-content/uploads/1950/03/02c98322cf78b99a8525705b004d7b73_s1471.tif","https://treaties.un.org/doc/Treaties/1950/08/19500814%2004-17%20PM/khan_yunis.pdf"],"checked":"2026-10-11","status":"draft","label_note":"1950 modus vivendi","pieces_on_ink":[0.537,0.893,0.542],"gaps":"The signed map draws the demarcation line only in pieces: on sheet 1 from its south neatline (N 100) to MR 106.95-102.40 (the text's point; north-east of it the dotted line is zone A's); on sheet 2 from MR 90.05-87.11 to 89.07-85.25, and from MR 87.63-77.31 to 82.74-72.61. North of N 102.6 the 1949 line is not redrawn on the map; between N 85.4 and 77.3 zone C lies against it but no demarcation line is drawn; the two sheets do not cover N 90-100; south-west of MR 82.8-72.6 nothing is drawn. Those stretches are not drawn here.","text_points_on_line":[[87.35,76.7],[89.35,85.9],[106.95,102.4]]},
+ "geometry":{"type":"MultiLineString","coordinates":[
+ [[34.49713,
+ 31.4901],
+ [34.49999,
+ 31.49209],
+ [34.5082,
+ 31.49654],
+ [34.5141,
+ 31.4998],
+ [34.52481,
+ 31.50266],
+ [34.53142,
+ 31.50595],
+ [34.53642,
+ 31.50887],
+ [34.54643,
+ 31.51207]],
+ [[34.36976,
+ 31.37307],
+ [34.36644,
+ 31.37031],
+ [34.3644,
+ 31.36777],
+ [34.36307,
+ 31.36481],
+ [34.36248,
+ 31.36218],
+ [34.36121,
+ 31.35986],
+ [34.35956,
+ 31.35631]],
+ [[34.34543,
+ 31.28447],
+ [34.34222,
+ 31.27908],
+ [34.33824,
+ 31.27096],
+ [34.33507,
+ 31.26616],
+ [34.32954,
+ 31.26056],
+ [34.32475,
+ 31.25667],
+ [34.31812,
+ 31.25225],
+ [34.30926,
+ 31.24881],
+ [34.30213,
+ 31.24576],
+ [34.29415,
+ 31.24186]]]}},
+{"type":"Feature",
+ "properties":{"id":"egypt_mv1950_zone_lines","front":"egypt","kind":"line","name":"Zone A and zone C lines of the 1950 modus vivendi (Gaza-Rafah area)","agreement":"Modus vivendi to the Egypt-Israel General Armistice Agreement","signed":"1950-02-22","place":"El Auja","document":"S/1471","shown_from":"1950-02-22","accuracy":"+-0.1 km (the MR precision): straight lines between the text's points, as Art. I.1 describes them; on the signed map they lie on the drawn zone lines to within its georeference (about 20 m).","method":"Art. I.1(a): zone A between the demarcation line and the line MR 10170-11160, 10690-10740 (the railway crossing), 10795-10640, 10900-10565, 10880-10480, 10810-10410, to the demarcation line at 10695-10240; (c): zone C between the demarcation line and the line MR 08935-08590, 09035-07970, 08970-07790, to the demarcation line at 08735-07670. Zone A was patrolled by Israel, zones B and C by Egypt (Art. II). Zone B ('between the line of (a) and the Egyptian fighting line north of Beit Lahaya') has no points in the text.","sources":["https://documents.un.org/api/symbol/access?s=S/1471&l=en&t=pdf","https://www.un.org/unispal/wp-content/uploads/1950/03/02c98322cf78b99a8525705b004d7b73_s1471.tif","https://treaties.un.org/doc/Treaties/1950/08/19500814%2004-17%20PM/khan_yunis.pdf"],"checked":"2026-10-11","status":"draft","label_note":"1950 modus vivendi","zone_a":[[101.7,111.6],[106.9,107.4],[107.95,106.4],[109.0,105.65],[108.8,104.8],[108.1,104.1],[106.95,102.4]],"zone_c":[[89.35,85.9],[90.35,79.7],[89.7,77.9],[87.35,76.7]]},
+ "geometry":{"type":"MultiLineString","coordinates":[
+ [[34.49053,
+ 31.59473],
+ [34.54558,
+ 31.55715],
+ [34.55671,
+ 31.54819],
+ [34.56781,
+ 31.54148],
+ [34.56576,
+ 31.53381],
+ [34.55843,
+ 31.52746],
+ [34.54643,
+ 31.51207]],
+ [[34.36248,
+ 31.36218],
+ [34.37349,
+ 31.30634],
+ [34.3668,
+ 31.29006],
+ [34.34222,
+ 31.27908]]]}},
+{"type":"Feature",
+ "properties":{"id":"jordan_adl_iraqi_c_east","front":"jordan","kind":"line","name":"Armistice Demarcation Line (Jordan-Israel), line A, Zubeiba to the Jordan (Art. VI.3(c), by 17 July 1949)","agreement":"Hashemite Jordan Kingdom-Israel General Armistice Agreement","signed":"1949-04-03","place":"Rhodes","document":"S/1302/Rev.1; UNTS vol. 42, No. 656","shown_from":"1949-07-17","accuracy":"LOW ACCURACY, about +-1-1.5 km: traced from a low-resolution copy of the signed map 1 (1:250,000; about 51 m a pixel; the pen line is about 5 px, 250 m, wide), georeferenced on town symbols (north sheet leave-one-out rms 0.77 km, max 1.44; south sheet 1.47 km, max 2.61); 94% of the trace on the pen ink. To be replaced from a full-resolution scan.","method":"Art. VI.2: line A on map 1 (the sector held by Iraqi forces), traced from the map; dated by Art. VI.3's stages, shown from each deadline (until then the existing military lines held; they are not drawn). Art. VI.3 stages for line A, as read here (the article names areas, not points): (a) 'In the area west of the road from Baqa to Jaljulia, and thence to the east of Kafr Qasim: within five weeks' = line A from Baqa south to Kafr Qasim, by 8 May 1949; (b) 'In the area of Wadi Ara north of the line from Baqa to Zubeiba: within seven weeks' = line A from Zubeiba round Wadi Ara to Baqa, by 22 May 1949; (c) 'In all other areas of the Iraqi sector: within fifteen weeks' = line A east of Zubeiba to the Jordan and from Kafr Qasim to Kh Deir Arab (MR 1510-1574), by 17 July 1949. Split at the trace's points nearest Baqa al-Gharbiyye, Zubeiba (Wikidata 'Zububa') and Kafr Qasim. The dates are deadlines ('within ... weeks'; 'pending which the existing military lines may be maintained'): each stretch is shown from its deadline, a convention; the actual handover dates (May-July 1949) are not researched.","sources":["https://treaties.un.org/doc/publication/UNTS/Volume%2042/v42.pdf","https://www.un.org/unispal/wp-content/uploads/1949/04/f03d55e48f77ab698525643b00608d34_Arm_1949.jpg","https://www.wikidata.org/"],"checked":"2026-10-11","status":"draft","source_quality":"low_res_scan","source_quality_note":"Traced from the UNISPAL copy of map 1 (3119 x 8630 px); to be replaced from a full-resolution scan.","stage":"Art. VI.3(c), by 17 July 1949","sector_cuts_km":{"kh_deir_arab_km":1.08,"dead_sea_point_km":2.13}},
+ "geometry":{"type":"LineString","coordinates":[[35.55773,32.38885],
+ [35.53714,32.39173],
+ [35.53064,32.39547],
+ [35.51385,32.39694],
+ [35.51006,32.40019],
+ [35.50572,32.40114],
+ [35.48676,32.40354],
+ [35.48297,32.4068],
+ [35.47484,32.40776],
+ [35.45967,32.41292],
+ [35.45479,32.41664],
+ [35.45317,32.41572],
+ [35.44504,32.41899],
+ [35.4407,32.41901],
+ [35.42391,32.43528],
+ [35.42121,32.44362],
+ [35.42121,32.45241],
+ [35.41905,32.4552],
+ [35.41906,32.46491],
+ [35.41526,32.47141],
+ [35.41527,32.47835],
+ [35.41202,32.4816],
+ [35.41039,32.48114],
+ [35.40931,32.48763],
+ [35.40118,32.49784],
+ [35.38925,32.5076],
+ [35.38491,32.51363],
+ [35.36646,32.51602],
+ [35.36266,32.51927],
+ [35.33172,32.51891],
+ [35.32196,32.51756],
+ [35.31816,32.51849],
+ [35.29373,32.51626],
+ [35.29048,32.51349],
+ [35.28668,32.5172],
+ [35.28125,32.51537],
+ [35.26116,32.52699],
+ [35.24921,32.53721],
+ [35.24921,32.53767],
+ [35.24921,32.53813],
+ [35.24921,32.53906],
+ [35.2465,32.53814],
+ [35.23128,32.55345],
+ [35.22368,32.55439],
+ [35.21933,32.55302],
+ [35.2168,32.55059]]}},
+{"type":"Feature",
+ "properties":{"id":"jordan_adl_iraqi_b_wadi_ara","front":"jordan","kind":"line","name":"Armistice Demarcation Line (Jordan-Israel), line A, Wadi Ara, Zubeiba to Baqa (Art. VI.3(b), by 22 May 1949)","agreement":"Hashemite Jordan Kingdom-Israel General Armistice Agreement","signed":"1949-04-03","place":"Rhodes","document":"S/1302/Rev.1; UNTS vol. 42, No. 656","shown_from":"1949-05-22","accuracy":"LOW ACCURACY, about +-1-1.5 km: traced from a low-resolution copy of the signed map 1 (1:250,000; about 51 m a pixel; the pen line is about 5 px, 250 m, wide), georeferenced on town symbols (north sheet leave-one-out rms 0.77 km, max 1.44; south sheet 1.47 km, max 2.61); 94% of the trace on the pen ink. To be replaced from a full-resolution scan.","method":"Art. VI.2: line A on map 1 (the sector held by Iraqi forces), traced from the map; dated by Art. VI.3's stages, shown from each deadline (until then the existing military lines held; they are not drawn). Art. VI.3 stages for line A, as read here (the article names areas, not points): (a) 'In the area west of the road from Baqa to Jaljulia, and thence to the east of Kafr Qasim: within five weeks' = line A from Baqa south to Kafr Qasim, by 8 May 1949; (b) 'In the area of Wadi Ara north of the line from Baqa to Zubeiba: within seven weeks' = line A from Zubeiba round Wadi Ara to Baqa, by 22 May 1949; (c) 'In all other areas of the Iraqi sector: within fifteen weeks' = line A east of Zubeiba to the Jordan and from Kafr Qasim to Kh Deir Arab (MR 1510-1574), by 17 July 1949. Split at the trace's points nearest Baqa al-Gharbiyye, Zubeiba (Wikidata 'Zububa') and Kafr Qasim. The dates are deadlines ('within ... weeks'; 'pending which the existing military lines may be maintained'): each stretch is shown from its deadline, a convention; the actual handover dates (May-July 1949) are not researched.","sources":["https://treaties.un.org/doc/publication/UNTS/Volume%2042/v42.pdf","https://www.un.org/unispal/wp-content/uploads/1949/04/f03d55e48f77ab698525643b00608d34_Arm_1949.jpg","https://www.wikidata.org/"],"checked":"2026-10-11","status":"draft","source_quality":"low_res_scan","source_quality_note":"Traced from the UNISPAL copy of map 1 (3119 x 8630 px); to be replaced from a full-resolution scan.","stage":"Art. VI.3(b), by 22 May 1949","sector_cuts_km":{"kh_deir_arab_km":1.08,"dead_sea_point_km":2.13}},
+ "geometry":{"type":"LineString","coordinates":[[35.2168,32.55059],
+ [35.21066,32.54471],
+ [35.20198,32.5401],
+ [35.1933,32.53827],
+ [35.19601,32.53549],
+ [35.17704,32.52072],
+ [35.1662,32.51426],
+ [35.16403,32.51473],
+ [35.15644,32.50919],
+ [35.13638,32.50136],
+ [35.13096,32.49767],
+ [35.12608,32.49675],
+ [35.12067,32.49214],
+ [35.12014,32.48705],
+ [35.11525,32.48983],
+ [35.10223,32.48893],
+ [35.08869,32.47738],
+ [35.08924,32.47506],
+ [35.09305,32.47228],
+ [35.08763,32.47044],
+ [35.08545,32.47322],
+ [35.08383,32.47183],
+ [35.07842,32.46582],
+ [35.07519,32.45889],
+ [35.06059,32.44363],
+ [35.06168,32.44271],
+ [35.05628,32.43577],
+ [35.05469,32.42235],
+ [35.05307,32.42004],
+ [35.05307,32.42003]]}},
+{"type":"Feature",
+ "properties":{"id":"jordan_adl_iraqi_a_triangle","front":"jordan","kind":"line","name":"Armistice Demarcation Line (Jordan-Israel), line A, Baqa to Kafr Qasim (Art. VI.3(a), by 8 May 1949)","agreement":"Hashemite Jordan Kingdom-Israel General Armistice Agreement","signed":"1949-04-03","place":"Rhodes","document":"S/1302/Rev.1; UNTS vol. 42, No. 656","shown_from":"1949-05-08","accuracy":"LOW ACCURACY, about +-1-1.5 km: traced from a low-resolution copy of the signed map 1 (1:250,000; about 51 m a pixel; the pen line is about 5 px, 250 m, wide), georeferenced on town symbols (north sheet leave-one-out rms 0.77 km, max 1.44; south sheet 1.47 km, max 2.61); 94% of the trace on the pen ink. To be replaced from a full-resolution scan.","method":"Art. VI.2: line A on map 1 (the sector held by Iraqi forces), traced from the map; dated by Art. VI.3's stages, shown from each deadline (until then the existing military lines held; they are not drawn). Art. VI.3 stages for line A, as read here (the article names areas, not points): (a) 'In the area west of the road from Baqa to Jaljulia, and thence to the east of Kafr Qasim: within five weeks' = line A from Baqa south to Kafr Qasim, by 8 May 1949; (b) 'In the area of Wadi Ara north of the line from Baqa to Zubeiba: within seven weeks' = line A from Zubeiba round Wadi Ara to Baqa, by 22 May 1949; (c) 'In all other areas of the Iraqi sector: within fifteen weeks' = line A east of Zubeiba to the Jordan and from Kafr Qasim to Kh Deir Arab (MR 1510-1574), by 17 July 1949. Split at the trace's points nearest Baqa al-Gharbiyye, Zubeiba (Wikidata 'Zububa') and Kafr Qasim. The dates are deadlines ('within ... weeks'; 'pending which the existing military lines may be maintained'): each stretch is shown from its deadline, a convention; the actual handover dates (May-July 1949) are not researched.","sources":["https://treaties.un.org/doc/publication/UNTS/Volume%2042/v42.pdf","https://www.un.org/unispal/wp-content/uploads/1949/04/f03d55e48f77ab698525643b00608d34_Arm_1949.jpg","https://www.wikidata.org/"],"checked":"2026-10-11","status":"draft","source_quality":"low_res_scan","source_quality_note":"Traced from the UNISPAL copy of map 1 (3119 x 8630 px); to be replaced from a full-resolution scan.","stage":"Art. VI.3(a), by 8 May 1949","sector_cuts_km":{"kh_deir_arab_km":1.08,"dead_sea_point_km":2.13}},
+ "geometry":{"type":"LineString","coordinates":[[35.05307,32.42003],
+ [35.05257,32.4057],
+ [35.05041,32.40385],
+ [35.05097,32.3983],
+ [35.04665,32.39275],
+ [35.04505,32.38673],
+ [35.04455,32.37331],
+ [35.03969,32.36915],
+ [35.03808,32.3636],
+ [35.0289,32.35528],
+ [35.02621,32.34881],
+ [35.02404,32.34881],
+ [35.01811,32.3428],
+ [35.01705,32.33539],
+ [35.01434,32.33401],
+ [35.01167,32.32568],
+ [35.00954,32.31411],
+ [35.00907,32.29468],
+ [34.99989,32.28728],
+ [34.9956,32.27803],
+ [34.99616,32.27294],
+ [35.007,32.26877],
+ [35.01511,32.27061],
+ [35.01567,32.26552],
+ [35.02433,32.26459],
+ [35.02439,32.24839],
+ [35.02386,32.24561],
+ [35.01792,32.24053],
+ [35.01632,32.23498],
+ [35.005,32.22481],
+ [35.00121,32.22481],
+ [34.99582,32.21972],
+ [34.99593,32.18918],
+ [34.99215,32.18964],
+ [34.98999,32.18826],
+ [34.99055,32.1827],
+ [34.99218,32.18131],
+ [34.99434,32.18178],
+ [34.99597,32.17946],
+ [34.996,32.17067],
+ [34.99169,32.16836],
+ [34.98141,32.16883],
+ [34.97603,32.16235],
+ [34.97605,32.1568],
+ [34.98257,32.14985],
+ [34.9826,32.14245],
+ [34.9875,32.13273],
+ [34.98751,32.12856],
+ [34.98968,32.12671],
+ [34.98922,32.11389]]}},
+{"type":"Feature",
+ "properties":{"id":"jordan_adl_iraqi_c_south","front":"jordan","kind":"line","name":"Armistice Demarcation Line (Jordan-Israel), line A, Kafr Qasim to Kh Deir Arab (Art. VI.3(c), by 17 July 1949)","agreement":"Hashemite Jordan Kingdom-Israel General Armistice Agreement","signed":"1949-04-03","place":"Rhodes","document":"S/1302/Rev.1; UNTS vol. 42, No. 656","shown_from":"1949-07-17","accuracy":"LOW ACCURACY, about +-1-1.5 km: traced from a low-resolution copy of the signed map 1 (1:250,000; about 51 m a pixel; the pen line is about 5 px, 250 m, wide), georeferenced on town symbols (north sheet leave-one-out rms 0.77 km, max 1.44; south sheet 1.47 km, max 2.61); 94% of the trace on the pen ink. To be replaced from a full-resolution scan.","method":"Art. VI.2: line A on map 1 (the sector held by Iraqi forces), traced from the map; dated by Art. VI.3's stages, shown from each deadline (until then the existing military lines held; they are not drawn). Art. VI.3 stages for line A, as read here (the article names areas, not points): (a) 'In the area west of the road from Baqa to Jaljulia, and thence to the east of Kafr Qasim: within five weeks' = line A from Baqa south to Kafr Qasim, by 8 May 1949; (b) 'In the area of Wadi Ara north of the line from Baqa to Zubeiba: within seven weeks' = line A from Zubeiba round Wadi Ara to Baqa, by 22 May 1949; (c) 'In all other areas of the Iraqi sector: within fifteen weeks' = line A east of Zubeiba to the Jordan and from Kafr Qasim to Kh Deir Arab (MR 1510-1574), by 17 July 1949. Split at the trace's points nearest Baqa al-Gharbiyye, Zubeiba (Wikidata 'Zububa') and Kafr Qasim. The dates are deadlines ('within ... weeks'; 'pending which the existing military lines may be maintained'): each stretch is shown from its deadline, a convention; the actual handover dates (May-July 1949) are not researched.","sources":["https://treaties.un.org/doc/publication/UNTS/Volume%2042/v42.pdf","https://www.un.org/unispal/wp-content/uploads/1949/04/f03d55e48f77ab698525643b00608d34_Arm_1949.jpg","https://www.wikidata.org/"],"checked":"2026-10-11","status":"draft","source_quality":"low_res_scan","source_quality_note":"Traced from the UNISPAL copy of map 1 (3119 x 8630 px); to be replaced from a full-resolution scan.","stage":"Art. VI.3(c), by 17 July 1949","sector_cuts_km":{"kh_deir_arab_km":1.08,"dead_sea_point_km":2.13}},
+ "geometry":{"type":"LineString","coordinates":[[34.98922,32.11389],
+ [34.98871,32.09941],
+ [34.98925,32.09894],
+ [34.98979,32.09848],
+ [34.99033,32.09802],
+ [34.99087,32.09755],
+ [34.98871,32.09756],
+ [34.98765,32.09247],
+ [34.98612,32.07072],
+ [34.98992,32.06516],
+ [34.99587,32.06146],
+ [34.9954,32.04294],
+ [34.99766,32.0161],
+ [34.99604,32.01564],
+ [34.99606,32.01055],
+ [34.99768,32.01009]]}},
+{"type":"Feature",
+ "properties":{"id":"jordan_adl_a_latrun","front":"jordan","kind":"line","name":"Armistice Demarcation Line (Jordan-Israel), Kh Deir Arab to Jerusalem (Latrun)","agreement":"Hashemite Jordan Kingdom-Israel General Armistice Agreement","signed":"1949-04-03","place":"Rhodes","document":"S/1302/Rev.1; UNTS vol. 42, No. 656","shown_from":"1949-04-03","accuracy":"LOW ACCURACY, about +-1-1.5 km: traced from a low-resolution copy of the signed map 1 (1:250,000; about 51 m a pixel; the pen line is about 5 px, 250 m, wide), georeferenced on town symbols (north sheet leave-one-out rms 0.77 km, max 1.44; south sheet 1.47 km, max 2.61); 95% of the trace on the pen ink. To be replaced from a full-resolution scan.","method":"Art. V.1(a): from Kh Deir Arab (MR 1510-1574; line A cut at the trace point nearest it) to the northern end of the Jerusalem lines, the truce lines as certified by UNTSO, as drawn on map 1; at Latrun the trace follows the outer drawn loop (the two lines and the no-man's-land between them are not legible at this resolution); it stops at Jerusalem's western edge.","sources":["https://treaties.un.org/doc/publication/UNTS/Volume%2042/v42.pdf","https://www.un.org/unispal/wp-content/uploads/1949/04/f03d55e48f77ab698525643b00608d34_Arm_1949.jpg","https://www.wikidata.org/"],"checked":"2026-10-11","status":"draft","source_quality":"low_res_scan","source_quality_note":"Traced from the UNISPAL copy of map 1 (3119 x 8630 px); to be replaced from a full-resolution scan."},
+ "geometry":{"type":"LineString","coordinates":[[34.99768,32.01009],
+ [34.99612,31.99482],
+ [34.99618,31.97816],
+ [34.9989,31.97399],
+ [34.99352,31.96844],
+ [34.99087,31.95687],
+ [34.99628,31.95224],
+ [34.99686,31.94113],
+ [35.00227,31.93743],
+ [35.0012,31.93373],
+ [35.00391,31.93141],
+ [35.01308,31.92955],
+ [35.01633,31.92677],
+ [35.03034,31.92722],
+ [35.03467,31.92352],
+ [35.03632,31.91472],
+ [35.03578,31.91426],
+ [35.03524,31.9138],
+ [35.03417,31.91287],
+ [35.0347,31.91333],
+ [35.03524,31.9138],
+ [35.03578,31.91426],
+ [35.03795,31.91102],
+ [35.03809,31.86659],
+ [35.03325,31.86382],
+ [35.02894,31.86382],
+ [35.02464,31.86012],
+ [35.02465,31.85735],
+ [35.02196,31.85735],
+ [35.0198,31.8592],
+ [35.0171,31.85874],
+ [35.0144,31.86106],
+ [35.00039,31.86107],
+ [34.98482,31.8472],
+ [34.98104,31.84859],
+ [34.98159,31.84674],
+ [34.97783,31.84396],
+ [34.9676,31.84165],
+ [34.96764,31.83193],
+ [34.98165,31.83146],
+ [34.98543,31.82822],
+ [35.01936,31.8282],
+ [35.02098,31.82958],
+ [35.02475,31.82958],
+ [35.0285,31.83513],
+ [35.03169,31.84716],
+ [35.04298,31.85594],
+ [35.05159,31.85824],
+ [35.06078,31.8499],
+ [35.07479,31.84942],
+ [35.0818,31.84617],
+ [35.08072,31.84525],
+ [35.08288,31.8434],
+ [35.09367,31.83736],
+ [35.10229,31.83735],
+ [35.10769,31.8341],
+ [35.12008,31.83408],
+ [35.12546,31.835],
+ [35.13084,31.83823],
+ [35.13731,31.83822],
+ [35.1427,31.83404],
+ [35.15509,31.83402],
+ [35.16318,31.8303],
+ [35.18311,31.82933],
+ [35.1912,31.82284],
+ [35.19713,31.8219],
+ [35.2063,31.81447]]}},
+{"type":"Feature",
+ "properties":{"id":"jordan_adl_bc_south","front":"jordan","kind":"line","name":"Armistice Demarcation Line (Jordan-Israel), Jerusalem to the Dead Sea (line B, Hebron-Dead Sea)","agreement":"Hashemite Jordan Kingdom-Israel General Armistice Agreement","signed":"1949-04-03","place":"Rhodes","document":"S/1302/Rev.1; UNTS vol. 42, No. 656","shown_from":"1949-04-03","accuracy":"LOW ACCURACY, about +-1-2 km: traced from a low-resolution copy of the signed map 1 (1:250,000; about 51 m a pixel; the pen line is about 5 px, 250 m, wide), georeferenced on town symbols (north sheet leave-one-out rms 0.77 km, max 1.44; south sheet 1.47 km, max 2.61); 87% of the trace on the pen ink. To be replaced from a full-resolution scan.","method":"Art. V.1(b)-(c): from Jerusalem's southern edge west of Bethlehem, down past Beit Jibrin and round to the Dead Sea north of Ein Gedi and on to the Dead Sea point MR 1925-0958, where sector (d) begins (cut at the trace point nearest it), as drawn on map 1 (line B marked in the Hebron-Dead Sea sector); where the Jerusalem lines end and line B begins is not legible, so the stretch is one feature.","sources":["https://treaties.un.org/doc/publication/UNTS/Volume%2042/v42.pdf","https://www.un.org/unispal/wp-content/uploads/1949/04/f03d55e48f77ab698525643b00608d34_Arm_1949.jpg","https://www.wikidata.org/"],"checked":"2026-10-11","status":"draft","source_quality":"low_res_scan","source_quality_note":"Traced from the UNISPAL copy of map 1 (3119 x 8630 px); to be replaced from a full-resolution scan."},
+ "geometry":{"type":"LineString","coordinates":[[35.17789,31.73632],
+ [35.17573,31.74003],
+ [35.1725,31.74004],
+ [35.16713,31.73496],
+ [35.17092,31.72523],
+ [35.17738,31.72105],
+ [35.17578,31.71504],
+ [35.16986,31.71459],
+ [35.16825,31.71228],
+ [35.16502,31.71229],
+ [35.15856,31.71554],
+ [35.15533,31.71416],
+ [35.14726,31.7151],
+ [35.14189,31.71187],
+ [35.1236,31.71236],
+ [35.12038,31.70728],
+ [35.10801,31.7073],
+ [35.09941,31.70268],
+ [35.09083,31.69529],
+ [35.08007,31.69392],
+ [35.07416,31.69115],
+ [35.06504,31.68376],
+ [35.06559,31.68144],
+ [35.06398,31.67959],
+ [35.06075,31.68145],
+ [35.05483,31.68145],
+ [35.04732,31.67498],
+ [35.04248,31.67499],
+ [35.03766,31.6699],
+ [35.01884,31.66761],
+ [34.9974,31.64911],
+ [34.99688,31.64541],
+ [34.98351,31.62783],
+ [34.96798,31.61211],
+ [34.96641,31.60331],
+ [34.95357,31.58758],
+ [34.95045,31.56444],
+ [34.9467,31.56121],
+ [34.94564,31.55704],
+ [34.94627,31.53621],
+ [34.94252,31.53298],
+ [34.94415,31.5302],
+ [34.94037,31.5013],
+ [34.93666,31.49858],
+ [34.93564,31.4922],
+ [34.93037,31.48402],
+ [34.92085,31.47541],
+ [34.91879,31.46675],
+ [34.91037,31.45312],
+ [34.89509,31.43222],
+ [34.8898,31.42769],
+ [34.88672,31.41356],
+ [34.87828,31.40403],
+ [34.8751,31.40268],
+ [34.87568,31.39629],
+ [34.87362,31.38762],
+ [34.87151,31.38536],
+ [34.87155,31.37988],
+ [34.90153,31.35546],
+ [34.90845,31.35404],
+ [34.91967,31.34711],
+ [34.92178,31.34892],
+ [34.92175,31.35303],
+ [34.92494,31.35392],
+ [34.92497,31.3489],
+ [34.92818,31.34613],
+ [34.94573,31.346],
+ [34.94943,31.34917],
+ [34.9691,31.34948],
+ [34.97334,31.35264],
+ [35.00524,31.3533],
+ [35.04084,31.35666],
+ [35.12593,31.35638],
+ [35.12752,31.35774],
+ [35.13125,31.35588],
+ [35.14667,31.35574],
+ [35.1642,31.3606],
+ [35.17058,31.36054],
+ [35.17588,31.3646],
+ [35.19343,31.36443],
+ [35.20672,31.36659],
+ [35.21308,31.36973],
+ [35.22531,31.37189],
+ [35.23115,31.37457],
+ [35.23645,31.37909],
+ [35.23853,31.39048],
+ [35.25024,31.38991],
+ [35.25555,31.39168],
+ [35.25554,31.39442],
+ [35.27469,31.39423],
+ [35.27468,31.39788],
+ [35.27998,31.40331],
+ [35.27943,31.40743],
+ [35.28527,31.41239],
+ [35.29058,31.4137],
+ [35.32562,31.44211],
+ [35.33093,31.44342],
+ [35.35589,31.46462],
+ [35.36439,31.47046],
+ [35.36652,31.47044],
+ [35.38778,31.4871],
+ [35.40642,31.48781],
+ [35.41228,31.48592],
+ [35.42666,31.48576],
+ [35.42826,31.48437],
+ [35.45701,31.48404],
+ [35.46021,31.48218],
+ [35.46394,31.48213],
+ [35.46607,31.47982],
+ [35.46609,31.46613],
+ [35.4693,31.45741],
+ [35.46931,31.45403]]}},
+{"type":"Feature",
+ "properties":{"id":"jordan_adl_d_arava","front":"jordan","kind":"line","name":"Armistice Demarcation Line (Jordan-Israel), the Dead Sea to the Gulf of Aqaba","agreement":"Hashemite Jordan Kingdom-Israel General Armistice Agreement","signed":"1949-04-03","place":"Rhodes","document":"S/1302/Rev.1; UNTS vol. 42, No. 656","shown_from":"1949-04-03","accuracy":"LOW ACCURACY, about +-1.5-2.5 km, up to about 3 km at the Gulf of Aqaba: traced from a low-resolution copy of the signed map 1 (1:250,000; about 51 m a pixel; the pen line is about 5 px, 250 m, wide), georeferenced on town symbols (north sheet leave-one-out rms 0.77 km, max 1.44; south sheet 1.47 km, max 2.61); 72% of the trace on the pen ink. To be replaced from a full-resolution scan.","method":"Art. V.1(d): from the Dead Sea (MR 1925-0958) to the southernmost tip of Palestine, the positions surveyed by UN observers in March 1949, as drawn on map 1 (through the Dead Sea and down the Wadi Araba).","sources":["https://treaties.un.org/doc/publication/UNTS/Volume%2042/v42.pdf","https://www.un.org/unispal/wp-content/uploads/1949/04/f03d55e48f77ab698525643b00608d34_Arm_1949.jpg","https://www.wikidata.org/"],"checked":"2026-10-11","status":"draft","source_quality":"low_res_scan","source_quality_note":"Traced from the UNISPAL copy of map 1 (3119 x 8630 px); to be replaced from a full-resolution scan.","check_against_mandate_frontier_km":{"median":0.415,"max":3.06,"note":"trace points south of N 66 (the Arava) to the Mandate frontier"}},
+ "geometry":{"type":"LineString","coordinates":[[35.46931,31.45403],
+ [35.46936,31.41677],
+ [35.46777,31.41542],
+ [35.4699,31.41402],
+ [35.46991,31.40946],
+ [35.46463,31.38394],
+ [35.45986,31.37167],
+ [35.4572,31.36942],
+ [35.45403,31.35941],
+ [35.45084,31.3567],
+ [35.45085,31.35214],
+ [35.44555,31.34535],
+ [35.4429,31.33716],
+ [35.43388,31.3295],
+ [35.43389,31.32448],
+ [35.41162,31.29641],
+ [35.41375,31.29365],
+ [35.40898,31.29142],
+ [35.40634,31.28232],
+ [35.39998,31.27691],
+ [35.39736,31.25913],
+ [35.39471,31.25459],
+ [35.39631,31.25229],
+ [35.39314,31.2473],
+ [35.39371,31.23131],
+ [35.39637,31.22672],
+ [35.39799,31.21482],
+ [35.40225,31.21249],
+ [35.40545,31.20378],
+ [35.41344,31.1941],
+ [35.42992,31.18022],
+ [35.43206,31.17197],
+ [35.44164,31.15999],
+ [35.44484,31.15036],
+ [35.44749,31.14759],
+ [35.45071,31.13248],
+ [35.45128,31.10508],
+ [35.4497,31.10327],
+ [35.44866,31.09141],
+ [35.43968,31.06913],
+ [35.43492,31.06645],
+ [35.43493,31.06051],
+ [35.42487,31.0524],
+ [35.4233,31.04375],
+ [35.41907,31.04014],
+ [35.41538,31.03059],
+ [35.40956,31.02381],
+ [35.40904,31.0197],
+ [35.40534,31.01655],
+ [35.40484,31.0024],
+ [35.40222,30.99238],
+ [35.40225,30.97868],
+ [35.39646,30.96321],
+ [35.39117,30.95825],
+ [35.39225,30.94819],
+ [35.38803,30.94276],
+ [35.38699,30.93729],
+ [35.38435,30.93366],
+ [35.37484,30.92418],
+ [35.37273,30.9242],
+ [35.37326,30.92054],
+ [35.36745,30.91558],
+ [35.36641,30.91194],
+ [35.36166,30.90651],
+ [35.36115,30.89921],
+ [35.34849,30.88428],
+ [35.34691,30.87973],
+ [35.33901,30.86931],
+ [35.33796,30.86429],
+ [35.3348,30.86159],
+ [35.33165,30.85294],
+ [35.33114,30.84564],
+ [35.32956,30.84429],
+ [35.3296,30.82967],
+ [35.33333,30.82141],
+ [35.33335,30.81411],
+ [35.30592,30.7943],
+ [35.30647,30.78699],
+ [35.30226,30.78292],
+ [35.29596,30.76883],
+ [35.29441,30.75971],
+ [35.29451,30.7282],
+ [35.29188,30.72549],
+ [35.29085,30.71728],
+ [35.28875,30.71547],
+ [35.28771,30.70955],
+ [35.27983,30.69912],
+ [35.27878,30.69502],
+ [35.27143,30.68414],
+ [35.27092,30.68003],
+ [35.26513,30.67324],
+ [35.26409,30.6696],
+ [35.25619,30.66328],
+ [35.25621,30.65872],
+ [35.2499,30.65284],
+ [35.24886,30.64783],
+ [35.2352,30.63152],
+ [35.22836,30.62702],
+ [35.22891,30.62291],
+ [35.22052,30.60975],
+ [35.21844,30.60246],
+ [35.21423,30.5993],
+ [35.21372,30.59383],
+ [35.20953,30.58839],
+ [35.20747,30.57608],
+ [35.20432,30.57246],
+ [35.20436,30.56378],
+ [35.20122,30.55787],
+ [35.20126,30.54874],
+ [35.20391,30.54643],
+ [35.20233,30.54599],
+ [35.19923,30.53094],
+ [35.1966,30.52869],
+ [35.19401,30.51958],
+ [35.19191,30.51731],
+ [35.19148,30.4954],
+ [35.18626,30.48403],
+ [35.18524,30.47582],
+ [35.17947,30.47039],
+ [35.17689,30.45763],
+ [35.16016,30.4313],
+ [35.16023,30.41577],
+ [35.16288,30.41346],
+ [35.16446,30.4139],
+ [35.16236,30.41255],
+ [35.16294,30.39976],
+ [35.17145,30.38278],
+ [35.1831,30.3676],
+ [35.18843,30.35293],
+ [35.18745,30.3365],
+ [35.17802,30.32563],
+ [35.17438,30.31653],
+ [35.16495,30.30794],
+ [35.16662,30.28874],
+ [35.16246,30.27965],
+ [35.162,30.26595],
+ [35.1578,30.26325],
+ [35.15785,30.25274],
+ [35.15,30.24505],
+ [35.14638,30.23321],
+ [35.14748,30.22406],
+ [35.15065,30.21947],
+ [35.1507,30.20988],
+ [35.1544,30.20619],
+ [35.15602,30.1975],
+ [35.16079,30.18786],
+ [35.16083,30.17872],
+ [35.16294,30.17688],
+ [35.16298,30.17003],
+ [35.16509,30.16727],
+ [35.16618,30.15812],
+ [35.16883,30.15307],
+ [35.16886,30.14622],
+ [35.17204,30.14025],
+ [35.17314,30.13019],
+ [35.17473,30.1279],
+ [35.17477,30.11876],
+ [35.16797,30.11289],
+ [35.16746,30.10924],
+ [35.16171,30.10427],
+ [35.16172,30.10244],
+ [35.1544,30.09657],
+ [35.15442,30.09201],
+ [35.14502,30.0825],
+ [35.14348,30.07612],
+ [35.13667,30.07299],
+ [35.12936,30.0662],
+ [35.12726,30.06622],
+ [35.12517,30.06304],
+ [35.1252,30.05848],
+ [35.12102,30.0544],
+ [35.12105,30.04847],
+ [35.11845,30.04484],
+ [35.11846,30.0421],
+ [35.11272,30.03667],
+ [35.11169,30.03257],
+ [35.10491,30.02441],
+ [35.10348,29.99838],
+ [35.1014,29.99384],
+ [35.08473,29.97434],
+ [35.07589,29.96118],
+ [35.07447,29.93378],
+ [35.08503,29.91999],
+ [35.08616,29.90491],
+ [35.08407,29.90447],
+ [35.08252,29.90037],
+ [35.07626,29.8954],
+ [35.07578,29.88718],
+ [35.06954,29.87856],
+ [35.06853,29.87218],
+ [35.06541,29.86901],
+ [35.06543,29.86489],
+ [35.05769,29.84578],
+ [35.05042,29.83397],
+ [35.05201,29.83167],
+ [35.04836,29.82805],
+ [35.04789,29.81983],
+ [35.0422,29.80846],
+ [35.04222,29.80526],
+ [35.04013,29.80345],
+ [35.03193,29.77429],
+ [35.02829,29.77067],
+ [35.02679,29.75972],
+ [35.02419,29.757],
+ [35.02421,29.75334],
+ [35.01954,29.74699],
+ [35.01957,29.74242],
+ [35.01646,29.73834],
+ [35.017,29.73468],
+ [35.01492,29.73287],
+ [35.0134,29.72557],
+ [35.01448,29.72008],
+ [35.0124,29.71827],
+ [35.01312,29.68629],
+ [35.01522,29.68445],
+ [35.01476,29.67486],
+ [35.01633,29.67348],
+ [35.01648,29.64973],
+ [35.01391,29.64244],
+ [35.00821,29.63563],
+ [35.00823,29.63107],
+ [34.99736,29.61517],
+ [35.00839,29.60549],
+ [35.00841,29.6032],
+ [35.01469,29.60087],
+ [35.02835,29.58705],
+ [35.02629,29.58296],
+ [35.0269,29.56788]]}}
+]}
diff --git a/content/map/subdistrict_hexes_1948.yaml b/content/map/subdistrict_hexes_1948.yaml
index 15107339c..0fb3f0549 100644
--- a/content/map/subdistrict_hexes_1948.yaml
+++ b/content/map/subdistrict_hexes_1948.yaml
@@ -7,7 +7,12 @@ title: "Sub-districts of Mandatory Palestine in force on 15 May 1948 (true lines
line: "The true lines are the Survey of Palestine map of the 1947 Administrative Divisions Schedule (content/map/subdistricts_1948.geojson, status sensitivity-reviewed); shown here to the nearest hex edge, up to half a hex (about 4 km) from the true line."
label: "Mandate sub-districts, 1947" # shown on screen while the layer is drawn (owner ruling 2026-10-11)
shown_from: 1948-05-15 # the game's start
-shown_until: null # until the 1949 armistice lines replace it, each front on its agreement's date, once that data exists
+shown_until: null # the last front's end, once the armistice lines enclose each side's area; null until then (the base under them)
+fronts: # until: the date that front switches, its 1949 armistice features drawn over this layer from then (null: no line data)
+ - { key: egypt, until: 1949-02-24 }
+ - { key: lebanon, until: 1949-03-23 }
+ - { key: jordan, until: 1949-04-03 }
+ - { key: syria, until: 1949-07-20 }
regions:
- { id: 1, key: acre, name: "Acre Sub-District", district: "Galilee District", style: primary }
- { id: 2, key: beisan, name: "Beisan Sub-District", district: "Galilee District", style: primary }
diff --git a/docs/m3-release.md b/docs/m3-release.md
index 5bbf05f09..911717e8f 100644
--- a/docs/m3-release.md
+++ b/docs/m3-release.md
@@ -137,6 +137,22 @@ war-casualties). The owner's sign-off for all seven events below is recorded in
| `bernadotte_assassination` | security, terror | the `terror` tag follows the Israeli government's own Prevention of Terrorism Ordinance |
| `reparations_claim` | holocaust | the claim's framing (the cost of absorbing survivors: 500,000 at $3,000 each); the "refuse" option |
+**Map lines (display only; not gated by the release gate).** The 1949 armistice lines and zones
+(`content/map/armistice_lines_1949.geojson`, decision D-A) need the same review before a shared build shows them. The owner
+records the sign-off by moving each feature's `status` to `sensitivity-reviewed` (after `fact-checked`). The 1948
+sub-districts (D-B) are reviewed with them.
+
+| Line or zone | Front, from | What to review |
+|---|---|---|
+| `egypt_adl_gaza` | Egypt, 24 Feb 1949 | the Gaza-Rafah line, Wadi Hasi to Gaza only (the stretch to the frontier is a gap, shown as nothing); its name |
+| `egypt_el_auja_dmz` | Egypt, 24 Feb 1949 | the El Auja Demilitarized Zone and its name |
+| `lebanon_adl` | Lebanon, 23 Mar 1949 | the line shown as the Mandate frontier it follows; "the international boundary" in its name |
+| `syria_adl` | Syria, 20 Jul 1949 | the line and its name |
+| `syria_dmz_north`, `syria_dmz_central`, `syria_dmz_south` | Syria, 20 Jul 1949 | the three parts of the Demilitarized Zone, their names (place names chosen by us: Banias, Tell el Qadi, Dardara, Mishmar HaYarden, Ein Gev, El Hamma; a mix of Arabic forms, Tell el Qadi rather than Dan and El Hamma rather than Hamat Gader, and Hebrew ones) |
+| `egypt_mv1950_demarcation`, `egypt_mv1950_zone_lines` | Egypt, 22 Feb 1950 | the line as drawn on the signed modus vivendi map and the zone A and C lines; that the label and panel name the modus vivendi apart from the 1949 line |
+| `jordan_adl_iraqi_*` (four stages), `jordan_adl_a_latrun`, `jordan_adl_bc_south`, `jordan_adl_d_arava` | Jordan, 3 Apr 1949 (line A by its deadlines: 8 May, 22 May, 17 Jul 1949) | low accuracy, traced from a low-resolution scan, and labelled so; the Art. VI.3 stage areas as read; Latrun traced along the outer loop; Jerusalem, the no-man's-lands and Mount Scopus left out (gaps) |
+| On-screen strings | from 1949 | the map label ("Mandate sub-districts, 1947 · 1949 armistice lines: Egypt (and the 1950 modus vivendi), Lebanon, Jordan (low accuracy), Syria"), the info panel lines ("On the ... · low accuracy, from a low-resolution scan"), the agreement titles in the "Egypt-Israel" style (the agreements' own: "Egyptian-Israeli", "Lebanese-Israeli", "Hashemite Jordan Kingdom-Israel", "Israeli-Syrian"), and the seven Hebrew strings in `strings.he.yaml` (Hebrew is off until reviewed) |
+
## Deferred to M4: upload to itch.io (OWNER STEP)
Deferred to the start of M4, as a private Draft (owner ruling, 2026-10-10). The steps stay correct for then. This needs the
owner's itch.io account and is never automated, and the build must pass the sensitivity gate above (`-shareable`).
diff --git a/docs/oss/DECISIONS.md b/docs/oss/DECISIONS.md
index b38196109..f45ded0c3 100644
--- a/docs/oss/DECISIONS.md
+++ b/docs/oss/DECISIONS.md
@@ -25,4 +25,5 @@ are already public. If a check fails, the file is removed from the tip with the
- [ ] D13 Licence of the derived land-use texture `unity/Assets/Textures/Map/landuse.png` (`tools/land_bake.py`, issue #33; `ASSETS.yaml` row `owner-verify`). Owner answers four questions. (1) The 1948 settlement coordinates (`content/map/settlements_1948.yaml`, taken from the Wikipedia API, CC BY-SA 4.0) are facts, used only to place the citrus belt near the towns: does share-alike, or the EU database right for about 25 points taken from one source, reach a texture computed from them? (2) D6 found that the data.gov.il licence allows derivatives of the IMS station normals: confirm it covers landuse.png, whose rainfall is CHELSA corrected by them. (3) The Copernicus DEM licence allows redistributing derived products with its attribution (NOTICE carries it), and CHELSA V2.1 is CC0: confirm. (4) Which single `licence:` value does the row take: `Copernicus-DEM` (as now), or the most restrictive input (CC-BY-SA-4.0 if (1) says share-alike applies)? Decided:
- [ ] D-P Portraits: every `owner-verify` row in `ASSETS.portraits.yaml` checked on Commons for its US status, and the `promo/ref/*-src.jpg` and `*-sheet.jpg` provenance confirmed. Check on 2026-10-10: all 26 `owner-verify` rows (13 Government Press Office photos, 1948-1960, each used twice) carry only {{PD-Israel}}/{{PD-IsraelGov}} on Commons, with no US public-domain rationale; the URAA likely restored their US copyright (Israel protected them on 1996-01-01). Verdict: risk in the US. The promo/ref sheets and the AI likenesses in promo/final 04 and 08 derive from them. Needs the owner's call (replace with US-safe sources, see the issue for it). Decided:
- [x] D-B Region border data (`content/map/subdistrict*`, `ASSETS.yaml` row verified). The 1948 sub-districts are digitised from the Survey of Palestine map "Administrative Divisions" (1946, overprinted May 1947) and defined by the Administrative Divisions (Amendment) Proclamation, 1947 (Palestine Gazette No. 1552); area check from Village Statistics 1945. Check on 2026-10-11 (factual, not legal advice): Government of Palestine works got 50 years from publication (Copyright Act 1911, extended to Palestine in 1924), so they are public domain in Israel and the UK since the end of 1997 at the latest; Commons tags scan (a) `06_Palestine-_Administrative_divisions.jpg` {{PD-UK-Gov}} (in the Map template's permission field; NLI accession per Commons "Pal 1143; Pal 1143b; Pal 1196?") and scan (b), the Eran Laor copy (FL147392105), {{PD-UKGov}}{{PD-IsraelGov}}; but, as for D-P, they were protected on 1996-01-01, so a URAA-restored US copyright in the map's drawing (to about 2041-42) is possible. What the repository holds is facts (where legally defined lines run), redrawn by our own method; no image is copied. Also for the owner: the Hebrew and Arabic names (from Wikipedia), the sub-district names as shown (official Gazette English), outlining the Mandate frontier, the Arabic for Samaria District ("لواء السامرة"; "لواء نابلس" is also common), the near-frontier shore hexes (Taba, west of Rafah, the Dead Sea by the Lisan: each follows its nearest land), and moving the entries from `draft` to reviewed. Owner ruling (2026-10-11) on when the layer shows: from the 1948 start until the 1949 armistice lines replace it, each front switching to its armistice line on that agreement's date (Feb-Jul 1949) once that data is built; until then the layer stays, labelled "Mandate sub-districts, 1947" (`content/map/subdistrict_hexes_1948.yaml` `label`, `shown_from`, `shown_until`). Decided (owner-delegated, 2026-10-11): allowed; facts redrawn, no image copied. The repository holds facts (where legally defined lines run), redrawn by our own method from cited sources; no image or drawing is copied or committed, and US copyright does not protect facts (Feist), so a possible URAA copyright in the map's drawing does not reach the data. Further rulings (owner-delegated to the controller, 2026-10-11): the near-frontier shore hexes stay as built (each follows its nearest land); the Mandate frontier outline stays; Samaria District in Arabic stays "لواء السامرة" (no official Arabic Mandate text was reachable online; "لواء نابلس" is the common usage; unverified); the Hebrew and Arabic names from Wikipedia are accepted for now, the source noted per row; the sensitivity review is done (the entries are `sensitivity-reviewed`), while the 1947-48 amendment check stays open. Display rule (controller ruling, owner-delegated, 2026-10-11): the hex that holds a Gazette-listed town always takes that town's sub-district, never `outside` (`tools/borders_bake.py` rule 5; Rafah town's hex is Gaza, Metulla's Safad).
+- [ ] D-A The 1949 armistice lines (`content/map/armistice*`, `ASSETS.yaml` row owner-verify). Sources: the four General Armistice Agreements (UNTS vol. 42) and their annexed maps, which are UN documents with symbols and so not copyrighted (UN Administrative Instruction ST/AI/189/Add.9/Rev.2, para. 2; Commons {{PD-UN-doc}}, {{PD-UN-map}}); the Syria map is drawn on a 1:50,000 base of the Service Geographique des FFL, of which nothing is taken but the agreement's own line and zone (drawn by the parties and the UN); the Egypt line uses the Survey of Palestine sheet "Gaza" for three positions (the Wadi Hasi mouth, Deir Suneid, the highway), a Government of Palestine work under D-B; the Lebanon line is the D-B Mandate frontier. Check on 2026-10-11 (factual, not legal advice). Rulings (controller, owner-delegated, and the owner, 2026-10-11): (1) the source plan as built is approved: the agreements and their annexed maps; IBS 46 (1965) only as a named cross-check; (2) Jordan is traced from the low-resolution UNISPAL copy of the signed map 1 (3119 x 8630 px), every feature `source_quality: low_res_scan` and labelled low-accuracy, to be replaced from a full-resolution scan; the Commons "own work" copy ("File:Green Line - Cease Fire Agreement 30 Nov 1948.jpg") is never used without established provenance; Jerusalem (map 2), the no-man's-lands and Mount Scopus are recorded gaps; (3) the 1950 modus vivendi line (S/1471, a signed UN document; sheet 2 from the UN Treaty Collection) is its own feature from 22 Feb 1950, and the 1949 Egypt line south of Gaza stays undrawn; (4) the DMZ part names stand; (5) the sensitivity review is the controller's, after the staff review: entries stay `draft`; (6) the true-polyline overlay is #237, not built now; (7) the Sinai frontier beyond Gaza is not labelled as the Egypt line. Open for the owner: whether a full-resolution Jordan scan is requested from the archives (an outward action). Display, as built: each front switches on its agreement's date (recorded per front in the sub-district layer, `Subdistricts1948.FrontReplaced`); from then its zones are drawn over the sub-districts and the label and info panel name its lines, while the sub-district bands stay as the base (the lines leave gaps). Conventions recorded here: the Jordan line A stages are Art. VI.3 deadlines ('within five / seven / fifteen weeks') and each stretch is shown from its deadline, the actual handover dates not researched; the agreements' own titles ('Egyptian-Israeli', 'Lebanese-Israeli', 'Hashemite Jordan Kingdom-Israel', 'Israeli-Syrian' General Armistice Agreement) are shown in the 'Egypt-Israel' style, a paraphrase; the DMZ part names mix Arabic and Hebrew forms (Tell el Qadi and El Hamma beside Mishmar HaYarden and Ein Gev). Map bases (only the agreements' lines are taken, positions redrawn, no image copied; US copyright does not reach facts): the Syria map's 1:50,000 Service Geographique des FFL base; Jordan map 1's Survey of Palestine 1:250,000 (1946) base, a Government of Palestine work (D-B); the Gaza sheet (D-B); S/1471's base sheets, Survey of Palestine 1:20,000 (rev. 1946) reprinted with a Survey of Israel imprint, an Israeli government reprint of about 1949-50, outside D-B, with a possible US URAA term in the drawing. The Jordan control points' coordinates (Wikidata, CC0; Wikipedia, CC BY-SA) are facts used only to georeference, kept in the MIT tool source.
- [x] D-H The AI concept art reproduces no Civilization VII icon, logo or wordmark: every image in `promo/final/` (`01` to `08`) and the hero (`docs/images/hero-concept-1936.jpg`), all prompted "in the style of Civilization VII". Owner looks at each. Decided (owner-delegated check, 2026-10-10): no Civilization, Firaxis or 2K logo, wordmark, leader portrait or copied icon in any of the nine images; 03 and the hero use generic AI-drawn yield glyphs whose colours echo Civ's.
diff --git a/docs/visual-v1.md b/docs/visual-v1.md
index bff4508d3..df622c47b 100644
--- a/docs/visual-v1.md
+++ b/docs/visual-v1.md
@@ -1085,8 +1085,20 @@ the game's start: the Administrative Divisions (Amendment) Proclamation, 1947 (P
Arabic Mandate text reachable online; "لواء نابلس" is the common usage; unverified, noted in the file); the Hebrew and
Arabic names from Wikipedia are accepted for now; the sensitivity review is done (`sensitivity-reviewed`), while the
1947-48 amendment check stays open.
-- *1949 armistice lines:* research note only, `research_notes/Map borders/armistice-lines-1949.md` (the four agreements and
- their annex maps, UNTS vol. 42, digitising and dating).
+- *1949 armistice lines (armistice-lines, #196):* `content/map/armistice_lines_1949.geojson` (true lines, draft) and
+ `armistice_hexes_1949.yaml` (snapped), from the agreements and their annexed maps
+ (`research_notes/Map borders/armistice-lines-1949.md`, "Built"): Syria (line and three-part DMZ), Lebanon (the
+ frontier), Egypt (El Auja DMZ; the Gaza-Rafah line from the Wadi Hasi to Gaza; from 22 Feb 1950 the line on the
+ signed modus vivendi map, S/1471), Jordan (low accuracy, from the low-resolution UNISPAL copy of map 1; line A by
+ its Art. VI.3 stages; Jerusalem a gap). Each front switches on its agreement's date, which the sub-district layer records per
+ front (`Subdistricts1948.FrontReplaced`, used by `MapRegions`): from then its zones are drawn over the sub-districts in the
+ secondary style and its lines named in the info panel with their own agreement and date, while the sub-district bands
+ stay as the base; the map label adds "1949 armistice lines: <fronts>", with "Jordan (low
+ accuracy)" and "Egypt (and the 1950 modus vivendi)" (`ArmisticeTests`); its box takes up to the right column's
+ 480 px (`.map-layer`, was 160 px), so the longest label is three lines, checked beside a real event card at seven window
+ shapes (`ArmisticeTests.TheLongestMapLabelFitsBesideTheEventCard`). The sub-district layer stays as the base
+ while the lines leave gaps. A line is visible as a band only where it bounds a zone or is the Mandate frontier; at
+ 5-km hexes two of the three Syrian DMZ parts take no hex (true-polyline overlay: #237).
**Research item: region data (to source, then the owner's sensitivity review).**
- *What:* per-hex region labels for (a) the sub-districts of Mandatory Palestine at the end of the Mandate (six districts:
diff --git a/research_notes/Map borders/armistice-lines-1949.md b/research_notes/Map borders/armistice-lines-1949.md
index 35a93e8cd..c0feb1e57 100644
--- a/research_notes/Map borders/armistice-lines-1949.md
+++ b/research_notes/Map borders/armistice-lines-1949.md
@@ -1,6 +1,6 @@
# The 1949 armistice lines: sources and how to digitise them (research note, 2026-10-11)
-Status: research only. No geometry is in the game. The lines are dated and sensitive: before any of them is drawn they
+Status: built for all four fronts (below, status draft); Jordan at low accuracy from a low-resolution scan. The lines are dated and sensitive: before a shared build shows them they
need #61-style dating (below) and the owner's sensitivity review (chapters design §13; `lines.yaml`, chapters design
§10). Owner rulings for this work (2026-10-11): the real lines, from the four General Armistice Agreements and their
annexed maps; never a later or simplified "Green Line" drawing as the source (one may be used as a cross-check, and is
@@ -9,6 +9,42 @@ then named as such); true lines stored, hex-snapped only for display; no invente
Companion: the 1948 sub-districts (`content/map/subdistricts_1948.geojson`, `tools/borders_digitise.py`), done this
round from Mandate sources. Mandate maps are *not* a source for any armistice line.
+## Built (2026-10-11, branch armistice-lines, issue #196)
+
+`tools/armistice_digitise.py` -> `content/map/armistice_lines_1949.geojson` (true lines, status draft; per-feature
+sources, check dates, accuracy, method, diagnostics); `tools/armistice_bake.py` -> `content/map/armistice_hexes_1949.yaml`
+(hex-snapped); `tools/borders_bake.py` writes each front's end into the sub-district layer. In the game, `MapRegions`
+draws the zones over the sub-districts from each agreement's date and the info panel names the line and agreement.
+
+| Front (from) | What is stored | Accuracy |
+|---|---|---|
+| Syria (20 Jul 1949) | The line through Annex I's 24 MR points (typed from UNTS vol. 42 pp. 342-344); "a line" stretches straight, the "along ..." stretches traced on the annexed map's **green** line (the legend: green = ADL, red = defensive area, black = Israeli truce line, brown = Syrian truce line, purple hatch = DMZ) in the **UN ODS colour scan of S/1353/Rev.1** (PDF page 14, 3165 x 8759 px), registered on the Annex points (median 35 m, max 125 m). The DMZ in three parts (4.1, 27.3, 33.8 km2; 65.2 in all) from the hatching of the UNISPAL 1-bit scan, georeferenced on its 1-km grid (rms 11-14 m). | +-0.1 km at the points, +-0.1-0.2 km traced; where the zone edge is the line, the two scans agree to a median of 12-98 m. |
+| Lebanon (23 Mar 1949) | Art. V.1's international boundary as the sub-district data's Mandate frontier, Ras en Naqura to the tripoint (its end is 0.55 km from Annex I.1's tripoint). | about +-1 km (1:750,000 source), +-1.5 km at the uncertain segments. |
+| Egypt (24 Feb 1949) | Art. VI.1 from the Wadi Hasi mouth through Deir Suneid to 3 km east of the Gaza-Al Majdal highway and along the offset to Gaza, on the Survey of Palestine 1:100,000 sheet 9 "Gaza" (10-km grid, rms 6-8 m). The El Auja DMZ from Art. VIII.2's four MR points, closed along the Mandate frontier. | about +-0.3 km; cross-check: the signed 1950 modus vivendi map S/1471 draws its demarcation line on this one (within about 0.1 km, MR 103-107 / 100.2-102.8). El Auja +-0.1 km at the points, +-1 km on the frontier. |
+| Egypt, 1950 (22 Feb 1950) | The demarcation line as drawn on the signed modus vivendi map (S/1471, 1:20,000, sheet 1 "Ascalon" on UNISPAL, sheet 2 "Khan Yunis" in the UN Treaty Collection), through waypoints read on the dash-dot every 0.5-1 km where the map draws it (not routed: on a 1-bit scan routing follows the neatline and grid, review C-1), and Art. I.1's zone A and C lines from their MR points. Its own feature (controller ruling 2026-10-11). | about +-0.1 km (georeference rms 12-20 m). The map draws the line only in pieces (gaps recorded). |
+| Jordan (3 Apr 1949) | **Low accuracy** (owner ruling 2026-10-11): traced from UNISPAL's original upload of the signed map 1 (3119 x 8630 px, about 51 m a pixel), georeferenced on 30 town symbols (Wikidata coordinates; the printed grid on this copy put the towns 5-8 km off and is not used). Line A (the Iraqi sector) split into Art. VI.3's stages, each shown from its deadline (by 8 May, 22 May, 17 Jul 1949, a convention), and cut at Kh Deir Arab's MR 1510-1574; sector (a) Kh Deir Arab-Latrun-Jerusalem, Jerusalem-Dead Sea (line B, to MR 1925-0958), Dead Sea-Aqaba (d) from 3 Apr. `source_quality: low_res_scan`. | about +-1-1.5 km north (leave-one-out rms 0.77 km, max 1.44), +-1.5-2.5 km south (1.47, max 2.61), up to about 3 km at the Gulf of Aqaba; the pen line is 250 m wide. Check: south of the Dead Sea, where the line followed the Mandate frontier, the trace lies a median 0.42 km (max 3.1 km, at the Gulf) from it. |
+
+Gaps and findings:
+- **Jordan:** no full-resolution scan of the signed map 1 or map 2 was found. Searched (2026-10-11): UNISPAL (the page
+ shows a 925 x 2560 px copy; its original upload, 3119 x 8630 px, was found and is the source, at low accuracy), UN ODS
+ (S/1302, S/1302/Rev.1: text only), UNTS vol. 42 (blank insert page), the UN Archives catalogue (needs a JavaScript
+ check), Wikimedia Commons (six API searches), NLI and ECF (JavaScript catalogues, to request). Commons has a 3119 x 8630
+ px colour copy of map 1 ("File:Green Line - Cease Fire Agreement 30 Nov 1948.jpg", "own work", CC0, no source; not the
+ same file as UNISPAL's): not used. Not legible on UNISPAL's copy, so left out: Jerusalem (map 2 is not on UNISPAL), the
+ double lines and no-man's-land at Latrun (the trace takes the outer loop) and in Jerusalem, Mount Scopus. The full list
+ is in the GeoJSON's `fronts`.
+- **Egypt south of Gaza, 1949:** not drawn (from 22 Feb 1950 the modus vivendi line is). Art. VI.1 ends "continuing thus to the Egyptian frontier"; Art. VI.3 has Israel
+ evacuate its Cemetery outpost (MR 0816-0723) and allows a new one at MR 0836-0700, so the line meets the frontier
+ south-east of Rafah (about N 70-72), which neither the highway's bearing nor a coast-road offset reaches. The Egyptian-held
+ area is not drawn for the same reason. IBS 46 (US State Department, 1965) says the Gaza Strip sector "dates from February
+ 22, 1950" (the modus vivendi); the 1949 line there needs the Memorandum's map.
+- **The Memorandum of 13 November 1948** is not online: S/1086 refers to it, and the UN Archives hold it (fonds AG-022,
+ "Memorandum of 13 November and Note of Transmittal (Part III) (re Negev)"). Its para. 2.B(i) is quoted in Art. VI.1.
+- **The Syrian DMZ** is not only "between the line and the boundary": Art. V.5 adds the (Israeli-held) Ein Gev and Dardara
+ sectors, so the zone lies on both sides of the line there; the map's hatching, not a construction, is the source.
+- **Snapped at 5-km hexes**, the northern and southern Syrian DMZ parts contain no hex centre (listed as `no_hex`); they
+ are in the true lines only. El Auja takes 5 hexes, the central Syrian part 1.
+
## The documents
All four agreements are registered in the **United Nations Treaty Series, vol. 42 (1949)**
@@ -20,7 +56,7 @@ has a blank page there (checked): the map plates are not in it.
|---|---|---|---|---|---|
| Egypt-Israel | 24 Feb 1949, Rhodes | S/1264/Corr.1 (S/1264/Rev.1 in later UN papers) | No. 654, vol. 42, p. 251 | **Text.** Art. VI.1: in the Gaza-Rafah area, the line of para. 2.B(i) of the Memorandum of 13 November 1948: from the coast at the mouth of the Wadi Hasi east through Deir Suneid, across the Gaza-Al Majdal highway to a point 3 km east of it, then south parallel to the highway to the Egyptian frontier. Art. VI.3 fixes Israeli outposts by military reference (MR) points (e.g. Deir Suneid MR 10751090). Art. VI.4 leaves the Bethlehem-Hebron area to a later agreement. **El Auja demilitarised zone**, Art. VIII.2, by MR points: frontier 5 km NW of the Rafah-El Auja road crossing (MR 08750468), Khashm El Mamdud (MR 09650414), Hill 405 (MR 10780285), frontier 5 km SE of the old railway crossing (MR 09950145), back along the frontier. | Annexes I-II are a withdrawal plan and force definitions; whether a line map was annexed is **to verify** in the S/1264 PDF on UNISPAL. A later **modus vivendi** (El Auja, 22 Feb 1950, S/1471) adds a map with zones A, B and C in the Gaza-Rafah area (local arrangement; "does not change either party's position on the line"). |
| Lebanon-Israel | 23 Mar 1949, Ras en Naqura | S/1296 | No. 655, vol. 42, p. 287 | **Text.** Art. V.1: "The Armistice Demarcation Line shall follow the international boundary between the Lebanon and Palestine." | None for the line (the annex defines defensive forces). The international boundary itself is the 1923 Mandate line, marked by boundary pillars; its geometry comes from Mandate-era survey sheets and the pillar list, which is a Mandate source for a line the 1949 text adopts by reference (state it so). |
-| Jordan-Israel | 3 Apr 1949, Rhodes | S/1302/Rev.1 | No. 656, vol. 42, p. 303 | **Maps.** Art. V.1: "as delineated on the maps in annex I": (a) Kh Deir Arab (MR 1510-1574) to the north end of the Jerusalem lines: the truce lines certified by UNTSO (map 1, the red and green lines); (b) Jerusalem: the lines of the **30 November 1948 Cease-Fire Agreement** (map 2); (c) Hebron-Dead Sea: map 1, line "B"; (d) Dead Sea (MR 1925-0958) to the southern tip: positions surveyed by UN observers in March 1949, map 1 (the blue line). Art. VI: the **Iraqi sector**, map 1 line "A", established **in stages** (see dating). | Annex I: **map 1**, the Survey of Palestine 1:250,000 "Palestine" north and south sheets (layered; compiled 1944, roads revised to January 1946, reprinted April 1946, per the legend on the UNISPAL image), the lines drawn by hand in colour and signed by the delegations; **map 2**, a survey map of Jerusalem. UNISPAL holds an image of map 1: https://www.un.org/unispal/document/auto-insert-181069/ (the page's full-size file is a 925 x 2560 px WordPress copy: too coarse to digitise; a full-resolution scan is still to find: the UN Archives, the Israel State Archives, ECF's "Original Green Line Map" item https://ecf.org.il/media_items/338). |
+| Jordan-Israel | 3 Apr 1949, Rhodes | S/1302/Rev.1 | No. 656, vol. 42, p. 303 | **Maps.** Art. V.1: "as delineated on the maps in annex I": (a) Kh Deir Arab (MR 1510-1574) to the north end of the Jerusalem lines: the truce lines certified by UNTSO (map 1, the red and green lines); (b) Jerusalem: the lines of the **30 November 1948 Cease-Fire Agreement** (map 2); (c) Hebron-Dead Sea: map 1, line "B"; (d) Dead Sea (MR 1925-0958) to the southern tip: positions surveyed by UN observers in March 1949, map 1 (the blue line). Art. VI: the **Iraqi sector**, map 1 line "A", established **in stages** (see dating). | Annex I: **map 1**, the Survey of Palestine 1:250,000 "Palestine" north and south sheets (layered; compiled 1944, roads revised to January 1946, reprinted April 1946, per the legend on the UNISPAL image), the lines drawn by hand in colour and signed by the delegations; **map 2**, a survey map of Jerusalem. UNISPAL holds an image of map 1: https://www.un.org/unispal/document/auto-insert-181069/ (the page shows a 925 x 2560 px copy; its original upload, 3119 x 8630 px, about 51 m a pixel, is the source used at low accuracy (2026-10-11); a full-resolution scan is still to find: the UN Archives, the Israel State Archives, ECF's "Original Green Line Map" item https://ecf.org.il/media_items/338). |
| Syria-Israel | 20 Jul 1949, Hill 232 near Mahanayim | S/1353 (map: S/1353/Rev.1; S/1353/Add.2 reportedly carries Annex I, to verify) | No. 657, vol. 42, p. 327 | **Text with grid references.** Annex I lists the line point by point in Palestine-grid MR coordinates to 0.1 km, e.g. "1. From the point where the Lebanese-Syrian-Palestinian border meets MR 208.7-294.2, eastward to MR 212.8-294.7 ... 9. Westward to MR 209.7-272.6, a point on shoreline of Lake Hula ... 18. ... southward along the Syrian-Palestinian border to BP 61, MR 210.6-246.3", with stretches "along the Wady", "along shoreline", "along the Syrian-Palestinian border". **Demilitarised zone** (Art. V.5): where the line departs from the international boundary, the area between them; the map shows three zones (around Banias/Dan, Mishmar HaYarden-Hula, and Ein Gev-El Hamma). | "Map referred to in Annexes I, II and III", scale 1:50,000 (sheet "Houlé", Palestine grid ticks every 2 km, DMZ hatched): UNISPAL TIF, https://www.un.org/unispal/document/auto-insert-183273/ (6176 x 11666 px, 1-bit; downloaded and viewed 2026-10-11, not committed). |
## Copyright and licence
@@ -39,7 +75,7 @@ has a blank page there (checked): the map plates are not in it.
| Line | Method | Expected accuracy |
|---|---|---|
-| Syria (and its DMZs) | Type the Annex I MR points; convert from the **Palestine Grid, EPSG:28191** (Palestine 1923 / Palestine Grid, Cassini-Soldner; MR values are km eastings and northings with no false-northing offset; EPSG:28193 is the Israeli CS Grid, which adds 1,000 km to northings, and is wrong here) to WGS84. Checked with pyproj 3.8.0 on 2026-10-11: Syria Annex I MR 208.7-294.2 -> 33.243 N 35.626 E (the Lebanon-Syria-Palestine tripoint); El Auja MR 0875-0468 -> 31.009 N 34.346 E; Jordan Art. V MR 1925-0958 -> 31.454 N 35.447 E (on the Dead Sea's west shore); follow "along the Wady / shoreline / border" stretches on the annexed 1:50,000 map (georeferenced on its own grid ticks) and on the Mandate boundary for border stretches. DMZ polygons = between this line and the international boundary. | Points: +-0.1 km (the MR precision) plus datum shift (tens of metres). Traced stretches: +-0.1-0.2 km at 1:50,000. |
+| Syria (and its DMZs) | Type the Annex I MR points; convert from the **Palestine Grid, EPSG:28191** (Palestine 1923 / Palestine Grid, Cassini-Soldner; MR values are km eastings and northings with no false-northing offset; EPSG:28193 is the Israeli CS Grid, which adds 1,000 km to northings, and is wrong here) to WGS84. Checked with pyproj 3.8.0 on 2026-10-11: Syria Annex I MR 208.7-294.2 -> 33.243 N 35.626 E (the Lebanon-Syria-Palestine tripoint); El Auja MR 0875-0468 -> 31.009 N 34.346 E; Jordan Art. V MR 1925-0958 -> 31.454 N 35.447 E (in the Dead Sea, about 5 km off its west shore: the text's "a point on the Dead Sea"); follow "along the Wady / shoreline / border" stretches on the annexed 1:50,000 map (georeferenced on its own grid ticks) and on the Mandate boundary for border stretches. DMZ polygons = between this line and the international boundary. | Points: +-0.1 km (the MR precision) plus datum shift (tens of metres). Traced stretches: +-0.1-0.2 km at 1:50,000. |
| Egypt: Gaza-Rafah line | Text: the Wadi Hasi mouth, Deir Suneid, the highway +3 km offset line, to the frontier; MR points for outposts. Needs the 13 Nov 1948 Memorandum and any annex map (to verify); the 1950 modus vivendi map for the later zones. | Points +-0.1 km; the "3 km east of the highway, parallel" line depends on which 1948 road alignment is meant: +-0.5 km until a map is found. |
| Egypt: El Auja DMZ | MR points in Art. VIII.2 plus the 1906 Egypt-Palestine frontier. | +-0.1 km (points); the frontier from Mandate sheets. |
| Lebanon | The 1923 international boundary (boundary pillars) from Mandate survey sheets (1:20,000/1:100,000), as Art. V.1 adopts it. | +-0.1-0.3 km. |
diff --git a/tools/README.md b/tools/README.md
index 3aa2143e4..14aba6c17 100644
--- a/tools/README.md
+++ b/tools/README.md
@@ -51,10 +51,10 @@ Offline data tools (uv inline-script Python). Run from the repo root.
Run from the repo root; this installs every pinned dependency (rasterio included) and runs all tools tests:
```
-uv run --with pytest==9.1.1 --with rasterio==1.5.2 --with numpy==2.5.3 --with pyyaml==6.0.3 --with pillow==12.3.0 --with requests==2.32.5 pytest tools/tests -q
+uv run --with pytest==9.1.1 --with rasterio==1.5.2 --with numpy==2.5.3 --with pyyaml==6.0.3 --with pillow==12.3.0 --with requests==2.32.5 --with pyproj==3.8.0 pytest tools/tests -q
```
-Expected: `189 passed, 1 skipped` (the skipped one is the headed browser check; add `--headed` and `--with websockets==15.0.1` to run it). Omitting a dependency (e.g. rasterio) silently drops tests or fails collection.
+Expected: `391 passed, 3 skipped` (one skipped is the headed browser check, two need skimage and scipy; add `--headed` and `--with websockets==15.0.1` to run it). Omitting a dependency (e.g. rasterio) silently drops tests or fails collection.
## Required attribution (Copernicus DEM licence, modified data)
diff --git a/tools/armistice_bake.py b/tools/armistice_bake.py
new file mode 100644
index 000000000..364ae07ea
--- /dev/null
+++ b/tools/armistice_bake.py
@@ -0,0 +1,152 @@
+# /// script
+# requires-python = ">=3.11"
+# dependencies = ["numpy==2.5.3", "pyyaml==6.0.3"]
+# ///
+"""True 1949 armistice lines -> the per-hex layer the map draws over the 1948 sub-districts (MapBorders; docs/visual-v1.md
+"Region borders").
+
+Usage: uv run tools/armistice_bake.py (reads content/map/armistice_lines_1949.geojson, content/map/hexes.json and
+content/map/subdistrict_hexes_1948.yaml; writes content/map/armistice_hexes_1949.yaml)
+
+The GeoJSON keeps the true lines (tools/armistice_digitise.py); the game shows them snapped to hex edges (owner ruling
+2026-10-11), deterministically (float64, features in file order):
+ zones (the Demilitarized Zones): each land hex of the sub-district layer whose centre lies inside a zone takes that
+ zone; drawn from the zone's date over the sub-districts (MapRegions in Unity). A zone narrower than a hex may take
+ no hex at all: it stays in the true lines, and the bake lists it (`no_hex`).
+ lines: every map hex the true line passes through (the line sampled every 0.25 km, each sample's containing hex);
+ the info panel names the line and its agreement there, from the line's date. A line is drawn only where it bounds
+ a zone, or where it is the Mandate frontier the sub-district layer already draws (Lebanon; the Syrian line along
+ the border).
+ fronts: each agreement, its date, whether a line exists (a front without one keeps the Mandate sub-district layer,
+ says so, and has no date) and whether it is low-accuracy (Jordan: traced from a low-resolution scan). Each zone and
+ line also names its own agreement and date (the 1950 modus vivendi is not the 1949 agreement) and a label note. tools/borders_bake.py writes the same dates into the sub-district
+ layer as each front's end there.
+The sim never reads the output (display only: the content hash and the goldens do not move).
+"""
+import json
+import sys
+from pathlib import Path
+
+import numpy as np
+
+sys.path.insert(0, str(Path(__file__).resolve().parent))
+import borders_bake as bb # noqa: E402
+import hexgrid as hg # noqa: E402
+
+ROOT = Path(__file__).resolve().parents[1]
+MAP = ROOT / "content" / "map"
+SOURCE = MAP / "armistice_lines_1949.geojson"
+OUT = MAP / "armistice_hexes_1949.yaml"
+SUBDISTRICT_LAYER = MAP / "subdistrict_hexes_1948.yaml"
+LABEL = "1949 armistice lines"
+FRONT_NAMES = {"egypt": "Egypt", "lebanon": "Lebanon", "jordan": "Jordan", "syria": "Syria"}
+STEP_KM = 0.25
+HEADER = ("# Generated by tools/armistice_bake.py from armistice_lines_1949.geojson (the true lines), hexes.json and the\n"
+ "# sub-district layer. Do not edit by hand: rerun the tool. Display only (MapBorders): the sim never reads this file.\n"
+ "# Zones take the land hexes whose centre they contain; lines name the hexes they pass through (info panel).\n")
+
+
+def land_hexes() -> set:
+ """The land hexes the sub-district layer covers (every land hex of the map)."""
+ rows = [ln for ln in SUBDISTRICT_LAYER.read_text(encoding="utf-8").splitlines() if ln.startswith(" - [")]
+ return {tuple(int(v) for v in ln.strip()[3:-1].split(",")[:2]) for ln in rows}
+
+
+def line_hexes(coords: list, grid: dict) -> list:
+ """Hexes a polyline passes through, in order along it (each once), on the tools' projection."""
+ b, size = grid["bounds"], grid["hex_size_km"]
+ on_map = {(h["q"], h["r"]) for h in grid["hexes"]}
+ pts = np.array([hg.lonlat_to_km(lon, lat, b) for lon, lat in coords], dtype=np.float64)
+ xs, ys = [], []
+ for (x0, y0), (x1, y1) in zip(pts[:-1], pts[1:]):
+ n = max(1, int(np.ceil(np.hypot(x1 - x0, y1 - y0) / STEP_KM)))
+ t = np.arange(n, dtype=np.float64) / n
+ xs.append(x0 + t * (x1 - x0)); ys.append(y0 + t * (y1 - y0))
+ xs.append(pts[-1:, 0]); ys.append(pts[-1:, 1])
+ q, r = hg.point_to_hex(np.concatenate(xs), np.concatenate(ys), size)
+ out, seen = [], set()
+ for c in zip(q, r):
+ if c in on_map and c not in seen:
+ seen.add(c); out.append(c)
+ return out
+
+
+def item(i: int, p: dict) -> dict:
+ return {"id": i, "key": p["id"], "front": p["front"], "name": p["name"], "shown_from": p["shown_from"], "agreement": p["agreement"],
+ "signed": p["signed"], "label_note": p.get("label_note", ""), "low_accuracy": p.get("source_quality") == "low_res_scan"}
+
+
+def bake(source: dict, grid: dict, land: set) -> dict:
+ zones, lines, zone_cells, line_cells, no_hex = [], [], {}, [], []
+ for f in source["features"]:
+ p = f["properties"]
+ if p["kind"] == "zone":
+ zid = len(zones) + 1
+ zones.append(item(zid, p))
+ shape = bb.rings(f["geometry"])
+ n = 0
+ for h in grid["hexes"]:
+ c = (h["q"], h["r"])
+ if c in land and c not in zone_cells and bb.contains(shape, h["lon"], h["lat"]):
+ zone_cells[c] = zid; n += 1
+ if n == 0:
+ no_hex.append(p["id"])
+ else:
+ lid = len(lines) + 1
+ lines.append(item(lid, p))
+ g = f["geometry"]
+ parts = [g["coordinates"]] if g["type"] == "LineString" else g["coordinates"]
+ seen = set()
+ for part in parts:
+ for c in line_hexes(part, grid):
+ if c not in seen:
+ seen.add(c); line_cells.append((c[0], c[1], lid))
+ return {"zones": zones, "lines": lines, "zone_cells": zone_cells, "line_cells": line_cells, "no_hex": no_hex}
+
+
+def render(source: dict, baked: dict) -> str:
+ meta = source["statecraft"]
+ q = json.dumps
+
+ def extra(x: dict) -> str:
+ return (f"agreement: {q(x['agreement'])}, signed: {x['signed']}, label_note: {q(x['label_note'])}, "
+ f"low_accuracy: {str(x['low_accuracy']).lower()}")
+ out = [HEADER, "layer: armistice_1949\n", f"title: {q(meta['title'])}\n",
+ f"line: {q('The true lines are content/map/armistice_lines_1949.geojson (status ' + meta['status'] + '): the agreements and their annexed maps; shown here to the nearest hex edge, up to half a hex (about 4 km) from the true line.')}\n",
+ f"label: {q(LABEL)} # added to the map label while any front's line is shown\n",
+ "fronts: # each agreement; shown_from null: no line data, the Mandate sub-district layer stays on that front\n"]
+ for f in meta["fronts"]:
+ note = f.get("gap", "")
+ out.append(f" - {{ key: {f['key']}, name: {q(FRONT_NAMES[f['key']])}, agreement: {q(f['agreement'])}, signed: {f['signed']}, "
+ f"shown_from: {f['shown_from'] or 'null'}, low_accuracy: {str(f.get('source_quality') == 'low_res_scan').lower()}, note: {q(note)} }}\n")
+ out.append("zones: # drawn over the sub-districts from shown_from (style secondary)\n")
+ for z in baked["zones"]:
+ out.append(f" - {{ id: {z['id']}, key: {z['key']}, front: {z['front']}, name: {q(z['name'])}, shown_from: {z['shown_from']}, style: secondary, {extra(z)} }}\n")
+ out.append("lines: # named in the info panel on the hexes they pass through, from shown_from\n")
+ for ln in baked["lines"]:
+ out.append(f" - {{ id: {ln['id']}, key: {ln['key']}, front: {ln['front']}, name: {q(ln['name'])}, shown_from: {ln['shown_from']}, {extra(ln)} }}\n")
+ out.append(f"no_hex: {q(baked['no_hex'])} # zones narrower than any hex centre: kept in the true lines only\n")
+ out.append("zone_hexes: # [q, r, zone id], ordered by r then q\n")
+ for (qq, rr), zid in sorted(baked["zone_cells"].items(), key=lambda kv: (kv[0][1], kv[0][0])):
+ out.append(f" - [{qq}, {rr}, {zid}]\n")
+ out.append("line_hexes: # [q, r, line id], in order along each line\n")
+ for qq, rr, lid in baked["line_cells"]:
+ out.append(f" - [{qq}, {rr}, {lid}]\n")
+ return "".join(out)
+
+
+def build() -> str:
+ source = json.loads(SOURCE.read_text(encoding="utf-8"))
+ grid = json.loads((MAP / "hexes.json").read_text())
+ return render(source, bake(source, grid, land_hexes()))
+
+
+def main() -> None:
+ text = build()
+ OUT.write_text(text, encoding="utf-8")
+ print(f"wrote {OUT.relative_to(ROOT)} ({text.count(chr(10) + ' - [')} rows)")
+ print(text[text.index("zones:"):text.index("zone_hexes:")])
+
+
+if __name__ == "__main__":
+ main()
diff --git a/tools/armistice_digitise.py b/tools/armistice_digitise.py
new file mode 100644
index 000000000..6be645e97
--- /dev/null
+++ b/tools/armistice_digitise.py
@@ -0,0 +1,1094 @@
+# /// script
+# requires-python = ">=3.11"
+# dependencies = ["numpy==2.5.3", "scipy==1.17.1", "pillow==12.3.0", "shapely==2.2.0", "rasterio==1.5.2", "pyproj==3.8.0",
+# "scikit-image==0.26.0", "pypdf==5.4.0"]
+# ///
+"""Digitises the 1949 armistice lines that the primary sources allow, as true lines (not hex-snapped), into
+content/map/armistice_lines_1949.geojson. Owner rulings (2026-10-11): the lines come from the four General Armistice
+Agreements and their annexed maps, never from a later "Green Line" drawing; no invented boundaries; the game snaps them
+to hex edges only for display (tools/armistice_bake.py). Research note: research_notes/Map borders/armistice-lines-1949.md.
+
+Usage (the scans are downloads kept outside the repository and checked by SHA-256; SOURCES has the URLs):
+ uv run tools/armistice_digitise.py --syria-pdf <dir>/S_1353_Rev_1.pdf --syria-tif <dir>/s1353rev1.tif \
+ --gaza-sheet "<dir>/Survey_of_Palestine,_Palestine_09-gaza_(FL33122277_2367645).jpg" \
+ --s1471-sheet1 <dir>/s1471.tif --s1471-sheet2 <dir>/khan_yunis.pdf --jordan-map <dir>/Arm_1949.jpg
+
+Fronts, each a dated feature set (status draft):
+- Syria (signed 20 Jul 1949): the Armistice Demarcation Line through the 24 items of Annex I (Palestine-grid MR points,
+ typed below), traced between them on the annexed 1:50,000 map, where the line is printed in green (the UN ODS colour
+ scan of S/1353/Rev.1); the Demilitarized Zone, three parts, from the map's hatching (the UNISPAL 1-bit scan of the
+ same map, georeferenced on its 1-km Palestine grid).
+- Lebanon (23 Mar 1949): Art. V.1 adopts the international boundary; its geometry is the Mandate frontier already
+ digitised for the 1948 sub-districts (content/map/subdistricts_1948.geojson), from the coast at Ras en Naqura to the
+ Lebanon-Syria-Palestine tripoint.
+- Egypt (24 Feb 1949): the Gaza-Rafah line of Art. VI.1 (the words of para. 2.B(i) of the Memorandum of 13 November
+ 1948), built from the Survey of Palestine 1:100,000 sheet 9 "Gaza" (the Wadi Hasi mouth, Deir Suneid and the Gaza-Al
+ Majdal highway), from the Wadi Hasi to Gaza (the stretch on to the frontier is a gap: EGYPT_SOUTH_GAP); the El Auja Demilitarized Zone from the Art. VIII.2 MR points,
+ closed along the 1906 frontier (the Mandate frontier above).
+- Jordan (3 Apr 1949): low accuracy (owner ruling 2026-10-11). Traced from the UNISPAL copy of the signed map 1 (3119 x
+ 8630 px), georeferenced on town symbols; line A staged by Art. VI.3; Jerusalem, the no-man's-lands and Mount Scopus
+ not legible, recorded as gaps. Every feature `source_quality: low_res_scan`, to be replaced from a full-resolution scan.
+- Egypt, 1950: the modus vivendi's signed map (S/1471) as its own dated feature (owner ruling 2026-10-11).
+Control points (JORDAN_CONTROL): town coordinates from Wikidata (CC0) and the Wikipedia API / settlements_1948.yaml; facts
+used only to georeference the Jordan scan, never drawn. Names: the agreements' own titles are "Egyptian-Israeli",
+"Lebanese-Israeli", "Hashemite Jordan Kingdom-Israel" and "Israeli-Syrian" General Armistice Agreement; the game's
+"Egypt-Israel" style is a paraphrase (a choice recorded in D-A).
+Conversion: Palestine Grid, EPSG:28191 (Palestine 1923 / Palestine Grid, Cassini-Soldner; MR values are km), to WGS84
+with the EPSG Helmert transformation (stated accuracy 2 m), pinned as PG_PIPELINE and tested against pyproj's EPSG pair.
+"""
+import argparse
+import hashlib
+import io
+import json
+import sys
+from pathlib import Path
+
+import numpy as np
+
+ROOT = Path(__file__).resolve().parents[1]
+OUT = ROOT / "content" / "map" / "armistice_lines_1949.geojson"
+SUBDISTRICTS = ROOT / "content" / "map" / "subdistricts_1948.geojson"
+CHECKED = "2026-10-11"
+PG_PIPELINE = ("+proj=pipeline +step +inv +proj=cass +lat_0=31.7340969444444 +lon_0=35.2120805555556 +x_0=170251.555 "
+ "+y_0=126867.909 +a=6378300.789 +b=6356566.435 +step +inv +proj=longlat +a=6378300.789 +b=6356566.435 "
+ "+step +proj=push +v_3 +step +proj=cart +a=6378300.789 +b=6356566.435 +step +proj=helmert +x=-275.7224 "
+ "+y=94.7824 +z=340.8944 +rx=-8.001 +ry=-4.42 +rz=-11.821 +s=1 +convention=position_vector +step +inv "
+ "+proj=cart +ellps=WGS84 +step +proj=pop +v_3 +step +proj=unitconvert +xy_in=rad +xy_out=deg")
+_PG = None
+
+
+def mr_to_lonlat(e_km, n_km):
+ """Palestine Grid MR (km easting, km northing; EPSG:28191, no false-northing offset) -> WGS84 lon, lat."""
+ global _PG
+ from pyproj import Transformer
+ if _PG is None:
+ _PG = Transformer.from_pipeline(PG_PIPELINE)
+ lon, lat = _PG.transform(np.asarray(e_km, float) * 1000.0, np.asarray(n_km, float) * 1000.0)
+ return lon, lat
+
+
+def lonlat_to_mr(lon, lat):
+ global _PG
+ from pyproj import Transformer
+ if _PG is None:
+ _PG = Transformer.from_pipeline(PG_PIPELINE)
+ from pyproj.enums import TransformDirection
+ e, n = _PG.transform(np.asarray(lon, float), np.asarray(lat, float), direction=TransformDirection.INVERSE)
+ return np.asarray(e) / 1000.0, np.asarray(n) / 1000.0
+
+
+# --- sources --------------------------------------------------------------------------------------------------------
+
+UNTS = {"cite": "United Nations Treaty Series vol. 42 (1949): No. 654 Egypt-Israel (p. 251), No. 655 Lebanon-Israel (p. 287), "
+ "No. 656 Jordan-Israel (p. 303), No. 657 Syria-Israel (p. 327), English and French texts.",
+ "url": "https://treaties.un.org/doc/publication/UNTS/Volume%2042/v42.pdf",
+ "sha256": "1aacfde1ac4f9c2407fc3a3ed6d07db9a84deb52f95f91aade0bc5f1a6e2e4c1", "checked": CHECKED,
+ "licence": "Public domain (UN treaty publication; UN document, ST/AI/189/Add.9/Rev.2 para. 2)"}
+SYRIA_PDF = {"cite": "S/1353/Rev.1, 'Map referred to in Annexes I, II and III' of the Syria-Israel General Armistice Agreement, "
+ "1:50,000 sheet 'Houle' (Service Geographique des FFL base), colour scan in the UN Official Document System "
+ "(PDF page 14); the Armistice Demarcation Line is printed in green.",
+ "url": "https://documents.un.org/api/symbol/access?s=S/1353/Rev.1&l=en&t=pdf",
+ "sha256": "0e5a406f8f749af9c73a3d6b70e92a23e6eb7b69468ca81c80ba8d6e0f2baed8", "checked": CHECKED,
+ "licence": "Public domain (UN document with a symbol, ST/AI/189/Add.9/Rev.2 para. 2; Commons {{PD-UN-doc}}/{{PD-UN-map}})"}
+SYRIA_TIF = {"cite": "The same map (S/1353/Rev.1), 1-bit 200 dpi scan on UNISPAL: the Demilitarized Zone's hatching and the "
+ "1-km Palestine grid.",
+ "url": "https://www.un.org/unispal/wp-content/uploads/1949/07/794884bef66f46f38525705200598b87_s1353rev1.tif",
+ "sha256": "181ee3335f22d79e3daf684c06c7fc8cc14d92d203a9c1ce2582bbd817aa7694", "checked": CHECKED,
+ "licence": SYRIA_PDF["licence"]}
+GAZA_SHEET = {"cite": "Survey of Palestine, 1:100,000 series sheet 9 'Gaza' (compiled, drawn and printed under F.J. Salmon), "
+ "National Library of Israel copy on Wikimedia Commons: the Gaza-Al Majdal highway (first-class road), "
+ "the Wadi Hasi mouth and Deir Suneid. Only these features' positions are taken.",
+ "url": "https://commons.wikimedia.org/wiki/File:Survey_of_Palestine,_Palestine_09-gaza_(FL33122277_2367645).jpg",
+ "sha256": "3c955f06ed31daa4a5dba6736ef420716039c6d7582b24f73f8f483e2716c9e6", "checked": CHECKED,
+ "licence": "Public domain (Government of Palestine work; Commons 'Public domain'); same status as decision D-B"}
+EGYPT_TEXT = {"cite": "S/1264/Corr.1 (the Egypt-Israel agreement as corrected), Art. VI and VIII", "checked": CHECKED,
+ "url": "https://documents.un.org/api/symbol/access?s=S/1264/Corr.1&l=en&t=pdf",
+ "sha256": "67da96ca34141edd9cb9b33b13b7778dd73586efb5d3ee25b36baedecbb1c28d", "licence": SYRIA_PDF["licence"]}
+MEMO = {"cite": "Memorandum of 13 November 1948 on the implementation of the Security Council resolution of 4 November 1948 "
+ "(Acting Mediator). Not read: its para. 2.B(i) is quoted verbatim in Art. VI.1; S/1086 (20 Nov 1948) refers "
+ "to it; the UN Archives hold it as 'Memorandum of 13 November and Note of Transmittal (Part III) (re Negev)' "
+ "(fonds AG-022, United Nations Mediator for Palestine), not digitised as text; the catalogue page needs a "
+ "JavaScript check. No map of it was found.",
+ "url": "https://search.archives.un.org/memorandum-of-13-november-and-note-of-transmittal-part-iii-re-negev",
+ "checked": CHECKED, "licence": "n/a (not used)"}
+MANDATE_FRONTIER = {"cite": "The Mandate frontier of content/map/subdistricts_1948.geojson (Survey of Palestine 1:750,000, "
+ "'Administrative Divisions', 1946/47; tools/borders_digitise.py): about +-1 km.",
+ "url": "https://commons.wikimedia.org/wiki/File:06_Palestine-_Administrative_divisions.jpg",
+ "checked": CHECKED, "licence": "Public domain (Government of Palestine; decision D-B)"}
+
+JORDAN_SEARCH = [
+ "UNISPAL, 'Israel-Jordan General Armistice Agreement - Map' (https://www.un.org/unispal/document/auto-insert-181069/): "
+ "map 1 (Survey of Palestine 1:250,000 north and south sheets, signed); the page shows a 925 x 2560 px copy, and its "
+ "original upload (f03d55e48f77ab698525643b00608d34_Arm_1949.jpg) is 3119 x 8630 px, about 51 m a pixel: the source used "
+ "(owner ruling 2026-10-11), low-resolution. No map 2.",
+ "UN Official Document System, S/1302/Rev.1 (https://documents.un.org/api/symbol/access?s=S/1302/Rev.1&l=en&t=pdf) and "
+ "S/1302: the text only (12 and 9 pages); no map plates.",
+ "UNTS vol. 42 (https://treaties.un.org/doc/publication/UNTS/Volume%2042/v42.pdf): the maps were an insert 'between pages "
+ "326 and 327'; the online PDF has a blank page there.",
+ "UN Archives (search.archives.un.org): the catalogue needs a JavaScript check (not passed with a plain HTTP client); no "
+ "digitised map found through search engines.",
+ "Wikimedia Commons (API searches: '1949 armistice map Jordan Israel', 'Jordan Israel armistice agreement map 1949', "
+ "'Jerusalem armistice map 1949', 'Jerusalem cease-fire 30 November 1948 map', 'S/1302', 'Green Line 1949 original map'): "
+ "'File:Green Line - Cease Fire Agreement 30 Nov 1948.jpg' is a 3119 x 8630 px colour copy of the signed map 1, the same "
+ "size as UNISPAL's original but not the same file (SHA-1 3d5990f9... against 370af7aa...), uploaded as 'own work' under "
+ "CC0 with no source: not used, not even as a cross-check (owner ruling); 'File:UN Map of Central Jerusalem November 1949.jpg' is a later UN cartographic map "
+ "(November 1949), not map 2; the others are later drawings (H212/10/1955, user-made comparisons).",
+ "National Library of Israel and ECF ('Original Green Line Map', https://ecf.org.il/media_items/338): not reached with a "
+ "plain HTTP client in this pass (JavaScript catalogues); to request.",
+]
+
+
+# --- Syria: Annex I --------------------------------------------------------------------------------------------------
+
+# (label, E km, N km) in the order of Annex I (UNTS vol. 42, No. 657, pp. 342-344).
+SYRIA_POINTS = [("1", 208.7, 294.2), ("1b", 212.8, 294.7), ("5a", 212.7, 290.4), ("5b", 212.4, 290.2), ("5c", 211.0, 276.8),
+ ("6", 210.9, 276.7), ("7", 210.3, 276.5), ("8", 209.9, 272.6), ("9", 209.7, 272.6), ("10", 209.2, 271.7),
+ ("11", 208.5, 272.9), ("12", 205.2, 269.1), ("13", 208.8, 265.0), ("14", 208.7, 260.0), ("15", 208.5, 258.2),
+ ("16", 207.0, 257.0), ("17", 207.4, 256.0), ("BP61", 210.6, 246.3), ("BP66", 211.7, 240.1), ("21", 209.6, 239.0),
+ ("22", 206.3, 234.8), ("23", 206.3, 234.5), ("BH", 207.7, 233.4), ("24", 209.5, 232.2)]
+# Each stretch between consecutive points: how Annex I defines it. "line": straight between the MR points (the text says
+# "a line", or gives only the two points); "map": the text says "along" a wady, shoreline, river, border, trail or road,
+# or passes points with no MR value: traced on the annexed map's green line.
+SYRIA_STRETCHES = {
+ ("1", "1b"): ("map", "Annex I.1: from the Lebanese-Syrian-Palestinian border point eastward to MR 212.8-294.7 (the map's line is not straight)"),
+ ("1b", "5a"): ("map", "Annex I.2-4: along the Wady Assal to the Marabout Cheikh el Makhfi, a line to the Marabout Nabi Huda, a line to MR 212.7-290.4 (the marabouts have no MR values)"),
+ ("5a", "5b"): ("line", "Annex I.5: MR 212.7-290.4 to MR 212.4-290.2"),
+ ("5b", "5c"): ("map", "Annex I.5: southward along the Syrian-Palestinian border to MR 211.0-276.8"),
+ ("5c", "6"): ("line", "Annex I.6: to a point on the Wady es Simadi"),
+ ("6", "7"): ("map", "Annex I.7: westward along the Wady es Simadi to the trail"),
+ ("7", "8"): ("map", "Annex I.8: southward along the trail, by-passing Dardara to the east"),
+ ("8", "9"): ("line", "Annex I.9: westward to the shoreline of Lake Hula"),
+ ("9", "10"): ("map", "Annex I.10: southward along the shoreline to the mouth of the Jordan River"),
+ ("10", "11"): ("map", "Annex I.11: north-west along the western shoreline of Lake Hula"),
+ ("11", "12"): ("line", "Annex I.12: a line"),
+ ("12", "13"): ("line", "Annex I.13: a line to the Jordan River"),
+ ("13", "14"): ("map", "Annex I.14: southward along the Jordan River"),
+ ("14", "15"): ("line", "Annex I.15: a line"),
+ ("15", "16"): ("line", "Annex I.16: a line"),
+ ("16", "17"): ("line", "Annex I.17: a line"),
+ ("17", "BP61"): ("map", "Annex I.18: southward along the Syrian-Palestinian border to BP 61"),
+ ("BP61", "BP66"): ("map", "Annex I.19-20: along the Syrian-Palestinian border, BP 61 to BP 62 to BP 66 (BP 62 has no MR value)"),
+ ("BP66", "21"): ("line", "Annex I.21: a line to the eastern shoreline of Lake Tiberias"),
+ ("21", "22"): ("map", "Annex I.22: southward along the shoreline of Lake Tiberias"),
+ ("22", "23"): ("map", "Annex I.23: southward to the bend in the road"),
+ ("23", "BH"): ("map", "Annex I.23: south-east along the west bank of the railroad and the west side of the road to the Block House"),
+ ("BH", "24"): ("map", "Annex I.24: along the road to the Yarmuk River, on the border"),
+}
+# Initial guesses for the grid georeferences (scan pixels of one line each way), refined from the drawn grid lines.
+TIF_SHEETS = {"north": {"y": (990, 5315), "x": (780, 4620), "anchor": ((917, 1300, 198.0), (1300, 1140, 294.0))},
+ "south": {"y": (5330, 11000), "x": (700, 4470), "anchor": ((2722, 8000, 210.0), (2722, 8055, 250.0))}}
+PDF_SHEETS = {"north": {"y": (780, 4050), "x": (80, 3040), "anchor": ((1729, 850, 210.0), (1000, 880, 294.0))},
+ "south": {"y": (4120, 8350), "x": (80, 3040), "anchor": ((1730, 7000, 210.0), (1000, 6050, 250.0))}}
+SHEET_SPLIT_N = 267.3 # the two sheets of the map meet near 267.3 km N
+PDF_LEGEND_BOX = (5800, 7400, 300, 1250) # y0, y1, x0, x1 of the legend's green swatch on the colour scan
+
+
+def sha256(path: Path) -> str:
+ h = hashlib.sha256()
+ with open(path, "rb") as f:
+ for chunk in iter(lambda: f.read(1 << 20), b""):
+ h.update(chunk)
+ return h.hexdigest()
+
+
+def check(path: Path, src: dict) -> None:
+ got = sha256(path)
+ if got != src["sha256"]:
+ raise SystemExit(f"{path}: sha256 {got}, expected {src['sha256']} ({src['url']})")
+
+
+def grid_fit(img_v: np.ndarray, img_h: np.ndarray, sheet: dict, px_per_km, thr: float, along: int, detrend: bool,
+ tols=(0.15, 0.08, 0.05, 0.05)) -> dict:
+ """Fits E and N (km) as affine functions of scan pixels from the map's drawn 1-km grid lines: in bands across each
+ sheet, local darkness peaks (the lines) are matched to the nearest whole kilometre of the current fit and the fit is
+ redone, with a shrinking tolerance. img_v / img_h: darkness (higher = darker) for the vertical and horizontal lines;
+ detrend: take each band's profile less its 41-px running mean (raw ink masks)."""
+ from scipy import ndimage as ndi
+ (xe, ye, e0), (xn, yn, n0) = sheet["anchor"]
+ sx, sy = px_per_km if isinstance(px_per_km, tuple) else (px_per_km, px_per_km) # a scan's pixels may not be square
+ a = np.array([e0 - xe / sx, 1 / sx, 0.0]); b = np.array([n0 + yn / sy, 0.0, -1 / sy])
+
+ def peaks(p):
+ q = p - ndi.uniform_filter1d(p, 41) if detrend else p
+ return [i for i in range(3, len(p) - 3) if q[i] > thr and q[i] == q[i - 3:i + 4].max()]
+ for tol in tols:
+ ve, vn = [], []
+ for y0 in range(sheet["y"][0], sheet["y"][1] - along, along):
+ for px in peaks(img_v[y0:y0 + along, sheet["x"][0]:sheet["x"][1]].mean(axis=0)):
+ x, y = px + sheet["x"][0], y0 + along / 2
+ e = a @ [1, x, y]
+ if abs(e - round(e)) < tol:
+ ve.append((x, y, round(e)))
+ for x0 in range(sheet["x"][0], sheet["x"][1] - along, along):
+ for py in peaks(img_h[sheet["y"][0]:sheet["y"][1], x0:x0 + along].mean(axis=1)):
+ x, y = x0 + along / 2, py + sheet["y"][0]
+ n = b @ [1, x, y]
+ if abs(n - round(n)) < tol:
+ vn.append((x, y, round(n)))
+ ve, vn = np.array(ve, float), np.array(vn, float)
+ a = np.linalg.lstsq(np.c_[np.ones(len(ve)), ve[:, :2]], ve[:, 2], rcond=None)[0]
+ b = np.linalg.lstsq(np.c_[np.ones(len(vn)), vn[:, :2]], vn[:, 2], rcond=None)[0]
+ re = np.c_[np.ones(len(ve)), ve[:, :2]] @ a - ve[:, 2]
+ rn = np.c_[np.ones(len(vn)), vn[:, :2]] @ b - vn[:, 2]
+ return {"E": a, "N": b, "obs": [len(ve), len(vn)], "rms_m": [float(np.sqrt((re ** 2).mean())) * 1000, float(np.sqrt((rn ** 2).mean())) * 1000]}
+
+
+def px_to_en(fit: dict, x, y):
+ return fit["E"][0] + fit["E"][1] * np.asarray(x) + fit["E"][2] * np.asarray(y), fit["N"][0] + fit["N"][1] * np.asarray(x) + fit["N"][2] * np.asarray(y)
+
+
+def en_to_px(fit: dict, e, n):
+ m = np.array([[fit["E"][1], fit["E"][2]], [fit["N"][1], fit["N"][2]]])
+ return np.linalg.solve(m, [e - fit["E"][0], n - fit["N"][0]])
+
+
+def hatch_strokes(dark: np.ndarray) -> np.ndarray:
+ """Pixels of long '/' diagonal strokes (the map's Demilitarized Zone hatching), solid ink excluded."""
+ from scipy import ndimage as ndi
+ diag = dark.copy()
+ for k in range(1, 8):
+ up = np.zeros_like(dark); up[:-k, k:] = dark[k:, :-k]
+ dn = np.zeros_like(dark); dn[k:, :-k] = dark[:-k, k:]
+ diag &= up & dn
+ return diag & ~ndi.binary_dilation(ndi.binary_erosion(dark, structure=np.ones((5, 5))), iterations=3)
+
+
+def syria_dmz(tif: Path, log) -> tuple[list, dict, dict]:
+ """The Demilitarized Zone's parts, from the hatching of the 1-bit scan, as polygons in Palestine-grid km."""
+ import shapely
+ from PIL import Image
+ from rasterio import features
+ from scipy import ndimage as ndi
+ from shapely.geometry import shape
+ Image.MAX_IMAGE_PIXELS = None
+ dark = ~np.asarray(Image.open(tif).convert("1"))
+ d32 = dark.astype(np.float32)
+ fits = {k: grid_fit(d32, d32, s, 157.5, 0.3, 120, True) for k, s in TIF_SHEETS.items()}
+ for k, f in fits.items():
+ log(f"Syria map (1-bit), {k} sheet: {f['obs']} grid observations, rms {f['rms_m'][0]:.0f} / {f['rms_m'][1]:.0f} m")
+ diag = hatch_strokes(dark)
+ rough = ndi.binary_opening(ndi.uniform_filter(diag.astype(np.float32), 61) > 0.02, iterations=5)
+ lab, n = ndi.label(rough)
+ sizes = ndi.sum_labels(rough, lab, range(1, n + 1))
+ r = 18; yy, xx = np.mgrid[-r:r + 1, -r:r + 1]
+ parts = []
+ for i, sl in enumerate(ndi.find_objects(lab), start=1):
+ if sizes[i - 1] < 20000:
+ continue
+ y0, y1 = max(sl[0].start - 200, 0), sl[0].stop + 200
+ x0, x1 = max(sl[1].start - 200, 0), sl[1].stop + 200
+ m = ndi.binary_dilation(diag[y0:y1, x0:x1] & ndi.binary_dilation(lab[y0:y1, x0:x1] == i, iterations=40), structure=np.ones((3, 3)), iterations=6)
+ m = ndi.binary_fill_holes(ndi.binary_closing(np.pad(m, r), structure=xx ** 2 + yy ** 2 <= r * r)[r:-r, r:-r])
+ m = ndi.binary_erosion(m, iterations=4)
+ l2, n2 = ndi.label(m)
+ m = l2 == 1 + int(np.argmax(ndi.sum_labels(m, l2, range(1, n2 + 1))))
+ poly = shapely.union_all([shape(g) for g, v in features.shapes(m.astype(np.uint8), mask=m) if v == 1]).simplify(2.0)
+ poly = shapely.affinity.translate(poly, x0, y0)
+ cy = poly.centroid.y
+ fit = fits["north"] if cy < 5322 else fits["south"]
+ parts.append(shapely.transform(poly, lambda c: np.c_[px_to_en(fit, c[:, 0], c[:, 1])]))
+ return parts, fits, {"sheets_px": {k: [s["y"][0], s["y"][1]] for k, s in TIF_SHEETS.items()}}
+
+
+def syria_line(pdf: Path, log) -> tuple[list, dict]:
+ """The Armistice Demarcation Line: the colour scan's green line, registered on the Annex I points and traced between
+ them; returns [(E, N)] vertices (Palestine-grid km) and diagnostics."""
+ from PIL import Image
+ from pypdf import PdfReader
+ from scipy import ndimage as ndi
+ from skimage.graph import route_through_array
+ Image.MAX_IMAGE_PIXELS = None
+ page = PdfReader(pdf).pages[13]
+ img = max(page.images, key=lambda im: im.image.size[0] * im.image.size[1]).image.convert("RGB")
+ rgb = np.asarray(img).astype(np.int16)
+ gray = rgb.mean(axis=2).astype(np.float32)
+ r, g, b = rgb[..., 0], rgb[..., 1], rgb[..., 2]
+ green = (g - r >= 4) & (g < 140) & (g - b > 12)
+ y0, y1, x0, x1 = PDF_LEGEND_BOX
+ green[y0:y1, x0:x1] = False
+ from scipy import ndimage as ndi2
+ darkness = ndi2.uniform_filter1d(gray, 25, axis=1) - gray
+ darkness_v = ndi2.uniform_filter1d(gray, 25, axis=0) - gray
+ # the grid fit takes one darkness image per direction: vertical lines from the row-wise filter and vice versa
+ fits = {}
+ for k, s in PDF_SHEETS.items():
+ fits[k] = grid_fit(darkness, darkness_v, s, 118.3, 10.0, 100, False)
+ # registration on the Annex I points: each point's nearest green pixel, an affine per sheet, iterated (ICP)
+ dist, (iy, ix) = ndi.distance_transform_edt(~green, return_indices=True)
+ resid = {}
+ for k in fits:
+ pts = [p for p in SYRIA_POINTS if (p[2] > SHEET_SPLIT_N) == (k == "north")]
+ a, bb = fits[k]["E"], fits[k]["N"]
+ for _ in range(15):
+ px = np.array([en_to_px({"E": a, "N": bb}, e, n) for _, e, n in pts])
+ near = np.array([[ix[int(round(y)), int(round(x))], iy[int(round(y)), int(round(x))]] for x, y in px], float)
+ xx = np.c_[np.ones(len(pts)), near]
+ a = np.linalg.lstsq(xx, np.array([p[1] for p in pts]), rcond=None)[0]
+ bb = np.linalg.lstsq(xx, np.array([p[2] for p in pts]), rcond=None)[0]
+ res = np.hypot(xx @ a - [p[1] for p in pts], xx @ bb - [p[2] for p in pts]) * 1000
+ fits[k] = {"E": a, "N": bb, "grid_rms_m": fits[k]["rms_m"]}
+ resid.update({p[0]: round(float(v)) for p, v in zip(pts, res)})
+ log(f"Syria map (colour), {k} sheet: Annex I points to the green line after registration: median {np.median(res):.0f} m, max {res.max():.0f} m")
+ cost = np.where(green, 1.0, 40.0)
+ verts, traced = [], {}
+ for (u, eu, nu), (v, ev, nv) in zip(SYRIA_POINTS, SYRIA_POINTS[1:]):
+ how, why = SYRIA_STRETCHES[(u, v)]
+ if how == "line":
+ seg = [(eu, nu), (ev, nv)]
+ else:
+ fu = fits["north"] if nu > SHEET_SPLIT_N else fits["south"]
+ fv = fits["north"] if nv > SHEET_SPLIT_N else fits["south"]
+ pu = en_to_px(fu, eu, nu); pv = en_to_px(fv, ev, nv)
+ su = (iy[int(round(pu[1])), int(round(pu[0]))], ix[int(round(pu[1])), int(round(pu[0]))])
+ sv = (iy[int(round(pv[1])), int(round(pv[0]))], ix[int(round(pv[1])), int(round(pv[0]))])
+ m = 150
+ by0, bx0 = max(min(su[0], sv[0]) - m, 0), max(min(su[1], sv[1]) - m, 0)
+ by1, bx1 = max(su[0], sv[0]) + m, max(su[1], sv[1]) + m
+ path, _ = route_through_array(cost[by0:by1, bx0:bx1], (su[0] - by0, su[1] - bx0), (sv[0] - by0, sv[1] - bx0),
+ fully_connected=True, geometric=True)
+ path = np.array(path, float) + [by0, bx0]
+ from shapely.geometry import LineString
+ ls = LineString(path[:, ::-1]).simplify(1.5)
+ xy = np.array(ls.coords)
+ on = float(green[path[:, 0].astype(int), path[:, 1].astype(int)].mean())
+ mid = []
+ for x, y in xy[1:-1]:
+ f = fits["north"] if px_to_en(fits["north"], x, y)[1] > SHEET_SPLIT_N else fits["south"]
+ mid.append(tuple(float(t) for t in px_to_en(f, x, y)))
+ seg = [(eu, nu)] + mid + [(ev, nv)] # the trace's ends replaced by the exact MR points
+ traced[f"{u}-{v}"] = {"on_green": round(on, 3), "vertices": len(seg)}
+ verts += seg if not verts else seg[1:]
+ return verts, {"fits": {k: {"E": list(map(float, f["E"])), "N": list(map(float, f["N"])), "grid_rms_m": [round(x, 1) for x in f["grid_rms_m"]]} for k, f in fits.items()},
+ "annex_points_to_green_m": resid, "traced": traced}
+
+
+# --- Egypt ----------------------------------------------------------------------------------------------------------
+
+EL_AUJA = [("frontier 5 km NW of the Rafah-El Auja road crossing", 87.5, 46.8), ("Khashm El Mamdud", 96.5, 41.4),
+ ("Hill 405", 107.8, 28.5), ("frontier 5 km SE of the old railway crossing", 99.5, 14.5)]
+# Art. VI.3 Israeli outposts and evacuated points (MR, km), for the check of the Gaza-Rafah line.
+GAZA_OUTPOSTS = [("Deir Suneid, north side of the Wadi", 107.5, 109.0, "kept"), ("700 SW of Sa'ad", 105.0, 98.2, "kept"),
+ ("Sulphur Quarries", 98.7, 92.4, "kept"), ("Tall-Jamma", 97.2, 88.7, "kept"), ("Kh al Ma'in", 93.2, 82.1, "kept"),
+ ("Cemetery (evacuated the day after the next)", 81.6, 72.3, "evacuated"),
+ ("Hill 79 (evacuated within four weeks)", 104.5, 101.7, "evacuated"), ("new outpost", 83.6, 70.0, "new")]
+GAZA_GRID = {"v": {2567: 90, 4925: 100, 7285: 110, 9645: 120}, "h": {3712: 120, 6077: 110, 8435: 100, 10795: 90}}
+# Points read off the georeferenced sheet (scan pixels): the Wadi Hasi's mouth at the coast; Deir Suneid (village
+# symbol); a point on the highway at Deir Suneid and one in Gaza, between which the highway is traced.
+GAZA_PX = {"wadi_hasi_mouth": (5527, 5416), "deir_suneid": (6782, 6240), "highway_deir_suneid": (6730, 6240),
+ "highway_gaza": (4880, 8060)}
+OFFSET_KM = 3.0
+EGYPT_SOUTH_GAP = (
+ "Gap: from Gaza (about MR 102.4-100.1) to the Egyptian frontier the line is not drawn. Art. VI.1 says only 'continuing "
+ "thus to the Egyptian frontier' and no map of the Memorandum or of the agreement was found. Art. VI.3 bounds it: Israel "
+ "evacuates its outpost at the Cemetery (MR 0816-0723), so that point is inside the line, and new Israeli outposts may "
+ "be set up at MR 0836-0700, east of it, so the line reaches the frontier south-east of Rafah, between about N 70 and N "
+ "72 km. Carrying the highway's bearing on from Gaza reaches the frontier at about MR 077.7-075.6, north of the Cemetery, "
+ "and is therefore wrong; a 3-km offset of the coast road through Khan Yunis (MR 083.7-084.2) and Rafah (078.1-077.6), "
+ "carried on its bearing, reaches the frontier near N 73, also north-west of the Cemetery. The Egyptian-held area is not drawn "
+ "either, since it needs the whole line.")
+S1471 = {"cite": "Cross-check of the 1949 line (this feature only): S/1471, sheet 1 of the signed map of the modus vivendi of 22 "
+ "February 1950 (Survey of Palestine 1:20,000 base, Jaffa 1931, revised June 1946, with a Survey of Israel reprint imprint), UNISPAL; the 1950 line itself is the separate feature egypt_mv1950_demarcation. The "
+ "map's dash-dot demarcation line lies on this 1949 line within about 0.1 km from MR 102.25-100.0 to 106.95-102.40 "
+ "(the sheet's south neatline to the text's point); north-east of that it shows only the zone A line.",
+ "url": "https://www.un.org/unispal/wp-content/uploads/1950/03/02c98322cf78b99a8525705b004d7b73_s1471.tif",
+ "sha256": "55083142da168abffccb2db7f0da5516b6a26c8d3b8a7f2f4c11a982ed822434", "checked": CHECKED,
+ "licence": "Public domain (UN document with a symbol)"}
+IBS46 = {"cite": "US Department of State, International Boundary Study No. 46, 'Israel - Egypt (United Arab Republic) Armistice "
+ "Line' (1965): the Gaza Strip sector of the line 'dates from February 22, 1950'; elsewhere the line follows the "
+ "1906 Egypt-Palestine boundary from 24 February 1949. Secondary; cross-check only.",
+ "url": "https://library.law.fsu.edu/Digital-Collections/LimitsinSeas/pdf/ibs046.pdf", "checked": CHECKED,
+ "licence": "Public domain (US Government work); cross-check only"}
+
+
+def gaza_sheet(path: Path, log) -> tuple[dict, list]:
+ """Georeference sheet 9 on its 10-km grid and trace the first-class road from Deir Suneid to Gaza."""
+ from PIL import Image
+ from scipy import ndimage as ndi
+ from skimage.graph import route_through_array
+ Image.MAX_IMAGE_PIXELS = None
+ rgb = np.asarray(Image.open(path).convert("RGB")).astype(np.int16)
+ gray = rgb.mean(axis=2).astype(np.float32)
+ obs_e, obs_n = [], []
+ for gx, e in GAZA_GRID["v"].items():
+ for y0 in range(1500, 11800, 300):
+ p = gray[y0:y0 + 150, gx - 80:gx + 81].mean(axis=0); q = ndi.uniform_filter1d(p, 31) - p
+ k = int(np.argmax(q))
+ if q[k] > 8:
+ obs_e.append((gx - 80 + k, y0 + 75, e))
+ for gy, n in GAZA_GRID["h"].items():
+ for x0 in range(1500, 11900, 300):
+ p = gray[gy - 80:gy + 81, x0:x0 + 150].mean(axis=1); q = ndi.uniform_filter1d(p, 31) - p
+ k = int(np.argmax(q))
+ if q[k] > 8:
+ obs_n.append((x0 + 75, gy - 80 + k, n))
+ oe, on = np.array(obs_e, float), np.array(obs_n, float)
+ a = np.linalg.lstsq(np.c_[np.ones(len(oe)), oe[:, :2]], oe[:, 2], rcond=None)[0]
+ b = np.linalg.lstsq(np.c_[np.ones(len(on)), on[:, :2]], on[:, 2], rcond=None)[0]
+ rms = [float(np.sqrt(((np.c_[np.ones(len(oe)), oe[:, :2]] @ a - oe[:, 2]) ** 2).mean())) * 1000,
+ float(np.sqrt(((np.c_[np.ones(len(on)), on[:, :2]] @ b - on[:, 2]) ** 2).mean())) * 1000]
+ fit = {"E": a, "N": b, "rms_m": rms, "obs": [len(oe), len(on)]}
+ log(f"Gaza sheet: {fit['obs']} grid observations, rms {rms[0]:.0f} / {rms[1]:.0f} m")
+ r, g, bl = rgb[..., 0], rgb[..., 1], rgb[..., 2]
+ road = (r > 140) & (g < 100) & (bl < 90) & (r - g > 80)
+ road &= ndi.binary_dilation((r < 100) & (g < 100) & (bl < 100), iterations=8) # the red fill between black casings
+ del rgb, gray
+ (xa, ya), (xb, yb) = GAZA_PX["highway_deir_suneid"], GAZA_PX["highway_gaza"]
+ m = 200
+ by0, bx0 = min(ya, yb) - m, min(xa, xb) - m
+ sub = np.where(road[by0:max(ya, yb) + m, bx0:max(xa, xb) + m], 1.0, 25.0)
+ path, _ = route_through_array(sub, (ya - by0, xa - bx0), (yb - by0, xb - bx0), fully_connected=True, geometric=True)
+ path = np.array(path, float) + [by0, bx0]
+ on_road = float(road[path[:, 0].astype(int), path[:, 1].astype(int)].mean())
+ from shapely.geometry import LineString
+ xy = np.array(LineString(path[:, ::-1]).simplify(2.0).coords)
+ highway = list(zip(*px_to_en(fit, xy[:, 0], xy[:, 1])))
+ fit["highway_on_red_road"] = round(on_road, 3)
+ log(f"Gaza sheet: highway traced Deir Suneid -> Gaza, {len(highway)} vertices, {on_road:.0%} on the red road")
+ return fit, highway
+
+
+def mandate_land():
+ """The union of the 1948 sub-districts (Mandatory Palestine's land; coast from the DEM) in Palestine-grid km."""
+ import shapely
+ from shapely.geometry import shape
+ doc = json.loads(SUBDISTRICTS.read_text(encoding="utf-8"))
+ land = shapely.union_all([shape(f["geometry"]) for f in doc["features"]])
+ return shapely.transform(land, lambda c: np.c_[lonlat_to_mr(c[:, 0], c[:, 1])])
+
+
+def frontier_path(land, a, b):
+ """The stretch of Mandatory Palestine's outline between the outline points nearest a and b (km), the shorter way
+ round (both stretches used here are land frontiers, far shorter than the rest of the outline)."""
+ from shapely.geometry import LineString, Point
+ from shapely.ops import substring
+ ring = max(land.geoms, key=lambda p: p.area).exterior if land.geom_type == "MultiPolygon" else land.exterior
+ ring = LineString(ring.coords)
+ da, db = ring.project(Point(a)), ring.project(Point(b))
+ lo, hi = sorted((da, db))
+ inner = substring(ring, lo, hi)
+ outer_len = ring.length - inner.length
+ if inner.length <= outer_len:
+ seg = list(inner.coords)
+ else:
+ seg = list(substring(ring, hi, ring.length).coords) + list(substring(ring, 0, lo).coords)[1:]
+ if Point(seg[0]).distance(Point(a)) > Point(seg[-1]).distance(Point(a)):
+ seg = seg[::-1]
+ return seg, ring.distance(Point(a)), ring.distance(Point(b))
+
+
+def egypt(gaza_path: Path, log) -> dict:
+ import shapely
+ from shapely.geometry import LineString, Point, Polygon
+ fit, highway = gaza_sheet(gaza_path, log)
+ mouth = tuple(float(v) for v in px_to_en(fit, *GAZA_PX["wadi_hasi_mouth"]))
+ ds = tuple(float(v) for v in px_to_en(fit, *GAZA_PX["deir_suneid"]))
+ hw = LineString(highway)
+ # the line 3 km east (inland, the side away from the sea) of the highway: offset to the left of the road as traced
+ # from Deir Suneid (north-east) to Gaza (south-west) is the south-east side
+ off = hw.offset_curve(OFFSET_KM, join_style="round", quad_segs=4)
+ if off.distance(Point(mouth)) < hw.distance(Point(mouth)):
+ off = hw.offset_curve(-OFFSET_KM, join_style="round", quad_segs=4)
+ off = LineString(off.coords) if off.geom_type == "LineString" else max(off.geoms, key=lambda g: g.length)
+ oc = np.array(off.coords)
+ if np.hypot(*(oc[0] - np.array(ds))) > np.hypot(*(oc[-1] - np.array(ds))):
+ oc = oc[::-1]
+ # from the mouth "in an easterly direction through Deir Suneid and across the highway to a point 3 km east of the
+ # highway": the mouth -> Deir Suneid direction, carried on to the offset line
+ d = np.array(ds) - np.array(mouth); d /= np.hypot(*d)
+ ray = LineString([ds, tuple(np.array(ds) + d * 10.0)])
+ hit = ray.intersection(LineString(oc))
+ start = (hit if hit.geom_type == "Point" else min(hit.geoms, key=lambda p: p.distance(Point(ds))))
+ k = LineString(oc).project(start)
+ from shapely.ops import substring
+ along = list(substring(LineString(oc), k, LineString(oc).length).coords)
+ # "then in a southerly direction parallel to the Gaza-Al Majdal Highway": the offset as far as the highway goes, to
+ # Gaza. "And continuing thus to the Egyptian frontier" is not drawn: no map of it was found, and Art. VI.3 rules out
+ # the plain readings (EGYPT_SOUTH_GAP).
+ adl = [mouth, ds] + along
+ adl_line = LineString(adl)
+ land = mandate_land()
+ # El Auja: the four Art. VIII.2 points, closed back along the frontier (P4 -> P1)
+ p1, p4 = (EL_AUJA[0][1], EL_AUJA[0][2]), (EL_AUJA[3][1], EL_AUJA[3][2])
+ seg, d1, d4 = frontier_path(land, p4, p1)
+ auja = Polygon([(e, n) for _, e, n in EL_AUJA] + seg[1:-1])
+ auja = shapely.make_valid(auja)
+ checks = []
+ for name, e, n, kind in GAZA_OUTPOSTS:
+ p = Point(e, n)
+ checks.append({"point": name, "mr": [e, n], "kind": kind, "km_from_drawn_line": round(adl_line.distance(p), 2)})
+ return {"fit": fit, "mouth": mouth, "deir_suneid": ds, "highway": highway, "adl": adl, "auja": auja,
+ "frontier_offsets_km": {"El Auja P1": round(d1, 2), "El Auja P4": round(d4, 2)}, "outposts": checks,
+ "highway_km": round(hw.length, 1)}
+
+
+# --- Egypt, 1950: the modus vivendi (S/1471, signed at El Auja on 22 February 1950) ---------------------------------
+
+MV_SHEET1 = {"cite": "S/1471, signed map of the modus vivendi, sheet 1 'Ascalon' (1:20,000, Survey of Palestine 1:20,000 base, Jaffa 1931, revised June 1946, with a Survey of Israel reprint imprint), "
+ "1-bit scan on UNISPAL: the demarcation line as the parties drew it in 1950 (dash-dot) and the zone A line.",
+ "url": "https://www.un.org/unispal/wp-content/uploads/1950/03/02c98322cf78b99a8525705b004d7b73_s1471.tif",
+ "sha256": "55083142da168abffccb2db7f0da5516b6a26c8d3b8a7f2f4c11a982ed822434", "checked": CHECKED,
+ "licence": "Public domain (UN document with a symbol, ST/AI/189/Add.9/Rev.2 para. 2)"}
+MV_SHEET2 = {"cite": "The same map, sheet 2 'Khan Yunis' (1:20,000), the copy in the UN Treaty Collection (registered 14 August 1950): "
+ "the demarcation line south of Khan Yunis and the zone C line.",
+ "url": "https://treaties.un.org/doc/Treaties/1950/08/19500814%2004-17%20PM/khan_yunis.pdf",
+ "sha256": "530866817158a041bb60d94e437af30de7a19068540ef6910575c07aa8b3b333", "checked": CHECKED,
+ "licence": MV_SHEET1["licence"]}
+MV_TEXT = {"cite": "S/1471 (17 March 1950), 'Modus vivendi to the Egyptian-Israeli General Armistice Agreement signed at El Auja "
+ "on 22 February 1950', Art. I.1 (zones A, B, C by MR points), Art. III (it does not modify either party's "
+ "position on the Art. VI.1 demarcation line); the zones are those 'on the map attached' (Art. I.1).",
+ "url": "https://documents.un.org/api/symbol/access?s=S/1471&l=en&t=pdf", "checked": CHECKED,
+ "sha256": "3d1807500b9b573d754da382d2be8e44c0e2469a5703894f16369234be2f9ff7", "licence": MV_SHEET1["licence"]}
+MV_DATE = "1950-02-22"
+MV_AGREEMENT = ("Modus vivendi to the Egypt-Israel General Armistice Agreement", MV_DATE, "El Auja", "S/1471")
+# The demarcation line as drawn (dash-dot) on the two signed sheets: waypoints (MR km) read off the georeferenced scans,
+# snapped to the stroke and joined straight (no routing: review C-1). Points the text names on the line are exact (marked "text").
+MV_PIECES = [ # (sheet, MR km waypoints along the drawn dash-dot, read off gridded crops of the georeferenced scans)
+ ("sheet1", [(102.25, 100.00), (102.52, 100.22), (103.31, 100.70), (103.86, 101.06), (104.89, 101.37), (105.52, 101.73),
+ (106.00, 102.05), (106.95, 102.40)]),
+ ("sheet2", [(90.05, 87.11), (89.68, 86.83), (89.51, 86.56), (89.38, 86.19), (89.35, 85.90), (89.21, 85.65), (89.07, 85.25)]),
+ ("sheet2", [(87.63, 77.31), (87.35, 76.70), (86.95, 75.82), (86.58, 75.32), (86.08, 74.70), (85.65, 74.26), (85.03, 73.76),
+ (84.17, 73.39), (83.49, 73.07), (82.74, 72.61)]),
+]
+MV_TEXT_POINTS = {(106.95, 102.40), (89.35, 85.90), (87.35, 76.70)} # Art. I.1(a) and (c): points on the demarcation line
+# Art. I.1 zone lines, exactly as the text gives them (MR "10170 - 11160" = 101.70 km E, 111.60 km N)
+MV_ZONE_A = [(101.70, 111.60), (106.90, 107.40), (107.95, 106.40), (109.00, 105.65), (108.80, 104.80), (108.10, 104.10), (106.95, 102.40)]
+MV_ZONE_C = [(89.35, 85.90), (90.35, 79.70), (89.70, 77.90), (87.35, 76.70)]
+MV_GAPS = ("The signed map draws the demarcation line only in pieces: on sheet 1 from its south neatline (N 100) to MR 106.95-102.40 "
+ "(the text's point; north-east of it the dotted line is zone A's); on sheet 2 from MR 90.05-87.11 to 89.07-85.25, and from "
+ "MR 87.63-77.31 to 82.74-72.61. North of N 102.6 the 1949 line "
+ "is not redrawn on the map; between N 85.4 and 77.3 zone C lies against it but no demarcation line is drawn; the two "
+ "sheets do not cover N 90-100; south-west of MR 82.8-72.6 nothing is drawn. Those stretches are not drawn here.")
+
+
+def egypt_1950(sheet1: Path, sheet2: Path, log) -> dict:
+ """The demarcation line as drawn on the two signed sheets of S/1471, traced between waypoints."""
+ from PIL import Image
+ from pypdf import PdfReader
+ from scipy import ndimage as ndi
+ from shapely.geometry import LineString
+ Image.MAX_IMAGE_PIXELS = None
+ d1 = ~np.asarray(Image.open(sheet1).convert("1"))
+ f1 = grid_fit(d1.astype(np.float32), d1.astype(np.float32),
+ {"y": (470, 9900), "x": (390, 4300), "anchor": ((772, 2000, 101.0), (2000, 850, 123.0))}, 390.0, 0.3, 150, True)
+ page = PdfReader(sheet2).pages[0]
+ g2 = np.asarray(max(page.images, key=lambda im: im.image.size[0] * im.image.size[1]).image.convert("L")).astype(np.float32)
+ f2 = grid_fit(ndi.uniform_filter1d(g2, 25, axis=1) - g2, ndi.uniform_filter1d(g2, 25, axis=0) - g2,
+ {"y": (470, 6700), "x": (210, 3100), "anchor": ((193, 2000, 80.0), (1500, 452, 90.0))}, (295.0, 295.0), 6.0, 120, False)
+ d2 = g2 < 110
+ for k, f in (("sheet 1", f1), ("sheet 2", f2)):
+ log(f"S/1471 {k}: {f['obs']} grid observations, rms {f['rms_m'][0]:.0f} / {f['rms_m'][1]:.0f} m")
+ # The pieces are the waypoints joined straight (the dash-dot is near-straight between them); no routing, which on a 1-bit
+ # scan follows the neatline and grid lines as readily as the drawn line (review C-1, 2026-10-11). Diagnostic: the share
+ # of points every 10 m along each piece with dark ink within 3 px (a dash-dot is about 60-70% ink).
+ pieces, on_ink, snaps = [], [], []
+ thick2 = ndi.binary_opening(g2 < 160, structure=np.ones((3, 3))) # sheet 2's dash-dot is grey and about 4-6 px wide
+ thick1 = ndi.binary_opening(d1, structure=np.ones((3, 3)))
+ for sheet, wps in MV_PIECES:
+ thick, fit, ppk = (thick1, f1, 390.0) if sheet == "sheet1" else (thick2, f2, 296.0)
+ _, (iy, ix) = ndi.distance_transform_edt(~thick, return_indices=True)
+ out = []
+ for e, n in wps: # each read waypoint snapped to the stroke within 0.1 km
+ x, y = (int(round(v)) for v in en_to_px(fit, e, n))
+ if (e, n) not in MV_TEXT_POINTS and np.hypot(ix[y, x] - x, iy[y, x] - y) <= 0.1 * ppk:
+ x, y = int(ix[y, x]), int(iy[y, x])
+ snaps.append(round(float(np.hypot(*(np.array(px_to_en(fit, x, y)) - [e, n]))) * 1000))
+ out.append(tuple(float(v) for v in px_to_en(fit, x, y)))
+ else:
+ out.append((e, n))
+ near = ndi.binary_dilation(thick, iterations=3)
+ line = LineString(out)
+ hits = [bool(near[int(round(yy)), int(round(xx))]) for xx, yy in
+ (en_to_px(fit, q.x, q.y) for q in (line.interpolate(d) for d in np.arange(0, line.length, 0.01)))]
+ pieces.append(out); on_ink.append(round(float(np.mean(hits)), 3))
+ log(f"S/1471: waypoints snapped by a median {np.median(snaps):.0f} m (max {max(snaps)} m); ink along the pieces {on_ink}")
+ return {"pieces": pieces, "on_ink": on_ink, "rms_m": {"sheet1": [round(x, 1) for x in f1["rms_m"]], "sheet2": [round(x, 1) for x in f2["rms_m"]]}}
+
+
+# --- Jordan: map 1 of Annex I, from the low-resolution UNISPAL copy (owner ruling 2026-10-11) -------------------------
+
+JORDAN_MAP = {"cite": "Annex I, map 1 of the Jordan-Israel General Armistice Agreement (S/1302/Rev.1): the Survey of Palestine "
+ "1:250,000 'Palestine' north and south sheets with the lines drawn by hand and signed, as the UNISPAL page's "
+ "original upload (3119 x 8630 px, about 51 m a pixel). Low resolution: to be replaced from a full-resolution "
+ "scan (UN Archives, Israel State Archives, ECF).",
+ "url": "https://www.un.org/unispal/wp-content/uploads/1949/04/f03d55e48f77ab698525643b00608d34_Arm_1949.jpg",
+ "page": "https://www.un.org/unispal/document/auto-insert-181069/",
+ "sha256": "87c374a3199d2e606278549b017c954f56271817f3be37b2f435192f5c9cb23e", "checked": CHECKED,
+ "licence": "Public domain (UN document with a symbol, ST/AI/189/Add.9/Rev.2 para. 2); base map a Government of Palestine work (D-B)"}
+JORDAN_TOWNS = {"cite": "Control-point coordinates: Wikidata (P625) and the Wikipedia API (prop=coordinates), and "
+ "content/map/settlements_1948.yaml, read 2026-10-11; used only to georeference the scan.",
+ "url": "https://www.wikidata.org/", "checked": CHECKED, "licence": "CC0 (Wikidata) / CC BY-SA 4.0 (Wikipedia)"}
+JORDAN_CONTROL = [ # (place, lon, lat (Wikidata/Wikipedia, 2026-10-11), scan x, y read off the town symbol)
+ ('Ramallah', 35.2017, 31.8969, 1953, 3193), ('Jerusalem', 35.2256, 31.7789, 1975, 3478),
+ ('Bethlehem', 35.2064, 31.7044, 1943, 3625), ('Lydda', 34.8881, 31.9519, 1384, 3096),
+ ('Ramla', 34.8625, 31.9275, 1334, 3151), ('Jaffa', 34.7531, 32.0522, 1105, 2875),
+ ('Nazareth', 35.3033, 32.7019, 2125, 1463), ('Afula', 35.2897, 32.6078, 2104, 1674),
+ ('Jenin', 35.3, 32.4611, 2123, 1996), ('Haifa', 34.9992, 32.8192, 1568, 1227),
+ ('Tiberias', 35.5333, 32.7944, 2563, 1279), ('Umm al-Fahm', 35.1536, 32.5194, 1851, 1874),
+ ('Beit Shean', 35.5, 32.5, 2501, 1917), ('Hadera', 34.9167, 32.45, 1420, 2038),
+ ('Tulkarm', 35.0308, 32.3111, 1619, 2318), ('Qalqilya', 34.9685, 32.1904, 1498, 2583),
+ ('Kafr Qasim', 34.9772, 32.1142, 1524, 2749), ('Nablus', 35.2608, 32.2211, 2055, 2509),
+ ('Jericho', 35.46, 31.8561, 2413, 3310), ('Hebron', 35.0969, 31.5286, 1750, 4025),
+ ('Bayt Jibrin', 34.8983, 31.6053, 1366, 3846), ('Gaza', 34.4597, 31.5075, 562, 4068),
+ ('Beersheba', 34.7867, 31.2522, 1168, 4647), ('Khan Yunis', 34.3031, 31.3444, 260, 4415),
+ ('Rafah', 34.2519, 31.2886, 141, 4512), ('Masada', 35.3539, 31.3156, 2226, 4477),
+ ('Ein Gedi', 35.3833, 31.45, 2305, 4155), ('El Auja', 34.4226, 30.886, 495, 5436),
+ ('Ein Husb', 35.2467, 30.7981, 2020, 5589), ('Aqaba', 35.0061, 29.5322, 1559, 8377),
+]
+JORDAN_WAYPOINTS = { # scan px, read off the hand-drawn lines (each snapped to the nearest pen ink, then routed along it)
+ 'A_iraqi': [(2600, 2150), (2556, 2137), (2512, 2125), (2462, 2112), (2406, 2094), (2369, 2062), (2344, 2006), (2325,
+ 1956), (2281, 1881), (2240, 1868), (2160, 1872), (2100, 1875), (2070, 1865), (2030, 1825), (2000, 1797),
+ (1985, 1795), (1965, 1815), (1925, 1835), (1875, 1875), (1830, 1900), (1800, 1944), (1750, 1975), (1712,
+ 2006), (1687, 2037), (1669, 2087), (1662, 2119), (1656, 2150), (1644, 2194), (1631, 2237), (1606, 2270),
+ (1590, 2330), (1585, 2370), (1600, 2410), (1610, 2440), (1600, 2470), (1590, 2510), (1570, 2545), (1555,
+ 2580), (1542, 2620), (1548, 2670), (1555, 2720), (1560, 2780), (1560, 2840), (1560, 2900), (1560, 2960),
+ (1560, 3005)],
+ 'a_latrun': [(1560, 3005), (1566, 3047), (1556, 3062), (1575, 3129), (1600, 3154), (1619, 3185), (1635, 3220), (1635,
+ 3285), (1610, 3297), (1565, 3297), (1530, 3310), (1505, 3335), (1505, 3360), (1540, 3365), (1600, 3365),
+ (1620, 3330), (1680, 3318), (1740, 3332), (1800, 3346), (1870, 3360), (1930, 3378), (1950, 3395)],
+ 'bc_south': [(1895, 3570), (1900, 3590), (1870, 3600), (1830, 3620), (1790, 3640), (1740, 3660), (1690, 3690), (1640,
+ 3720), (1580, 3760), (1540, 3790), (1500, 3830), (1464, 3951), (1457, 4001), (1450, 4073), (1421, 4130),
+ (1364, 4230), (1330, 4283), (1383, 4390), (1423, 4397), (1520, 4393), (1620, 4388), (1720, 4382), (1810,
+ 4377), (1900, 4362), (1997, 4343), (2037, 4310), (2103, 4250), (2183, 4190), (2240, 4140), (2300, 4090)],
+ 'd_arava': [(2300, 4090), (2370, 4092), (2436, 4100), (2436, 4250), (2414, 4336), (2371, 4421), (2343, 4507), (2329,
+ 4607), (2343, 4679), (2386, 4750), (2414, 4850), (2421, 4921), (2400, 4993), (2357, 5029), (2230, 5330),
+ (2114, 5600), (2035, 5870), (1960, 6140), (1900, 6433), (1842, 6833), (1783, 7200), (1733, 7550), (1683,
+ 7900), (1615, 8215), (1600, 8300)],
+}
+JORDAN_STAGES = (
+ "Art. VI.3 stages for line A, as read here (the article names areas, not points): (a) 'In the area west of the road from "
+ "Baqa to Jaljulia, and thence to the east of Kafr Qasim: within five weeks' = line A from Baqa south to Kafr Qasim, by 8 May "
+ "1949; (b) 'In the area of Wadi Ara north of the line from Baqa to Zubeiba: within seven weeks' = line A from Zubeiba round "
+ "Wadi Ara to Baqa, by 22 May 1949; (c) 'In all other areas of the Iraqi sector: within fifteen weeks' = line A east of "
+ "Zubeiba to the Jordan and from Kafr Qasim to Kh Deir Arab (MR 1510-1574), by 17 July 1949. Split at the trace's points "
+ "nearest Baqa al-Gharbiyye, Zubeiba (Wikidata 'Zububa') and Kafr Qasim. The dates are deadlines ('within ... weeks'; "
+ "'pending which the existing military lines may be maintained'): each stretch is shown from its deadline, a convention; "
+ "the actual handover dates (May-July 1949) are not researched.")
+JORDAN_STAGE_PLACES = {"Zubeiba": (35.2236, 32.5455), "Baqa": (35.0422, 32.4203), "Kafr Qasim": (34.9772, 32.1142)}
+# The text's "Zubeiba" is the village Wikidata calls Zububa (Q2911499), north-west of Jenin; the text's spelling is used.
+JORDAN_KH_DEIR_ARAB = (151.0, 157.4) # Art. V.1(a): Kh Deir Arab, MR 1510-1574
+JORDAN_DEAD_SEA_POINT = (192.5, 95.8) # Art. V.1(d): a point on the Dead Sea, MR 1925-0958
+JORDAN_GAPS = (
+ "Not drawn (legibility, low-resolution scan): the Jerusalem sector (Art. V.1(b): the lines of the 30 November 1948 "
+ "cease-fire, map 2, not on UNISPAL; on map 1 the city's lines merge into one blot at 51 m a pixel), so the line stops at "
+ "the city's western edge on both sides; the Israeli and Jordanian lines and the no-man's-land between them, in "
+ "Jerusalem and at Latrun (map 1 shows a double line at Latrun, but the two cannot be told apart at this resolution; the "
+ "trace follows the outer drawn loop); the Mount Scopus enclave. To do from map 2 and a full-resolution map 1.")
+
+
+def jordan(path: Path, log) -> dict:
+ """Georeference map 1 on control points (town symbols on the map, Wikidata coordinates; the printed grid on this copy
+ is not usable: its fitted lines put the towns 5-8 km off) and trace each hand-drawn line between waypoints."""
+ from PIL import Image
+ from scipy import ndimage as ndi
+ from shapely.geometry import LineString, Point
+ from skimage.graph import route_through_array
+ Image.MAX_IMAGE_PIXELS = None
+ a = np.asarray(Image.open(path).convert("RGB")).astype(np.int16)
+ r, g, b = a[..., 0], a[..., 1], a[..., 2]
+ lum = (r + g + b) / 3.0
+ del a
+ ink = (lum < 70) & (r - g < 25) # the pen lines are blackish green: dark, unlike the red-brown roads
+ yy, xx = np.mgrid[-2:3, -2:3]
+ thick = ndi.binary_opening((lum < 95) & (r - g < 30), structure=(xx ** 2 + yy ** 2) <= 4)
+ cost = np.where(ink, 1.0, np.where(lum < 110, 6.0, 25.0))
+ cost_thick = np.where(thick, 1.0, np.where(ink, 8.0, 40.0))
+ del r, g, b, lum
+ _, (iy, ix) = ndi.distance_transform_edt(~ink, return_indices=True)
+ _, (ty, tx) = ndi.distance_transform_edt(~thick, return_indices=True)
+ # control-point georeference, one affine for the north sheet and one for the south (they meet near y 4050)
+ fits, diag = {}, {}
+ for sheet in ("north", "south"):
+ pts = [c for c in JORDAN_CONTROL if (c[4] < 4050) == (sheet == "north")]
+ en = np.array([[float(v) for v in lonlat_to_mr(c[1], c[2])] for c in pts])
+ px = np.array([[c[3], c[4]] for c in pts], float)
+ def fit(idx):
+ aa = np.c_[np.ones(len(idx)), px[idx]]
+ return np.linalg.lstsq(aa, en[idx, 0], rcond=None)[0], np.linalg.lstsq(aa, en[idx, 1], rcond=None)[0]
+ all_i = np.arange(len(pts)); fe, fn = fit(all_i)
+ res = np.hypot(np.c_[np.ones(len(pts)), px] @ fe - en[:, 0], np.c_[np.ones(len(pts)), px] @ fn - en[:, 1])
+ loo = []
+ for i in all_i:
+ ce, cn = fit(all_i[all_i != i]); q = np.array([1, *px[i]])
+ loo.append(float(np.hypot(q @ ce - en[i, 0], q @ cn - en[i, 1])))
+ fits[sheet] = (fe, fn)
+ diag[sheet] = {"control_points": len(pts), "rms_km": round(float(np.sqrt((res ** 2).mean())), 2),
+ "leave_one_out_rms_km": round(float(np.sqrt(np.mean(np.square(loo)))), 2), "leave_one_out_max_km": round(max(loo), 2)}
+ log(f"Jordan map 1, {sheet}: {len(pts)} control points, rms {diag[sheet]['rms_km']} km, leave-one-out {diag[sheet]['leave_one_out_rms_km']} km (max {diag[sheet]['leave_one_out_max_km']})")
+
+ def to_en(x, y):
+ fe, fn = fits["north" if y < 4050 else "south"]
+ return float(fe @ [1, x, y]), float(fn @ [1, x, y])
+ traces = {}
+ for name, wps in JORDAN_WAYPOINTS.items():
+ th = name == "d_arava"
+ def snap(x, y):
+ jx, jy, rad = (tx, ty, 40) if th else (ix, iy, 15)
+ return (int(jx[y, x]), int(jy[y, x])) if np.hypot(jx[y, x] - x, jy[y, x] - y) <= rad else None
+ pts = []
+ for i, (x, y) in enumerate(wps):
+ s = snap(x, y)
+ if s is None and th and 0 < i < len(wps) - 1:
+ continue # an inner waypoint off the pen line: dropped
+ pts.append(s or (x, y))
+ cst = cost_thick if th else cost
+ m = 60 if th else 25
+ path, hits = [pts[0]], []
+ for (x0, y0), (x1, y1) in zip(pts, pts[1:]):
+ bx0, by0 = max(min(x0, x1) - m, 0), max(min(y0, y1) - m, 0)
+ sub = cst[by0:max(y0, y1) + m, bx0:max(x0, x1) + m]
+ p_, _ = route_through_array(sub, (y0 - by0, x0 - bx0), (y1 - by0, x1 - bx0), fully_connected=True, geometric=True)
+ p_ = [(x + bx0, y + by0) for y, x in p_]
+ hits += [bool(ink[y, x]) for x, y in p_]
+ path += p_[1:]
+ clean = [] # out-and-back spurs cut
+ for q in path:
+ for j in range(len(clean) - 8, max(len(clean) - 400, -1), -1):
+ if j >= 0 and abs(clean[j][0] - q[0]) <= 2 and abs(clean[j][1] - q[1]) <= 2:
+ del clean[j + 1:]; break
+ clean.append(q)
+ xy = np.array(LineString(clean).simplify(2.0).coords)
+ traces[name] = {"en": [to_en(x, y) for x, y in xy], "on_ink": round(float(np.mean(hits)), 3)}
+ log(f"Jordan map 1: {name} traced, {len(xy)} vertices, {traces[name]['on_ink']:.0%} on the pen ink")
+ # sector boundaries at the text's own MR points (review I-1): Art. V.1(a) starts at Kh Deir Arab (MR 1510-1574), so
+ # line A ends there; Art. V.1(d) starts at the Dead Sea point (MR 1925-0958). The traces are joined and cut at the
+ # trace point nearest each.
+ from shapely.ops import substring
+ def cut_at(a: list, b: list, mr: tuple) -> tuple:
+ joined = LineString(a + b[1:])
+ k = joined.project(Point(mr))
+ return substring(joined, 0, k), substring(joined, k, joined.length), round(float(joined.distance(Point(mr))), 2)
+ line_a, sector_a, d_kda = cut_at(traces["A_iraqi"]["en"], traces["a_latrun"]["en"], JORDAN_KH_DEIR_ARAB)
+ line_b, sector_d, d_ds = cut_at(traces["bc_south"]["en"], traces["d_arava"]["en"], JORDAN_DEAD_SEA_POINT)
+ sectors = {"a_latrun": sector_a, "bc_south": line_b, "d_arava": sector_d}
+ cuts = {"kh_deir_arab_km": d_kda, "dead_sea_point_km": d_ds}
+ log(f"Jordan map 1: sector cuts, the trace passes {d_kda} km from Kh Deir Arab and {d_ds} km from the Dead Sea point")
+ # line A split into Art. VI.3's stages
+ a_line = line_a
+ cut = {k: a_line.project(Point(*[float(v) for v in lonlat_to_mr(*ll)])) for k, ll in JORDAN_STAGE_PLACES.items()}
+ z, bq, kq = cut["Zubeiba"], cut["Baqa"], cut["Kafr Qasim"]
+ if not 0 < z < bq < kq < a_line.length:
+ raise SystemExit(f"line A: the stage places are not in order along the trace ({cut})")
+ stages = {"c_east": substring(a_line, 0, z), "b_wadi_ara": substring(a_line, z, bq), "a_triangle": substring(a_line, bq, kq),
+ "c_south": substring(a_line, kq, a_line.length)}
+ return {"traces": traces, "stages": stages, "sectors": sectors, "cuts": cuts, "georeference": diag}
+
+
+# --- Lebanon --------------------------------------------------------------------------------------------------------
+
+NAQURA = (35.0843, 33.0986) # where the 1:750,000 frontier meets the DEM sea at Ras en Naqura (tools/borders_digitise.py)
+RAS_EN_NAQURA = (35.10486, 33.09855) # the frontier's end on land there (borders_digitise.py's PATCHES connector start)
+
+
+def lebanon() -> tuple[list, dict]:
+ land = mandate_land()
+ a = tuple(float(v) for v in lonlat_to_mr(*NAQURA))
+ b = (SYRIA_POINTS[0][1], SYRIA_POINTS[0][2])
+ seg, da, db = frontier_path(land, a, b)
+ # the frontier's land end at Ras en Naqura (where tools/borders_digitise.py's connector to the DEM sea starts)
+ from shapely.geometry import Point
+ rn = tuple(float(v) for v in lonlat_to_mr(*RAS_EN_NAQURA))
+ return seg, {"tripoint_offset_km": round(db, 2), "start_to_ras_en_naqura_km": round(Point(seg[0]).distance(Point(rn)), 2)}
+
+
+# --- output ---------------------------------------------------------------------------------------------------------
+
+AGREEMENTS = {
+ "egypt": ("Egypt-Israel General Armistice Agreement", "1949-02-24", "Rhodes", "S/1264/Corr.1; UNTS vol. 42, No. 654"),
+ "lebanon": ("Lebanon-Israel General Armistice Agreement", "1949-03-23", "Ras en Naqura", "S/1296; UNTS vol. 42, No. 655"),
+ "jordan": ("Hashemite Jordan Kingdom-Israel General Armistice Agreement", "1949-04-03", "Rhodes", "S/1302/Rev.1; UNTS vol. 42, No. 656"),
+ "syria": ("Syria-Israel General Armistice Agreement", "1949-07-20", "Hill 232 near Mahanayim", "S/1353; UNTS vol. 42, No. 657"),
+}
+
+
+def km_geom_to_lonlat(g):
+ import shapely
+ return shapely.transform(g, lambda c: np.c_[mr_to_lonlat(c[:, 0], c[:, 1])])
+
+
+def feature(fid, front, kind, name, geom_km, accuracy, method, sources, extra=None, agreement=None):
+ import shapely
+ from shapely.geometry import mapping
+ g = shapely.set_precision(km_geom_to_lonlat(geom_km), 1e-5)
+ if kind == "zone":
+ g = shapely.orient_polygons(g)
+ agr, date, place, doc = agreement or AGREEMENTS[front]
+ props = {"id": fid, "front": front, "kind": kind, "name": name, "agreement": agr, "signed": date, "place": place,
+ "document": doc, "shown_from": date, "accuracy": accuracy, "method": method,
+ "sources": [s["url"] for s in sources], "checked": CHECKED, "status": "draft"}
+ props.update(extra or {})
+ return {"type": "Feature", "properties": props, "geometry": mapping(g)}
+
+
+def write(doc: dict, path: Path) -> None:
+ """Deterministic, diff-friendly text: metadata indented, then per feature one line of properties and one line per
+ vertex (5-decimal lon/lat)."""
+ def ring(r) -> str:
+ return "[" + ",\n ".join(json.dumps(v, separators=(",", ":")) for v in r) + "]"
+
+ def geom_text(g: dict) -> str:
+ t, c = g["type"], g["coordinates"]
+ if t == "LineString":
+ inner = ring(c)
+ elif t == "Polygon":
+ inner = "[\n " + ",\n ".join(ring(r) for r in c) + "]"
+ else:
+ inner = "[\n " + ",\n ".join("[" + ",\n ".join(ring(r) for r in poly) + "]" for poly in c) + "]"
+ return '{"type":"' + t + '","coordinates":' + inner + "}"
+ meta = json.dumps({k: v for k, v in doc.items() if k != "features"}, ensure_ascii=False, indent=1)
+ feats = ",\n".join('{"type":"Feature",\n "properties":' + json.dumps(f["properties"], ensure_ascii=False, separators=(",", ":"))
+ + ',\n "geometry":' + geom_text(json.loads(json.dumps(f["geometry"]))) + "}" for f in doc["features"])
+ text = meta[:-2] + ',\n "features":[\n' + feats + "\n]}\n"
+ assert json.loads(text) == json.loads(json.dumps(doc)), "write() must round-trip"
+ path.write_text(text, encoding="utf-8")
+
+
+def build(syria_pdf: Path, syria_tif: Path, gaza: Path, mv1: Path, mv2: Path, jordan_map: Path, log=print) -> dict:
+ import shapely
+ from shapely.geometry import LineString, MultiPolygon, Point
+ check(syria_pdf, SYRIA_PDF); check(syria_tif, SYRIA_TIF); check(gaza, GAZA_SHEET); check(mv1, MV_SHEET1); check(mv2, MV_SHEET2); check(jordan_map, JORDAN_MAP)
+ feats = []
+ # Lebanon
+ leb, leb_diag = lebanon()
+ feats.append(feature("lebanon_adl", "lebanon", "line", "Armistice Demarcation Line (Lebanon-Israel): the international boundary",
+ LineString(leb),
+ f"about +-1 km: the Mandate frontier digitised from the Survey of Palestine 1:750,000 map for the 1948 sub-districts "
+ f"(its uncertain segments, Ras en Naqura and the Metulla tip, to about +-1.5 km); its east end lies "
+ f"{leb_diag['tripoint_offset_km']} km from the tripoint of the Syria agreement's Annex I (MR 208.7-294.2).",
+ "Art. V.1: 'The Armistice Demarcation Line shall follow the international boundary between the Lebanon and "
+ "Palestine.' The boundary is the 1923 line (boundary pillars), taken as the Mandate frontier already "
+ "digitised (content/map/subdistricts_1948.geojson), from the coast at Ras en Naqura to the Lebanon-Syria-Palestine tripoint.",
+ [UNTS, MANDATE_FRONTIER], {"diagnostics": leb_diag}))
+ # Syria
+ verts, diag = syria_line(syria_pdf, log)
+ adl = LineString(verts)
+ parts, tif_fits, _ = syria_dmz(syria_tif, log)
+ near = lambda p: p.distance(adl) < 3.0 and p.area > 0.3 # the legend's swatch, in the lake far from the line, is not
+ keep = [p for p in parts if near(p)]
+ dropped = [round(p.area, 2) for p in parts if not near(p)]
+ # parts within 1 km of each other are one part (the hatching is cut by the Yarmuk at El Hamma)
+ groups = []
+ for p in sorted(keep, key=lambda q: -q.centroid.y):
+ for gp in groups:
+ if any(p.distance(q) < 1.0 for q in gp):
+ gp.append(p); break
+ else:
+ groups.append([p])
+ names = {0: ("syria_dmz_north", "Demilitarized Zone (Syria-Israel), northern part: Banias and Tell el Qadi"),
+ 1: ("syria_dmz_central", "Demilitarized Zone (Syria-Israel), central part: Dardara, the Jordan and Mishmar HaYarden"),
+ 2: ("syria_dmz_south", "Demilitarized Zone (Syria-Israel), southern part: Ein Gev and El Hamma")}
+ if len(groups) != 3:
+ raise SystemExit(f"expected the Demilitarized Zone in three parts on the map, found {len(groups)}")
+ diag["dmz_areas_km2"] = {}
+ shore = {k: v["on_green"] for k, v in diag["traced"].items() if k in ("9-10", "10-11")}
+ adl_text = ("the Annex I points exact; stretches the text calls 'a line' straight between them; the others traced on the "
+ "annexed map's green line. Evidence, independent of the trace: the map's own 1-km grid fits each sheet at "
+ f"{max(max(f['grid_rms_m']) for f in diag['fits'].values()):.0f} m rms before the points register the scan; where the "
+ "line is the Demilitarized Zone's edge it agrees with the hatching of the other scan (separately georeferenced) "
+ "to a median of 12-98 m per stretch. (The points' distance to the green ink after registration, median "
+ f"{np.median(list(diag['annex_points_to_green_m'].values())):.0f} m, is small by construction and is not evidence.) "
+ "About +-0.1 km (the MR precision) at the points and +-0.1-0.2 km along the traced stretches, except the two short "
+ f"Lake Hula shoreline stretches, 9-10 and 10-11, only {shore['9-10']:.0%} and {shore['10-11']:.0%} on green ink "
+ "(under 1.5 km each; error bounded by their length, about +-0.3 km). Lake Hula's shoreline is the 1949 one (the lake was "
+ "drained in the 1950s).")
+ stretches = [{"from": u, "to": v, "how": h, "text": w} for (u, v), (h, w) in SYRIA_STRETCHES.items()]
+ feats.append(feature("syria_adl", "syria", "line", "Armistice Demarcation Line (Syria-Israel)", adl, adl_text,
+ "Annex I's 24 items (typed from UNTS vol. 42 pp. 342-344) converted from the Palestine Grid (EPSG:28191); "
+ "the stretches between points as below; Art. V.3: the line is as delineated on the map of Annex I.",
+ [UNTS, SYRIA_PDF], {"annex_points": [{"label": l, "mr": [e, n]} for l, e, n in SYRIA_POINTS], "stretches": stretches,
+ "diagnostics": {"annex_points_to_green_m": diag["annex_points_to_green_m"], "traced": diag["traced"]}}))
+ for i, gp in enumerate(groups):
+ geom = shapely.union_all(gp)
+ fid, name = names[i]
+ diag["dmz_areas_km2"][fid] = round(geom.area, 2)
+ feats.append(feature(fid, "syria", "zone", name, geom,
+ "about +-0.1-0.2 km: the edge of the hatching on the 1:50,000 map (hatch spacing about 0.17 km; the "
+ "zone's narrowest tips, under two hatch spacings wide, are under-drawn); georeference rms "
+ f"{max(max(f['rms_m']) for f in tif_fits.values()):.0f} m on the map's 1-km grid.",
+ "Art. V.5: where the line departs from the international boundary, the area between them is a "
+ "Demilitarized Zone, which also takes in the Ein Gev and Dardara sectors; its outline is the hatched "
+ "area of the annexed map ('Demilitarized zone' in the legend), vectorised from the hatching.",
+ [UNTS, SYRIA_TIF],
+ {"area_km2": round(geom.area, 2), "withdrawal": "Annex II: forces out of the zone within 12 weeks of signing (by 12 Oct 1949), in three sectors (3, 6 and 12 weeks)"}))
+ total = round(sum(diag["dmz_areas_km2"].values()), 1)
+ # cross-check of the two scans: where Art. V.5 makes the line the zone's edge, the line (colour scan) and the hatching's
+ # edge (1-bit scan, its own georeference) should coincide; the median distance per stretch, metres
+ edges = shapely.union_all([shapely.union_all(gp).boundary for gp in groups])
+ pts = {l: (e, n) for l, e, n in SYRIA_POINTS}
+ agree = {}
+ for (u, v) in SYRIA_STRETCHES:
+ seg = LineString([pts[u], pts[v]]) if SYRIA_STRETCHES[(u, v)][0] == "line" else None
+ if seg is None:
+ i0 = next(i for i, c in enumerate(verts) if abs(c[0] - pts[u][0]) < 1e-9 and abs(c[1] - pts[u][1]) < 1e-9)
+ i1 = next(i for i, c in enumerate(verts) if i > i0 and abs(c[0] - pts[v][0]) < 1e-9 and abs(c[1] - pts[v][1]) < 1e-9)
+ seg = LineString(verts[i0:i1 + 1])
+ d = [edges.distance(seg.interpolate(f, normalized=True)) for f in np.linspace(0.05, 0.95, 19)]
+ agree[f"{u}-{v}"] = round(float(np.median(d)) * 1000)
+ diag["line_to_zone_edge_median_m"] = agree
+ # Egypt
+ eg = egypt(gaza, log)
+ gaza_acc = ("about +-0.3 km: the Wadi Hasi mouth and Deir Suneid read off the 1:100,000 sheet (+-0.1 km; georeference rms "
+ f"{max(eg['fit']['rms_m']):.0f} m), the highway traced on it ({eg['fit']['highway_on_red_road']:.0%} of the trace on its red "
+ "fill) and offset 3 km; the turn at Deir Suneid ('in an easterly direction through Deir Suneid and across the highway') "
+ "is read as the mouth-Deir Suneid direction carried on to the offset line. Cross-check: S/1471's demarcation line "
+ "(1950) lies on it, by eye within about 0.1 km, between MR 103-100.2 and 107-102.8. The Art. VI.3 Deir Suneid outpost "
+ "('on the north side of the Wadi', MR 1075-1090) lies 0.5 km from it.")
+ feats.append(feature("egypt_adl_gaza", "egypt", "line", "Armistice Demarcation Line (Egypt-Israel) of 1949, Gaza-Rafah area: Wadi Hasi to Gaza",
+ LineString(eg["adl"]), gaza_acc,
+ "Art. VI.1 (para. 2.B(i) of the Memorandum of 13 November 1948): from the coast at the mouth of the Wadi "
+ "Hasi in an easterly direction through Deir Suneid and across the Gaza-Al Majdal Highway to a point 3 km "
+ "east of the highway, then southerly parallel to the highway. Built on the Survey of Palestine sheet "
+ "'Gaza' (georeferenced on its 10-km grid), as far as the highway runs (to Gaza).",
+ [EGYPT_TEXT, UNTS, MEMO, GAZA_SHEET, S1471, IBS46],
+ {"outposts_check": eg["outposts"], "gap": EGYPT_SOUTH_GAP}))
+ feats.append(feature("egypt_el_auja_dmz", "egypt", "zone", "El Auja Demilitarized Zone (Egypt-Israel)", eg["auja"],
+ "+-0.1 km at the four Art. VIII.2 points; the closing stretch is the 1906 frontier from the Mandate data "
+ f"(about +-1 km; the two frontier points lie {eg['frontier_offsets_km']['El Auja P1']} and "
+ f"{eg['frontier_offsets_km']['El Auja P4']} km from it).",
+ "Art. VIII.2: from the frontier 5 km NW of the Rafah-El Auja road crossing (MR 0875-0468) to Khashm El "
+ "Mamdud (MR 0965-0414), Hill 405 (MR 1078-0285), the frontier 5 km SE of the old railway crossing "
+ "(MR 0995-0145), and back along the Egypt-Palestine frontier.",
+ [EGYPT_TEXT, UNTS, MANDATE_FRONTIER],
+ {"points": [{"label": l, "mr": [e, n]} for l, e, n in EL_AUJA], "area_km2": round(eg["auja"].area, 1)}))
+ # Egypt, 1950: the modus vivendi (owner ruling 2026-10-11: its own dated feature; the 1949 stretch south of Gaza stays undrawn)
+ from shapely.geometry import MultiLineString
+ mv = egypt_1950(mv1, mv2, log)
+ feats.append(feature("egypt_mv1950_demarcation", "egypt", "line",
+ "Demarcation line as drawn on the signed 1950 modus vivendi map (Gaza-Rafah area)",
+ MultiLineString(mv["pieces"]),
+ "about +-0.1 km: waypoints read on the drawn dash-dot of the signed 1:20,000 sheets every 0.5-1 km and joined "
+ f"straight (georeference rms {max(mv['rms_m']['sheet1'] + mv['rms_m']['sheet2']):.0f} m; the dash-dot is about 12 m "
+ f"wide; ink within 3 px along {', '.join(f'{x:.0%}' for x in mv['on_ink'])} of each piece); the three points "
+ "the text puts on the line are exact. " + MV_GAPS,
+ "The modus vivendi of 22 February 1950 (S/1471) sets local patrol zones A, B and C beside the demarcation line "
+ "and, by its Art. III, does not change either party's position on the Art. VI.1 line; its signed map draws that "
+ "line (dash-dot, 'Demarcation line'). Drawn here where the map draws it, through waypoints read off the "
+ "georeferenced sheets. A later drawing of the 1949 line, kept as its own feature and date.",
+ [MV_TEXT, MV_SHEET1, MV_SHEET2],
+ {"label_note": "1950 modus vivendi", "pieces_on_ink": mv["on_ink"], "gaps": MV_GAPS,
+ "text_points_on_line": [list(p) for p in sorted(MV_TEXT_POINTS)]}, agreement=MV_AGREEMENT))
+ feats.append(feature("egypt_mv1950_zone_lines", "egypt", "line",
+ "Zone A and zone C lines of the 1950 modus vivendi (Gaza-Rafah area)",
+ MultiLineString([MV_ZONE_A, MV_ZONE_C]),
+ "+-0.1 km (the MR precision): straight lines between the text's points, as Art. I.1 describes them; on the "
+ "signed map they lie on the drawn zone lines to within its georeference (about 20 m).",
+ "Art. I.1(a): zone A between the demarcation line and the line MR 10170-11160, 10690-10740 (the railway "
+ "crossing), 10795-10640, 10900-10565, 10880-10480, 10810-10410, to the demarcation line at 10695-10240; "
+ "(c): zone C between the demarcation line and the line MR 08935-08590, 09035-07970, 08970-07790, to the "
+ "demarcation line at 08735-07670. Zone A was patrolled by Israel, zones B and C by Egypt (Art. II). Zone B "
+ "('between the line of (a) and the Egyptian fighting line north of Beit Lahaya') has no points in the text.",
+ [MV_TEXT, MV_SHEET1, MV_SHEET2],
+ {"label_note": "1950 modus vivendi", "zone_a": [list(p) for p in MV_ZONE_A], "zone_c": [list(p) for p in MV_ZONE_C]},
+ agreement=MV_AGREEMENT))
+ # Jordan (owner ruling 2026-10-11): from the low-resolution UNISPAL copy of map 1, every feature marked low-accuracy
+ jo = jordan(jordan_map, log)
+ gn, gs = jo["georeference"]["north"], jo["georeference"]["south"]
+ def jo_acc(sheet_note: str, on_ink: float) -> str:
+ return ("LOW ACCURACY, about " + sheet_note + ": traced from a low-resolution copy of the signed map 1 (1:250,000; about "
+ "51 m a pixel; the pen line is about 5 px, 250 m, wide), georeferenced on town symbols (north sheet leave-one-out "
+ f"rms {gn['leave_one_out_rms_km']} km, max {gn['leave_one_out_max_km']}; south sheet {gs['leave_one_out_rms_km']} km, "
+ f"max {gs['leave_one_out_max_km']}); {on_ink:.0%} of the trace on the pen ink. To be replaced from a full-resolution scan.")
+ jq = {"source_quality": "low_res_scan",
+ "source_quality_note": "Traced from the UNISPAL copy of map 1 (3119 x 8630 px); to be replaced from a full-resolution scan."}
+ stage_dates = {"a_triangle": ("1949-05-08", "Art. VI.3(a), by 8 May 1949", "Baqa to Kafr Qasim"),
+ "b_wadi_ara": ("1949-05-22", "Art. VI.3(b), by 22 May 1949", "Wadi Ara, Zubeiba to Baqa"),
+ "c_east": ("1949-07-17", "Art. VI.3(c), by 17 July 1949", "Zubeiba to the Jordan"),
+ "c_south": ("1949-07-17", "Art. VI.3(c), by 17 July 1949", "Kafr Qasim to Kh Deir Arab")}
+ for key, geom in jo["stages"].items():
+ date, why, where = stage_dates[key]
+ f = feature(f"jordan_adl_iraqi_{key}", "jordan", "line",
+ f"Armistice Demarcation Line (Jordan-Israel), line A, {where} ({why})",
+ geom, jo_acc("+-1-1.5 km", jo["traces"]["A_iraqi"]["on_ink"]),
+ "Art. VI.2: line A on map 1 (the sector held by Iraqi forces), traced from the map; dated by Art. VI.3's "
+ "stages, shown from each deadline (until then the existing military lines held; they are not drawn). " + JORDAN_STAGES,
+ [UNTS, JORDAN_MAP, JORDAN_TOWNS], {**jq, "stage": why, "sector_cuts_km": jo["cuts"]})
+ f["properties"]["shown_from"] = date
+ feats.append(f)
+ for key, name, sheet_note, method in [
+ ("a_latrun", "Armistice Demarcation Line (Jordan-Israel), Kh Deir Arab to Jerusalem (Latrun)", "+-1-1.5 km",
+ "Art. V.1(a): from Kh Deir Arab (MR 1510-1574; line A cut at the trace point nearest it) to the northern end of the "
+ "Jerusalem lines, the truce lines as certified by UNTSO, as drawn on map 1; at Latrun the trace follows the outer drawn loop (the two lines and the "
+ "no-man's-land between them are not legible at this resolution); it stops at Jerusalem's western edge."),
+ ("bc_south", "Armistice Demarcation Line (Jordan-Israel), Jerusalem to the Dead Sea (line B, Hebron-Dead Sea)", "+-1-2 km",
+ "Art. V.1(b)-(c): from Jerusalem's southern edge west of Bethlehem, down past Beit Jibrin and round to the Dead Sea "
+ "north of Ein Gedi and on to the Dead Sea point MR 1925-0958, where sector (d) begins (cut at the trace point nearest "
+ "it), as drawn on map 1 (line B marked in the Hebron-Dead Sea sector); where the Jerusalem lines end and line B "
+ "begins is not legible, so the stretch is one feature."),
+ ("d_arava", "Armistice Demarcation Line (Jordan-Israel), the Dead Sea to the Gulf of Aqaba", "+-1.5-2.5 km, up to about 3 km at the Gulf of Aqaba",
+ "Art. V.1(d): from the Dead Sea (MR 1925-0958) to the southernmost tip of Palestine, the positions surveyed by UN "
+ "observers in March 1949, as drawn on map 1 (through the Dead Sea and down the Wadi Araba).")]:
+ extra = dict(jq)
+ if key == "d_arava":
+ # independent check: south of the Dead Sea the 1949 line followed the Mandate frontier, which the sub-district
+ # data has (about +-1 km); the trace's distance to it every 8 km of northing
+ ring = LineString(max(mandate_land().geoms, key=lambda q: q.area).exterior.coords)
+ arava = jo["sectors"][key]
+ cs = list(arava.coords)
+ ds = [round(ring.distance(Point(e, n)), 2) for e, n in cs[::max(1, len(cs) // 40)] if n < 66]
+ extra["check_against_mandate_frontier_km"] = {"median": float(np.median(ds)), "max": float(max(ds)),
+ "note": "trace points south of N 66 (the Arava) to the Mandate frontier"}
+ feats.append(feature(f"jordan_adl_{key}", "jordan", "line", name, jo["sectors"][key],
+ jo_acc(sheet_note, jo["traces"][key]["on_ink"]), method, [UNTS, JORDAN_MAP, JORDAN_TOWNS], extra))
+ fronts = []
+ for key, (agr, date, place, docsym) in AGREEMENTS.items():
+ f = {"key": key, "agreement": agr, "signed": date, "document": docsym}
+ if key == "jordan":
+ f.update({"shown_from": date, "data": True, "source_quality": "low_res_scan",
+ "low_accuracy": "Traced from a low-resolution copy of the signed map 1 (about +-1-2.5 km); to be replaced from a full-resolution scan.",
+ "gap": JORDAN_GAPS, "searched": JORDAN_SEARCH,
+ "dating": "from 1949-04-03 for sectors (a), (b) (not drawn), (c), (d); line A in the Iraqi sector in stages "
+ "(Art. VI.3): 1949-05-08, 1949-05-22 and 1949-07-17; until each stage the earlier military line held (not drawn)."})
+ else:
+ f.update({"shown_from": date, "data": True})
+ if key == "egypt":
+ f["gap"] = (EGYPT_SOUTH_GAP + " From 22 Feb 1950 the line as drawn on the signed modus vivendi map (S/1471) is a "
+ "separate feature (egypt_mv1950_demarcation), with its zone A and C lines (egypt_mv1950_zone_lines). Art. VI.4: "
+ "in the Bethlehem-Hebron area no line was demarcated (left to a later agreement); nothing is drawn there.")
+ fronts.append(f)
+ meta = {
+ "title": "The 1949 armistice lines that the primary sources allow (true lines, not hex-snapped)",
+ "status": "draft", "checked": CHECKED, "generated_by": "tools/armistice_digitise.py",
+ "licence": "CC-BY-SA-4.0 (content/); coast from the Copernicus DEM (NOTICE)",
+ "licence_note": ("The agreements and their annexed maps are UN documents with symbols, not copyrighted (UN Administrative "
+ "Instruction ST/AI/189/Add.9/Rev.2, para. 2; Commons {{PD-UN-doc}}, {{PD-UN-map}}). The Gaza sheet and the "
+ "Mandate frontier are Government of Palestine works (decision D-B). Only the lines' positions, facts of "
+ "the agreements, are taken, redrawn by our own method; no image is copied."),
+ "sources": [UNTS, SYRIA_PDF, SYRIA_TIF, EGYPT_TEXT, MEMO, GAZA_SHEET, MANDATE_FRONTIER, IBS46, MV_TEXT, MV_SHEET1, MV_SHEET2, JORDAN_MAP, JORDAN_TOWNS],
+ "conversion": "Palestine Grid (EPSG:28191) to WGS84 by the EPSG Helmert transformation (2 m), pipeline in tools/armistice_digitise.py",
+ "fronts": fronts,
+ "partition": {"closed": False,
+ "why": "The lines do not yet enclose the areas each side held: the Egypt line stops at Gaza and the Jordan "
+ "line leaves out Jerusalem. Until they do, the Mandate sub-district layer stays as the base under them "
+ "(tools/borders_bake.py), each front's end recorded per front."},
+ "naming": "The agreements' own terms ('Armistice Demarcation Line', 'Demilitarized Zone'); owner review.",
+ "sensitivity": "Every feature awaits the owner's sensitivity review (docs/m3-release.md); status stays draft until fact-checked.",
+ "diagnostics": {"syria": {"dmz_total_km2": total, "line_to_zone_edge_median_m": diag["line_to_zone_edge_median_m"], "dmz_areas_km2": diag["dmz_areas_km2"], "dropped_hatch_km2": dropped,
+ "colour_registration": diag["fits"],
+ "grid_georeference_1bit": {k: {"rms_m": [round(x, 1) for x in f["rms_m"]], "obs": f["obs"]} for k, f in tif_fits.items()}},
+ "egypt": {"gaza_sheet_rms_m": [round(x, 1) for x in eg["fit"]["rms_m"]],
+ "highway_on_red_road": eg["fit"]["highway_on_red_road"], "highway_km": eg["highway_km"],
+ "wadi_hasi_mouth_mr": [round(v, 2) for v in eg["mouth"]], "deir_suneid_mr": [round(v, 2) for v in eg["deir_suneid"]]}},
+ }
+ return {"type": "FeatureCollection", "statecraft": meta, "features": feats}
+
+
+def main() -> None:
+ ap = argparse.ArgumentParser(description=__doc__.split("\n")[0])
+ ap.add_argument("--syria-pdf", required=True, type=Path)
+ ap.add_argument("--syria-tif", required=True, type=Path)
+ ap.add_argument("--gaza-sheet", required=True, type=Path)
+ ap.add_argument("--s1471-sheet1", required=True, type=Path)
+ ap.add_argument("--s1471-sheet2", required=True, type=Path)
+ ap.add_argument("--jordan-map", required=True, type=Path)
+ ap.add_argument("--out", type=Path, default=OUT)
+ args = ap.parse_args()
+ doc = build(args.syria_pdf, args.syria_tif, args.gaza_sheet, args.s1471_sheet1, args.s1471_sheet2, args.jordan_map)
+ write(doc, args.out)
+ for f in doc["features"]:
+ p = f["properties"]
+ print(f"{p['id']:24s} {p['kind']:5s} from {p['shown_from']}" + (f" {p['area_km2']} km2" if "area_km2" in p else ""))
+ print(json.dumps(doc["statecraft"]["diagnostics"], indent=1)[:3000])
+ print(f"wrote {args.out}")
+
+
+if __name__ == "__main__":
+ main()
diff --git a/tools/borders_bake.py b/tools/borders_bake.py
index 60ea04730..6e89e7e89 100644
--- a/tools/borders_bake.py
+++ b/tools/borders_bake.py
@@ -29,8 +29,11 @@ arithmetic in a fixed order; libm (cos for the km-per-degree scale, hypot for di
result is an integer id and whose ties would need two regions at the same distance to the last bit; the committed output
is rechecked by the tools tests on macOS and on Linux CI.
Display window (owner ruling 2026-10-11): the layer shows from the game's start (15 May 1948) until the 1949 armistice
-lines replace it, each front on its agreement's date once that data exists; until then it stays, labelled
-"Mandate sub-districts, 1947" (LABEL).
+lines replace it, each front on its agreement's date once that data exists, labelled "Mandate sub-districts, 1947"
+(LABEL). `fronts` gives each front's end (`until`): the agreement's date where content/map/armistice_lines_1949.geojson
+has its line, null where it has none. The layer as a whole ends (`shown_until`) only when every front has a date and
+the armistice lines enclose each side's area (the GeoJSON's `partition.closed`): the last date; until then (the Egypt line
+stops at Gaza, the Jordan line leaves out Jerusalem) it stays as the base under the armistice lines.
"""
import json
import sys
@@ -47,6 +50,7 @@ from geo import KM_PER_DEG_LAT, KM_PER_DEG_LON_EQ # noqa: E402
ROOT = Path(__file__).resolve().parents[1]
MAP = ROOT / "content" / "map"
SOURCE = MAP / "subdistricts_1948.geojson"
+ARMISTICE = MAP / "armistice_lines_1949.geojson"
OUT = MAP / "subdistrict_hexes_1948.yaml"
MAP_DIR = ROOT / "unity" / "Assets" / "StreamingAssets" / "map"
DEAD_SEA_1948_M = -392.0
@@ -257,16 +261,29 @@ def apply_places(cells: dict, places: list, hexes: dict, ids: dict) -> None:
cells[qr] = ids[next(iter(subs))]
-def render(source: dict, regions: list[dict], cells: dict) -> str:
+def front_ends(armistice: dict | None) -> list[tuple[str, str | None]]:
+ """(front, the date that front switches: its armistice features are drawn over this layer from then (MapRegions), or
+ None: no line data)."""
+ if armistice is None:
+ return []
+ return [(f["key"], f["shown_from"] if f.get("data") else None) for f in armistice["statecraft"]["fronts"]]
+
+
+def render(source: dict, regions: list[dict], cells: dict, armistice: dict | None = None) -> str:
meta = source["statecraft"]
+ ends = front_ends(armistice)
+ closed = bool(armistice and armistice["statecraft"].get("partition", {}).get("closed"))
+ until = max(d for _, d in ends) if ends and all(d for _, d in ends) and closed else None
lines = [HEADER,
"layer: subdistricts_1948\n",
f"title: {json.dumps(meta['title'])}\n",
f"line: {json.dumps('The true lines are the Survey of Palestine map of the 1947 Administrative Divisions Schedule (content/map/subdistricts_1948.geojson, status ' + meta['status'] + '); shown here to the nearest hex edge, up to half a hex (about 4 km) from the true line.')}\n",
f"label: {json.dumps(LABEL)} # shown on screen while the layer is drawn (owner ruling 2026-10-11)\n",
f"shown_from: {SHOWN_FROM} # the game's start\n",
- "shown_until: null # until the 1949 armistice lines replace it, each front on its agreement's date, once that data exists\n",
- "regions:\n"]
+ f"shown_until: {until or 'null'} # the last front's end, once the armistice lines enclose each side's area; null until then (the base under them)\n",
+ "fronts: # until: the date that front switches, its 1949 armistice features drawn over this layer from then (null: no line data)\n"]
+ lines += [f" - {{ key: {k}, until: {d or 'null'} }}\n" for k, d in ends]
+ lines += ["regions:\n"]
for r in regions:
lines.append(f" - {{ id: {r['id']}, key: {r['key']}, name: {json.dumps(r['name'])}, district: {json.dumps(r['district'])}, style: {r['style']} }}\n")
lines.append("hexes: # [q, r, region id], ordered by r then q\n")
@@ -281,7 +298,8 @@ def build() -> str:
elev, meta = load_elevation()
settlements = yaml.safe_load((MAP / "settlements_1948.yaml").read_text(encoding="utf-8"))["settlements"]
regions, cells = bake(source, hexes, water_mask(elev, meta), meta, listed_places(settlements))
- return render(source, regions, cells)
+ armistice = json.loads(ARMISTICE.read_text(encoding="utf-8")) if ARMISTICE.exists() else None
+ return render(source, regions, cells, armistice)
def main() -> None:
diff --git a/tools/tests/test_armistice.py b/tools/tests/test_armistice.py
new file mode 100644
index 000000000..413faf636
--- /dev/null
+++ b/tools/tests/test_armistice.py
@@ -0,0 +1,374 @@
+"""The 1949 armistice lines: the Palestine-grid conversion, the true lines (content/map/armistice_lines_1949.geojson,
+tools/armistice_digitise.py) and their hex-snapped display layer (content/map/armistice_hexes_1949.yaml,
+tools/armistice_bake.py), and the per-front ends they give the 1948 sub-district layer (tools/borders_bake.py)."""
+import json
+import math
+import re
+from pathlib import Path
+
+import numpy as np
+import pytest
+import yaml
+
+import armistice_bake as ab
+import armistice_digitise as ad
+import borders_bake as bb
+
+ROOT = Path(__file__).resolve().parents[2]
+MAP = ROOT / "content" / "map"
+SOURCE = json.loads((MAP / "armistice_lines_1949.geojson").read_text(encoding="utf-8"))
+BAKED = yaml.safe_load((MAP / "armistice_hexes_1949.yaml").read_text(encoding="utf-8"))
+SUBD = yaml.safe_load((MAP / "subdistrict_hexes_1948.yaml").read_text(encoding="utf-8"))
+HEXES = json.loads((MAP / "hexes.json").read_text())
+FEATS = {f["properties"]["id"]: f for f in SOURCE["features"]}
+DATES = {"egypt": "1949-02-24", "lebanon": "1949-03-23", "jordan": "1949-04-03", "syria": "1949-07-20"}
+
+
+def km(lon_a, lat_a, lon_b, lat_b) -> float:
+ return math.hypot((lon_a - lon_b) * 111.32 * math.cos(math.radians(lat_a)), (lat_a - lat_b) * 110.57)
+
+
+# --- the conversion -------------------------------------------------------------------------------------------------
+
+def test_the_pinned_pipeline_is_pyprojs_epsg_28191_to_wgs84():
+ pyproj = pytest.importorskip("pyproj")
+ best = pyproj.transformer.TransformerGroup("EPSG:28191", "EPSG:4326", always_xy=True).transformers[0]
+ assert "Helmert" in best.description or best.accuracy == 2.0, best.description
+ for _, e, n in ad.SYRIA_POINTS + [(None, 87.5, 46.8), (None, 192.5, 95.8)]:
+ lon, lat = ad.mr_to_lonlat(e, n)
+ lon2, lat2 = best.transform(e * 1000, n * 1000)
+ assert abs(lon - lon2) < 1e-9 and abs(lat - lat2) < 1e-9
+
+
[email protected]("e, n, lon, lat, what", [
+ (208.7, 294.2, 35.6255, 33.2426, "Syria Annex I.1: the Lebanon-Syria-Palestine tripoint"),
+ (87.5, 46.8, 34.3462, 31.0094, "El Auja DMZ, Art. VIII.2: the frontier point NW of the Rafah-El Auja road"),
+ (192.5, 95.8, 35.4469, 31.4540, "Jordan Art. V.1(d): MR 1925-0958 on the Dead Sea's west shore"),
+])
+def test_known_mr_points_convert_to_the_research_notes_values(e, n, lon, lat, what):
+ pytest.importorskip("pyproj")
+ got = ad.mr_to_lonlat(e, n)
+ assert abs(got[0] - lon) < 5e-5 and abs(got[1] - lat) < 5e-5, what
+
+
+def test_the_conversion_round_trips():
+ pytest.importorskip("pyproj")
+ lon, lat = ad.mr_to_lonlat(209.6, 239.0)
+ e, n = ad.lonlat_to_mr(lon, lat)
+ assert abs(e - 209.6) < 1e-4 and abs(n - 239.0) < 1e-4 # 10 cm: the Helmert step inverts approximately (about 1 cm)
+
+
+def test_mr_values_are_km_with_no_false_northing_offset():
+ """EPSG:28193 (Israeli CS Grid) would add 1,000 km to the northings; the agreements' MR values are EPSG:28191."""
+ pytest.importorskip("pyproj")
+ lon, lat = ad.mr_to_lonlat(208.7, 294.2)
+ assert 33.0 < lat < 33.5 and 35.4 < lon < 35.8
+
+
+# --- the sources typed in -------------------------------------------------------------------------------------------
+
+def test_the_syria_annex_points_are_the_24_stops_of_annex_i_in_order():
+ labels = [p[0] for p in ad.SYRIA_POINTS]
+ assert len(labels) == 24 and labels[0] == "1" and labels[-1] == "24"
+ assert ("BP61", 210.6, 246.3) in ad.SYRIA_POINTS and ("BP66", 211.7, 240.1) in ad.SYRIA_POINTS
+ assert set(ad.SYRIA_STRETCHES) == set(zip(labels, labels[1:])), "every stretch between consecutive points is defined"
+ for (u, v), (how, why) in ad.SYRIA_STRETCHES.items():
+ assert how in ("line", "map") and why.startswith("Annex I."), (u, v)
+ if "along" in why or "Marabout" in why:
+ assert how == "map", f"{u}-{v}: the text follows a feature, so it is traced on the map"
+
+
+def test_the_el_auja_points_are_art_viii_2s():
+ assert [(e, n) for _, e, n in ad.EL_AUJA] == [(87.5, 46.8), (96.5, 41.4), (107.8, 28.5), (99.5, 14.5)]
+
+
+# --- the true lines -------------------------------------------------------------------------------------------------
+
+def test_fronts_are_the_four_agreements_and_jordan_is_low_accuracy():
+ fronts = {f["key"]: f for f in SOURCE["statecraft"]["fronts"]}
+ assert list(fronts) == ["egypt", "lebanon", "jordan", "syria"]
+ for k, f in fronts.items():
+ assert f["signed"] == DATES[k] and f["agreement"] and f["document"]
+ assert f["data"] is True and f["shown_from"] == DATES[k]
+ j = fronts["jordan"]
+ assert j["source_quality"] == "low_res_scan" and "full-resolution" in j["low_accuracy"]
+ assert "Jerusalem" in j["gap"] and "Mount Scopus" in j["gap"] and len(j["searched"]) >= 5
+ for stage in ("1949-05-08", "1949-05-22", "1949-07-17"):
+ assert stage in j["dating"]
+ assert SOURCE["statecraft"]["partition"]["closed"] is False
+
+
+def test_every_jordan_feature_is_marked_low_accuracy_and_staged():
+ jo = {k: f["properties"] for k, f in FEATS.items() if f["properties"]["front"] == "jordan"}
+ assert set(jo) == {"jordan_adl_iraqi_a_triangle", "jordan_adl_iraqi_b_wadi_ara", "jordan_adl_iraqi_c_east",
+ "jordan_adl_iraqi_c_south", "jordan_adl_a_latrun", "jordan_adl_bc_south", "jordan_adl_d_arava"}
+ for k, p in jo.items():
+ assert p["source_quality"] == "low_res_scan" and "replaced" in p["source_quality_note"], k
+ assert p["accuracy"].startswith("LOW ACCURACY"), k
+ assert ad.JORDAN_MAP["url"] in p["sources"], k
+ assert jo["jordan_adl_iraqi_a_triangle"]["shown_from"] == "1949-05-08"
+ assert jo["jordan_adl_iraqi_b_wadi_ara"]["shown_from"] == "1949-05-22"
+ assert jo["jordan_adl_iraqi_c_east"]["shown_from"] == jo["jordan_adl_iraqi_c_south"]["shown_from"] == "1949-07-17"
+ for k in ("jordan_adl_a_latrun", "jordan_adl_bc_south", "jordan_adl_d_arava"):
+ assert jo[k]["shown_from"] == "1949-04-03"
+
+
+def test_the_jordan_georeference_is_measured_not_assumed():
+ """Control points on the map's town symbols: rms and leave-one-out errors recorded, about 1-2.5 km."""
+ for k in ("jordan_adl_a_latrun", "jordan_adl_d_arava"):
+ acc = FEATS[k]["properties"]["accuracy"]
+ assert "leave-one-out" in acc and "51 m a pixel" in acc
+ assert len(ad.JORDAN_CONTROL) >= 25
+
+
+def test_the_commons_copy_without_provenance_is_never_a_source():
+ for f in SOURCE["features"]:
+ assert not any("commons.wikimedia.org" in s and "Green_Line" in s for s in f["properties"]["sources"])
+ assert "not used" in " ".join(ad.JORDAN_SEARCH)
+
+
+def test_the_1950_modus_vivendi_is_its_own_dated_feature():
+ for k in ("egypt_mv1950_demarcation", "egypt_mv1950_zone_lines"):
+ p = FEATS[k]["properties"]
+ assert p["shown_from"] == p["signed"] == "1950-02-22" and "modus vivendi" in p["agreement"].lower()
+ assert p["document"] == "S/1471" and p["label_note"] == "1950 modus vivendi"
+ assert "not drawn" in FEATS["egypt_mv1950_demarcation"]["properties"]["gaps"]
+ assert FEATS["egypt_adl_gaza"]["properties"]["shown_from"] == "1949-02-24"
+
+
+def test_each_feature_is_dated_sourced_and_draft():
+ assert {"lebanon_adl", "syria_adl", "syria_dmz_north", "syria_dmz_central", "syria_dmz_south",
+ "egypt_adl_gaza", "egypt_el_auja_dmz", "egypt_mv1950_demarcation"} <= set(FEATS)
+ for fid, f in FEATS.items():
+ p = f["properties"]
+ assert p["shown_from"] >= p["signed"], fid
+ if "mv1950" not in fid:
+ assert p["signed"] == DATES[p["front"]], fid
+ assert p["status"] == "draft" and p["checked"] == ad.CHECKED, fid
+ assert p["sources"] and all(s.startswith("https://") for s in p["sources"]), fid
+ assert p["accuracy"] and p["method"] and p["agreement"] and p["document"], fid
+ assert p["kind"] == ("zone" if f["geometry"]["type"] in ("Polygon", "MultiPolygon") else "line"), fid
+ meta = SOURCE["statecraft"]
+ assert meta["status"] == "draft" and meta["licence_note"] and "sensitivity" in meta
+
+
+def test_no_later_green_line_drawing_is_a_source():
+ """Owner ruling: a later drawing may only be a named cross-check (IBS 46 of 1965), unless it is its own dated feature
+ (the signed 1950 modus vivendi map, owner ruling 2026-10-11)."""
+ for s in SOURCE["statecraft"]["sources"]:
+ if "1965" in s["cite"]:
+ assert "cross-check" in s["cite"] + s["licence"], s["cite"]
+ for f in SOURCE["features"]:
+ if f["properties"]["signed"] != "1950-02-22":
+ assert not any("s1471" in u.lower() or "khan_yunis" in u for u in f["properties"]["sources"]) or f["properties"]["id"] == "egypt_adl_gaza"
+ for f in SOURCE["features"]:
+ for url in f["properties"]["sources"]:
+ assert "Green_Line" not in url and "Talknic" not in url, url
+
+
+def test_the_syria_line_passes_through_every_annex_point_in_order():
+ pytest.importorskip("pyproj")
+ coords = FEATS["syria_adl"]["geometry"]["coordinates"]
+ i = 0
+ for label, e, n in ad.SYRIA_POINTS:
+ lon, lat = ad.mr_to_lonlat(e, n)
+ while i < len(coords) and km(*coords[i], lon, lat) > 0.002:
+ i += 1
+ assert i < len(coords), f"Annex I point {label} not on the line (in order)"
+
+
+def test_the_syria_line_and_zones_agree_where_the_zone_edge_is_the_line():
+ """Two scans, two georeferences: where Art. V.5 makes the line the zone's edge, they agree to about 0.1 km."""
+ agree = SOURCE["statecraft"]["diagnostics"]["syria"]["line_to_zone_edge_median_m"]
+ for stretch in ("1b-5a", "11-12", "12-13", "13-14", "14-15", "15-16", "16-17", "BP61-BP66", "21-22"):
+ assert agree[stretch] <= 100, (stretch, agree[stretch])
+ pts = FEATS["syria_adl"]["properties"]["diagnostics"]["annex_points_to_green_m"]
+ assert np.median(list(pts.values())) < 60 and max(pts.values()) < 150
+
+
+def test_the_demilitarized_zone_is_three_parts_of_about_65_km2():
+ areas = {k: FEATS[k]["properties"]["area_km2"] for k in ("syria_dmz_north", "syria_dmz_central", "syria_dmz_south")}
+ assert 60 <= sum(areas.values()) <= 70, areas
+ assert areas["syria_dmz_north"] < areas["syria_dmz_central"] < areas["syria_dmz_south"] + 10
+
+
+def test_rings_are_closed_and_lines_are_inside_the_map():
+ b = HEXES["bounds"]
+ for fid, f in FEATS.items():
+ g = f["geometry"]
+ rings = [g["coordinates"]] if g["type"] == "LineString" else (g["coordinates"] if g["type"] in ("Polygon", "MultiLineString") else [r for p in g["coordinates"] for r in p])
+ for r in rings:
+ if g["type"] in ("Polygon", "MultiPolygon"):
+ assert r[0] == r[-1] and len(r) >= 4, fid
+ for lon, lat in r:
+ assert b["lon0"] - 0.1 <= lon <= b["lon1"] + 0.1 and b["lat0"] - 0.1 <= lat <= b["lat1"] + 0.1, fid
+
+
+def test_the_el_auja_zone_has_the_four_art_viii_points_as_corners():
+ pytest.importorskip("pyproj")
+ ring = FEATS["egypt_el_auja_dmz"]["geometry"]["coordinates"][0]
+ for name, e, n in ad.EL_AUJA:
+ lon, lat = ad.mr_to_lonlat(e, n)
+ assert min(km(x, y, lon, lat) for x, y in ring) < 0.002, name
+
+
+def test_the_lebanon_line_is_the_frontier_from_the_coast_to_the_tripoint():
+ pytest.importorskip("pyproj")
+ c = FEATS["lebanon_adl"]["geometry"]["coordinates"]
+ tri = ad.mr_to_lonlat(208.7, 294.2)
+ ends = (c[0], c[-1])
+ assert min(km(*e, *ad.NAQURA) for e in ends) < 2.0, "west end at Ras en Naqura"
+ assert min(km(*e, *tri) for e in ends) < 1.0, "east end at the tripoint of the Syria agreement's Annex I"
+ assert 70 < sum(km(*a, *b) for a, b in zip(c, c[1:])) < 130
+
+
+def test_the_1949_egypt_line_runs_from_the_wadi_hasi_to_gaza_and_the_rest_is_a_stated_gap():
+ pytest.importorskip("pyproj")
+ p = FEATS["egypt_adl_gaza"]["properties"]
+ c = FEATS["egypt_adl_gaza"]["geometry"]["coordinates"]
+ e0, n0 = ad.lonlat_to_mr(*c[0])
+ assert abs(e0 - 102.5) < 0.3 and abs(n0 - 112.8) < 0.3, "starts at the Wadi Hasi mouth (sheet 9 'Gaza')"
+ ds = ad.mr_to_lonlat(107.5, 109.0)
+ assert min(km(x, y, *ds) for x, y in c) < 1.0, "through Deir Suneid (the Art. VI.3 outpost 'on the north side of the Wadi')"
+ assert min(ad.lonlat_to_mr(x, y)[1] for x, y in c) > 99.5, "not drawn south of Gaza: no source for that stretch"
+ assert "Cemetery" in p["gap"] and "not drawn" in p["gap"]
+ assert not any(f["properties"]["front"] == "egypt" and f["properties"]["kind"] == "zone" and "Gaza" in f["properties"]["name"]
+ for f in SOURCE["features"]), "the Egyptian-held area needs the whole line"
+
+
+def test_the_digitised_file_is_written_one_vertex_a_line_and_round_trips():
+ text = (MAP / "armistice_lines_1949.geojson").read_text(encoding="utf-8")
+ assert json.loads(text) == SOURCE
+ assert re.search(r'\n \[\d+\.\d+,\d+\.\d+\]', text), "one vertex per line, for reviewable diffs"
+
+
+# --- the display layer ----------------------------------------------------------------------------------------------
+
+def test_the_bake_is_reproducible():
+ assert ab.build() == (MAP / "armistice_hexes_1949.yaml").read_text(encoding="utf-8")
+
+
+def test_the_baked_layer_lists_the_fronts_zones_and_lines_with_their_dates():
+ assert BAKED["layer"] == "armistice_1949" and BAKED["label"] and "nearest hex edge" in BAKED["line"]
+ fronts = {f["key"]: f for f in BAKED["fronts"]}
+ assert {k: str(f["shown_from"]) for k, f in fronts.items()} == DATES
+ assert fronts["jordan"]["low_accuracy"] is True and fronts["egypt"]["low_accuracy"] is False
+ for z in BAKED["zones"]:
+ assert z["style"] == "secondary" and str(z["shown_from"]) == DATES[z["front"]]
+ lines = {x["key"]: x for x in BAKED["lines"]}
+ assert str(lines["egypt_mv1950_demarcation"]["signed"]) == "1950-02-22" and "modus vivendi" in lines["egypt_mv1950_demarcation"]["agreement"].lower()
+ assert all(x["low_accuracy"] for x in BAKED["lines"] if x["front"] == "jordan")
+ keys = {z["key"] for z in BAKED["zones"]} | {ln["key"] for ln in BAKED["lines"]}
+ assert keys == set(FEATS)
+
+
+def test_zone_hexes_are_land_hexes_of_the_subdistrict_layer_and_lines_are_on_the_map():
+ land = {(q, r) for q, r, _ in SUBD["hexes"]}
+ on_map = {(h["q"], h["r"]) for h in HEXES["hexes"]}
+ zone_ids = {z["id"] for z in BAKED["zones"]}
+ line_ids = {ln["id"] for ln in BAKED["lines"]}
+ cells = [(q, r) for q, r, _ in BAKED["zone_hexes"]]
+ assert len(cells) == len(set(cells))
+ for q, r, z in BAKED["zone_hexes"]:
+ assert (q, r) in land and z in zone_ids
+ for q, r, ln in BAKED["line_hexes"]:
+ assert (q, r) in on_map and ln in line_ids
+ for ln in line_ids:
+ assert any(x == ln for _, _, x in BAKED["line_hexes"]), f"line {ln} names some hex"
+
+
+def test_zones_too_narrow_for_a_hex_are_listed_not_widened():
+ """Snapping by centre: a zone with no hex centre inside stays in the true lines only, and the bake says so."""
+ with_hex = {z["key"] for z in BAKED["zones"] if any(x == z["id"] for _, _, x in BAKED["zone_hexes"])}
+ assert set(BAKED["no_hex"]) == {z["key"] for z in BAKED["zones"]} - with_hex
+
+
+def test_line_hexes_follow_the_line():
+ grid = HEXES
+ hexes = ab.line_hexes([[35.0, 32.0], [35.05, 32.0]], grid)
+ assert len(hexes) >= 1 and len(hexes) == len(set(hexes))
+
+
+# --- the sub-district layer's per-front ends ------------------------------------------------------------------------
+
+def test_the_subdistrict_layer_ends_per_front_on_each_agreement_with_a_line():
+ fronts = {f["key"]: str(f["until"]) for f in SUBD["fronts"]}
+ assert fronts == DATES
+ assert SUBD["shown_until"] is None, "the lines do not enclose each side's area yet, so the layer stays as the base"
+
+
+def test_the_layer_ends_as_a_whole_only_when_every_front_has_a_line_and_they_close():
+ fake = {"statecraft": {"fronts": [{"key": "a", "data": True, "shown_from": "1949-02-24"},
+ {"key": "b", "data": True, "shown_from": "1949-07-20"}], "partition": {"closed": True}}}
+ source = json.loads((MAP / "subdistricts_1948.geojson").read_text(encoding="utf-8"))
+ text = bb.render(source, [], {}, fake)
+ assert "shown_until: 1949-07-20" in text
+ fake["statecraft"]["partition"]["closed"] = False
+ assert "shown_until: null" in bb.render(source, [], {}, fake), "not while the lines leave gaps"
+ fake["statecraft"]["partition"]["closed"] = True
+ fake["statecraft"]["fronts"].append({"key": "c", "data": False, "shown_from": None})
+ assert "shown_until: null" in bb.render(source, [], {}, fake)
+
+
+def test_the_sim_never_reads_the_armistice_files():
+ """Display only: the content hash covers only files the sim reads (ContentLoader)."""
+ for cs in (ROOT / "sim" / "Statecraft.Sim").rglob("*.cs"):
+ assert not re.search(r"armistice_(lines|hexes)", cs.read_text(encoding="utf-8"), re.IGNORECASE), cs
+
+
+def test_the_1950_line_follows_the_drawn_dash_dot_not_the_sheet_frame_or_grid():
+ """Review C-1: piece 1 overlies the 1949 line (the dash-dot lies on it); no run of the trace sits on an integer-km grid
+ line or the N 100 neatline."""
+ pytest.importorskip("pyproj")
+ def km_pts(coords):
+ e, n = ad.lonlat_to_mr([c[0] for c in coords], [c[1] for c in coords])
+ return np.c_[e, n]
+ def dist_to_polyline(p, poly):
+ a, b = poly[:-1], poly[1:]; d = b - a
+ tt = np.clip(np.einsum("ij,ij->i", p - a, d) / np.maximum(np.einsum("ij,ij->i", d, d), 1e-12), 0, 1)
+ return float(np.min(np.hypot(*(a + tt[:, None] * d - p).T)))
+ l49 = km_pts(FEATS["egypt_adl_gaza"]["geometry"]["coordinates"])
+ pieces = FEATS["egypt_mv1950_demarcation"]["geometry"]["coordinates"]
+ p1 = km_pts(pieces[0])
+ samples = np.concatenate([np.linspace(a, b, 20, endpoint=False) for a, b in zip(p1[:-1], p1[1:])] + [p1[-1:]])
+ ds = [dist_to_polyline(s, l49) for s in samples]
+ assert max(ds) < 0.2 and float(np.median(ds)) < 0.06, (max(ds), np.median(ds))
+ for piece in pieces:
+ cs = [tuple(v) for v in km_pts(piece)]
+ for (e0, n0), (e1, n1) in zip(cs, cs[1:]):
+ on_grid = lambda v: abs(v - round(v)) < 0.015
+ assert not ((on_grid(e0) and on_grid(e1) and round(e0) == round(e1)) or (on_grid(n0) and on_grid(n1) and round(n0) == round(n1))), \
+ f"a stretch along a grid line: {(e0, n0)} -> {(e1, n1)}"
+ assert min(FEATS["egypt_mv1950_demarcation"]["properties"]["pieces_on_ink"]) > 0.45
+
+
+def test_jordan_sectors_are_cut_at_the_texts_own_points():
+ """Review I-1: line A ends at Kh Deir Arab (MR 1510-1574, Art. V.1(a)); sector (d) starts at MR 1925-0958."""
+ pytest.importorskip("pyproj")
+ def ends(fid):
+ c = FEATS[fid]["geometry"]["coordinates"]
+ return [tuple(float(v) for v in ad.lonlat_to_mr(*c[0])), tuple(float(v) for v in ad.lonlat_to_mr(*c[-1]))]
+ cuts = FEATS["jordan_adl_iraqi_c_south"]["properties"]["sector_cuts_km"]
+ kda, ds = ad.JORDAN_KH_DEIR_ARAB, ad.JORDAN_DEAD_SEA_POINT
+ near = lambda p, q, tol: math.hypot(p[0] - q[0], p[1] - q[1]) <= tol
+ assert near(ends("jordan_adl_iraqi_c_south")[1], kda, cuts["kh_deir_arab_km"] + 0.05)
+ assert near(ends("jordan_adl_a_latrun")[0], kda, cuts["kh_deir_arab_km"] + 0.05)
+ assert near(ends("jordan_adl_bc_south")[1], ds, cuts["dead_sea_point_km"] + 0.05)
+ assert near(ends("jordan_adl_d_arava")[0], ds, cuts["dead_sea_point_km"] + 0.05)
+ assert cuts["kh_deir_arab_km"] < 1.5 and cuts["dead_sea_point_km"] < 2.5
+
+
+def test_stage_dates_are_worded_as_deadlines_and_quote_the_article():
+ for k in ("a_triangle", "b_wadi_ara", "c_east", "c_south"):
+ p = FEATS[f"jordan_adl_iraqi_{k}"]["properties"]
+ assert ", by " in p["name"] and "Zububa" not in p["name"], p["name"]
+ assert "thence to the east of Kafr Qasim" in ad.JORDAN_STAGES and "deadlines" in ad.JORDAN_STAGES
+
+
+def test_no_stale_statements_about_the_1950_line():
+ """Review I-3."""
+ egypt = next(f for f in SOURCE["statecraft"]["fronts"] if f["key"] == "egypt")
+ assert "is later and not drawn" not in egypt["gap"]
+ assert "Art. V (the signed map decides)" not in ad.MV_TEXT["cite"] and "used only as a named cross-check" not in ad.S1471["cite"]
+ urls = [s["url"] for s in SOURCE["statecraft"]["sources"]]
+ assert len(urls) == len(set(urls)), "each source listed once"
diff --git a/unity/Assets/Editor/MapCapture.cs b/unity/Assets/Editor/MapCapture.cs
index b28345139..7d5da851b 100644
--- a/unity/Assets/Editor/MapCapture.cs
+++ b/unity/Assets/Editor/MapCapture.cs
@@ -170,9 +170,16 @@ public static class MapCapture
var map = OpenAndBuild();
// The unit art slice only when asked (-units, from tools/art_checkpoint.sh --units), as ?shot&units shows it.
if (System.Array.IndexOf(args, "-units") >= 0) Statecraft.Game.Map.Units.UnitShowcase.Spawn(map, still: true);
- // The 1948 sub-districts, as play draws them (GameRoot.Begin), so the editor renders pair with the WebGL shots.
+ // The 1948 sub-districts and the 1949 armistice lines, as play draws them (GameRoot.Begin), so the editor renders pair
+ // with the WebGL shots: on the game's start by default, or on -regionsDate yyyy-MM-dd (a 1949 date shows the
+ // armistice zones in force then).
var subdistricts = Subdistricts1948.Parse(File.ReadAllText(Path.Combine(Paths.Content, "map", Subdistricts1948.FileName)));
- subdistricts.Apply(subdistricts.ShownFrom); // the game's start
+ var regions = new MapRegions(subdistricts, Armistice1949.Parse(File.ReadAllText(Path.Combine(Paths.Content, "map", Armistice1949.FileName))));
+ int dateAt = System.Array.IndexOf(args, "-regionsDate");
+ var date = dateAt >= 0 && dateAt + 1 < args.Length
+ ? System.DateTime.ParseExact(args[dateAt + 1], "yyyy-MM-dd", System.Globalization.CultureInfo.InvariantCulture)
+ : subdistricts.ShownFrom;
+ regions.Apply(date);
// The border renderer's synthetic proof only when asked (-borderproof, from tools/art_checkpoint.sh --borderproof).
if (System.Array.IndexOf(args, "-" + BorderProof.Flag) >= 0) BorderProof.Show(map);
var rig = Camera.main.GetComponent<CameraRig>();
diff --git a/unity/Assets/Scripts/Boot/GameInputs.cs b/unity/Assets/Scripts/Boot/GameInputs.cs
index 241352755..599e05b1a 100644
--- a/unity/Assets/Scripts/Boot/GameInputs.cs
+++ b/unity/Assets/Scripts/Boot/GameInputs.cs
@@ -21,6 +21,9 @@ namespace Statecraft.Game.Boot
/// <summary>content/map/settlement_population_1945.yaml (the settlement kits' footprints; "" when absent). The sim
/// never reads it.</summary>
public string PopulationYaml = "";
+ /// <summary>content/map/armistice_hexes_1949.yaml: the 1949 armistice lines drawn over it from their dates (display
+ /// only; "" when absent: no armistice layer, like the other cosmetic map inputs).</summary>
+ public string ArmisticeYaml = "";
/// <summary>heightmap.r16z as read: packed (HeightmapCodec); HeightmapLoader decodes it when the map is built.</summary>
public byte[] HeightmapR16z = new byte[0];
}
@@ -43,6 +46,7 @@ namespace Statecraft.Game.Boot
RoutesYaml = ReadIfExists(Path.Combine(contentDir, "map", Statecraft.Game.Map.Routes.RoutePaths.DefaultFileName)),
PopulationYaml = File.Exists(Path.Combine(contentDir, "map", Statecraft.Game.Map.Kits.KitPopulation.FileName))
? File.ReadAllText(Path.Combine(contentDir, "map", Statecraft.Game.Map.Kits.KitPopulation.FileName)) : "",
+ ArmisticeYaml = ReadIfExists(Path.Combine(contentDir, "map", Armistice1949.FileName)),
};
/// <summary>A map-only, cosmetic input: "" when the file is missing (the map then skips that layer with a warning).</summary>
@@ -66,6 +70,7 @@ namespace Statecraft.Game.Boot
RegionsYaml = texts["map/" + Subdistricts1948.FileName],
RoutesYaml = texts.TryGetValue("map/" + Statecraft.Game.Map.Routes.RoutePaths.DefaultFileName, out var routes) ? routes : "",
PopulationYaml = texts.TryGetValue("map/" + Statecraft.Game.Map.Kits.KitPopulation.FileName, out var pop) ? pop : "",
+ ArmisticeYaml = texts.TryGetValue("map/" + Armistice1949.FileName, out var armistice) ? armistice : "",
},
};
}
diff --git a/unity/Assets/Scripts/Map/Armistice1949.cs b/unity/Assets/Scripts/Map/Armistice1949.cs
new file mode 100644
index 000000000..699ade48e
--- /dev/null
+++ b/unity/Assets/Scripts/Map/Armistice1949.cs
@@ -0,0 +1,149 @@
+#nullable enable
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using YamlDotNet.Core;
+using YamlDotNet.Serialization;
+using YamlDotNet.Serialization.NamingConventions;
+
+namespace Statecraft.Game.Map
+{
+ /// <summary>The 1949 armistice lines as the map shows them: content/map/armistice_hexes_1949.yaml, which
+ /// tools/armistice_bake.py snaps from the true lines (content/map/armistice_lines_1949.geojson;
+ /// tools/armistice_digitise.py). Per front (Egypt, Lebanon, Jordan, Syria), the agreement and the date its line is shown
+ /// from (null for a front without line data, which keeps the Mandate layer and is labelled so), and whether it is
+ /// low-accuracy (Jordan, traced from a low-resolution scan); zones (the Demilitarized Zones),
+ /// drawn over the sub-districts from their date (<see cref="MapRegions"/>); lines, named in the info panel on the hexes
+ /// they pass through. Display only: the sim never reads the file.</summary>
+ public sealed class Armistice1949
+ {
+ public const string FileName = "armistice_hexes_1949.yaml";
+
+ public sealed class Front
+ {
+ public string Key = "", Name = "", Agreement = "", Note = ""; public DateTime Signed; public DateTime? ShownFrom;
+ /// <summary>Traced from a low-resolution scan (Jordan, owner ruling 2026-10-11): said on the map label.</summary>
+ public bool LowAccuracy;
+ /// <summary>Whether the front's line is shown on <paramref name="date"/> (never, without line data).</summary>
+ public bool InForce(DateTime date) => ShownFrom != null && date >= ShownFrom.Value;
+ }
+
+ public sealed class Item
+ {
+ public int Id; public string Key = "", Name = ""; public Front Front = null!; public DateTime ShownFrom; public BorderStyle Style;
+ /// <summary>The item's own agreement and date (the 1950 modus vivendi is not its front's 1949 agreement), a note
+ /// for the map label ("" for none), and whether it is low-accuracy.</summary>
+ public string Agreement = "", LabelNote = ""; public DateTime Signed; public bool LowAccuracy;
+ public bool InForce(DateTime date) => date >= ShownFrom;
+ }
+
+ public readonly string Title, Line, Label;
+ public readonly IReadOnlyList<Front> Fronts;
+ public readonly IReadOnlyList<Item> Zones, Lines;
+ readonly Dictionary<(int q, int r), Item> zoneAt;
+ readonly Dictionary<(int q, int r), List<Item>> linesAt;
+
+ Armistice1949(string title, string line, string label, List<Front> fronts, List<Item> zones, List<Item> lines,
+ Dictionary<(int q, int r), Item> zoneAt, Dictionary<(int q, int r), List<Item>> linesAt)
+ {
+ Title = title; Line = line; Label = label; Fronts = fronts; Zones = zones; Lines = lines; this.zoneAt = zoneAt; this.linesAt = linesAt;
+ }
+
+ public Front? FrontOf(string key) => Fronts.FirstOrDefault(f => f.Key == key);
+
+ /// <summary>The zone drawn on the hex on <paramref name="date"/>, or null.</summary>
+ public Item? ZoneAt(int q, int r, DateTime date) => zoneAt.TryGetValue((q, r), out var z) && z.InForce(date) ? z : null;
+
+ /// <summary>The lines in force on <paramref name="date"/> that pass through the hex.</summary>
+ public IEnumerable<Item> LinesAt(int q, int r, DateTime date) =>
+ linesAt.TryGetValue((q, r), out var l) ? l.Where(x => x.InForce(date)) : Enumerable.Empty<Item>();
+
+ /// <summary>The hexes of a zone (for composing the drawn layer).</summary>
+ public IEnumerable<(int q, int r)> HexesOf(Item zone) => zoneAt.Where(kv => kv.Value == zone).Select(kv => kv.Key);
+
+ sealed class FrontRow { public string Key { get; set; } = ""; public string Name { get; set; } = ""; public string Agreement { get; set; } = ""; public string Signed { get; set; } = ""; public string? ShownFrom { get; set; } public bool LowAccuracy { get; set; } public string Note { get; set; } = ""; }
+ sealed class ItemRow { public int Id { get; set; } public string Key { get; set; } = ""; public string Front { get; set; } = ""; public string Name { get; set; } = ""; public string ShownFrom { get; set; } = ""; public string Style { get; set; } = "secondary"; public string? Agreement { get; set; } public string? Signed { get; set; } public string LabelNote { get; set; } = ""; public bool LowAccuracy { get; set; } }
+ sealed class FileDoc
+ {
+ public string Layer { get; set; } = ""; public string Title { get; set; } = ""; public string Line { get; set; } = ""; public string Label { get; set; } = "";
+ public List<FrontRow> Fronts { get; set; } = new List<FrontRow>(); public List<ItemRow> Zones { get; set; } = new List<ItemRow>(); public List<ItemRow> Lines { get; set; } = new List<ItemRow>();
+ public List<string> NoHex { get; set; } = new List<string>();
+ public List<List<int>> ZoneHexes { get; set; } = new List<List<int>>(); public List<List<int>> LineHexes { get; set; } = new List<List<int>>();
+ }
+
+ /// <summary>Parses the baked file. Every malformed input throws InvalidDataException naming the file and the entry.</summary>
+ public static Armistice1949 Parse(string yaml)
+ {
+ if (string.IsNullOrWhiteSpace(yaml)) throw new InvalidDataException($"{FileName}: empty");
+ FileDoc? doc;
+ try { doc = new DeserializerBuilder().WithNamingConvention(UnderscoredNamingConvention.Instance).WithDuplicateKeyChecking().Build().Deserialize<FileDoc>(yaml); }
+ catch (YamlException e) { throw new InvalidDataException($"{FileName}: line {e.Start.Line}: {e.InnerException?.Message ?? e.Message}", e); }
+ if (doc == null || string.IsNullOrWhiteSpace(doc.Layer)) throw new InvalidDataException($"{FileName}: no layer");
+ if (string.IsNullOrWhiteSpace(doc.Label)) throw new InvalidDataException($"{FileName}: no label (the layer is labelled on screen)");
+ if (doc.Fronts.Count == 0) throw new InvalidDataException($"{FileName}: no fronts");
+ var fronts = new List<Front>();
+ foreach (var f in doc.Fronts)
+ {
+ if (string.IsNullOrWhiteSpace(f.Key) || string.IsNullOrWhiteSpace(f.Name) || string.IsNullOrWhiteSpace(f.Agreement))
+ throw new InvalidDataException($"{FileName}: front '{f.Key}': key, name and agreement are required");
+ if (fronts.Any(x => x.Key == f.Key)) throw new InvalidDataException($"{FileName}: front '{f.Key}' twice");
+ var signed = Date(f.Signed, $"front {f.Key} signed") ?? throw new InvalidDataException($"{FileName}: front {f.Key}: signed is required");
+ var from = Date(f.ShownFrom, $"front {f.Key} shown_from");
+ if (from == null && string.IsNullOrWhiteSpace(f.Note)) throw new InvalidDataException($"{FileName}: front {f.Key} has no line data and no note saying so");
+ if (from != null && from < signed) throw new InvalidDataException($"{FileName}: front {f.Key}: shown_from is before the agreement was signed");
+ fronts.Add(new Front { Key = f.Key, Name = f.Name, Agreement = f.Agreement, Signed = signed, ShownFrom = from, Note = f.Note, LowAccuracy = f.LowAccuracy });
+ }
+ List<Item> Items(List<ItemRow> rows, string kind)
+ {
+ var items = new List<Item>();
+ foreach (var z in rows)
+ {
+ var front = fronts.FirstOrDefault(f => f.Key == z.Front) ?? throw new InvalidDataException($"{FileName}: {kind} {z.Id} ({z.Key}): unknown front '{z.Front}'");
+ if (front.ShownFrom == null) throw new InvalidDataException($"{FileName}: {kind} {z.Id} ({z.Key}): its front {front.Key} has no line data");
+ if (string.IsNullOrWhiteSpace(z.Key) || string.IsNullOrWhiteSpace(z.Name)) throw new InvalidDataException($"{FileName}: {kind} {z.Id}: key and name are required");
+ if (items.Any(x => x.Id == z.Id)) throw new InvalidDataException($"{FileName}: {kind} id {z.Id} twice");
+ if (z.Id < 1 || z.Id > 999) throw new InvalidDataException($"{FileName}: {kind} id {z.Id} outside 1..999");
+ var from = Date(z.ShownFrom, $"{kind} {z.Key} shown_from") ?? throw new InvalidDataException($"{FileName}: {kind} {z.Key}: shown_from is required");
+ var style = z.Style switch
+ {
+ "primary" => BorderStyle.Primary, "secondary" => BorderStyle.Secondary,
+ _ => throw new InvalidDataException($"{FileName}: {kind} {z.Id} ({z.Key}): unknown style '{z.Style}'"),
+ };
+ var signed = Date(z.Signed, $"{kind} {z.Key} signed") ?? front.Signed;
+ if (from < signed) throw new InvalidDataException($"{FileName}: {kind} {z.Key}: shown_from is before its agreement was signed");
+ items.Add(new Item { Id = z.Id, Key = z.Key, Name = z.Name, Front = front, ShownFrom = from, Style = style,
+ Agreement = string.IsNullOrWhiteSpace(z.Agreement) ? front.Agreement : z.Agreement!, Signed = signed,
+ LabelNote = z.LabelNote, LowAccuracy = z.LowAccuracy || front.LowAccuracy });
+ }
+ return items;
+ }
+ var zones = Items(doc.Zones, "zone");
+ var lines = Items(doc.Lines, "line");
+ var zoneAt = new Dictionary<(int q, int r), Item>();
+ foreach (var h in doc.ZoneHexes)
+ {
+ if (h == null || h.Count != 3) throw new InvalidDataException($"{FileName}: a zone hex row is not [q, r, zone]");
+ var z = zones.FirstOrDefault(x => x.Id == h[2]) ?? throw new InvalidDataException($"{FileName}: hex ({h[0]}, {h[1]}) is in zone {h[2]}, which is not listed");
+ if (zoneAt.ContainsKey((h[0], h[1]))) throw new InvalidDataException($"{FileName}: hex ({h[0]}, {h[1]}) is in two zones");
+ zoneAt[(h[0], h[1])] = z;
+ }
+ var linesAt = new Dictionary<(int q, int r), List<Item>>();
+ foreach (var h in doc.LineHexes)
+ {
+ if (h == null || h.Count != 3) throw new InvalidDataException($"{FileName}: a line hex row is not [q, r, line]");
+ var l = lines.FirstOrDefault(x => x.Id == h[2]) ?? throw new InvalidDataException($"{FileName}: hex ({h[0]}, {h[1]}) is on line {h[2]}, which is not listed");
+ if (!linesAt.TryGetValue((h[0], h[1]), out var list)) linesAt[(h[0], h[1])] = list = new List<Item>();
+ if (!list.Contains(l)) list.Add(l);
+ }
+ return new Armistice1949(doc.Title, doc.Line, doc.Label, fronts, zones, lines, zoneAt, linesAt);
+ }
+
+ static DateTime? Date(string? text, string key)
+ {
+ if (string.IsNullOrWhiteSpace(text) || text == "null") return null;
+ if (DateTime.TryParseExact(text, "yyyy-MM-dd", System.Globalization.CultureInfo.InvariantCulture, System.Globalization.DateTimeStyles.None, out var d)) return d;
+ throw new InvalidDataException($"{FileName}: {key} '{text}' is not a yyyy-MM-dd date");
+ }
+ }
+}
diff --git a/unity/Assets/Scripts/Map/Armistice1949.cs.meta b/unity/Assets/Scripts/Map/Armistice1949.cs.meta
new file mode 100644
index 000000000..79071e8b4
--- /dev/null
+++ b/unity/Assets/Scripts/Map/Armistice1949.cs.meta
@@ -0,0 +1,2 @@
+fileFormatVersion: 2
+guid: f3b770e7ccd13476dbe7501a3a35e50e
\ No newline at end of file
diff --git a/unity/Assets/Scripts/Map/MapRegions.cs b/unity/Assets/Scripts/Map/MapRegions.cs
new file mode 100644
index 000000000..16039382a
--- /dev/null
+++ b/unity/Assets/Scripts/Map/MapRegions.cs
@@ -0,0 +1,127 @@
+#nullable enable
+using System;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Linq;
+
+namespace Statecraft.Game.Map
+{
+ /// <summary>What the region renderer draws on a date (owner rulings 2026-10-11): the Mandate sub-districts
+ /// (<see cref="Subdistricts1948"/>) from 15 May 1948 as the base, and each front's 1949 armistice features from the date
+ /// that front switches: the sub-district layer's per-front end (<see cref="Subdistricts1948.FrontReplaced"/>, its
+ /// agreement's date), only for fronts whose line exists (<see cref="Switched"/>). From then the front's zones (the
+ /// Demilitarized Zones) are drawn over the sub-districts in the secondary style, its lines are named in the info panel on
+ /// the hexes they pass through (where a line is the Mandate frontier, as for Lebanon, the band already drawn is that
+ /// line) and the map label names the front; the sub-district bands themselves stay as the base. A front without line data keeps the Mandate layer, and the map label says so; a low-accuracy front
+ /// (Jordan) is labelled so. The layer as a whole leaves the map only on the sub-district layer's own end
+ /// (<see cref="Subdistricts1948.ShownUntil"/>), null until the armistice lines enclose each side's area. Display only: reads no sim state but the date it is given.</summary>
+ public sealed class MapRegions
+ {
+ /// <summary>Zones are region ids ZoneIdBase + zone id in the composed layer, apart from the sub-districts' ids.</summary>
+ public const int ZoneIdBase = 1000;
+
+ public readonly Subdistricts1948 Subdistricts;
+ public readonly Armistice1949? Armistice;
+ readonly Dictionary<string, RegionLayer> composed = new Dictionary<string, RegionLayer>();
+
+ public MapRegions(Subdistricts1948 subdistricts, Armistice1949? armistice)
+ {
+ Subdistricts = subdistricts ?? throw new ArgumentNullException(nameof(subdistricts));
+ Armistice = armistice;
+ }
+
+ /// <summary>Whether <paramref name="front"/>'s armistice line has replaced the Mandate layer there on
+ /// <paramref name="date"/>: the sub-district layer's own per-front end (<see cref="Subdistricts1948.FrontReplaced"/>)
+ /// when it lists the front, else the front's own date. A front without line data never switches.</summary>
+ public bool Switched(Armistice1949.Front front, DateTime date) =>
+ front.ShownFrom != null && (Subdistricts.Fronts.ContainsKey(front.Key) ? Subdistricts.FrontReplaced(front.Key, date) : front.InForce(date));
+
+ /// <summary>An item (zone or line) is shown from its own date, once its front has switched.</summary>
+ public bool InForce(Armistice1949.Item item, DateTime date) => item.InForce(date) && Switched(item.Front, date);
+
+ /// <summary>The armistice zones drawn on <paramref name="date"/>, in file order.</summary>
+ public IReadOnlyList<Armistice1949.Item> ZonesOn(DateTime date) =>
+ Armistice == null ? Array.Empty<Armistice1949.Item>() : Armistice.Zones.Where(z => InForce(z, date)).ToList();
+
+ /// <summary>The zone drawn on the hex on <paramref name="date"/>, or null.</summary>
+ public Armistice1949.Item? ZoneAt(int q, int r, DateTime date)
+ {
+ var z = Armistice?.ZoneAt(q, r, DateTime.MaxValue);
+ return z != null && InForce(z, date) ? z : null;
+ }
+
+ /// <summary>The armistice lines shown through the hex on <paramref name="date"/>.</summary>
+ public IEnumerable<Armistice1949.Item> LinesAt(int q, int r, DateTime date) =>
+ Armistice == null ? Enumerable.Empty<Armistice1949.Item>() : Armistice.LinesAt(q, r, DateTime.MaxValue).Where(l => InForce(l, date));
+
+ /// <summary>The layer drawn on <paramref name="date"/>: null outside the sub-district layer's window; the
+ /// sub-district layer itself while no armistice zone is in force; otherwise that layer with the zones in force drawn
+ /// over it (one composed layer per set of zones, built once).</summary>
+ public RegionLayer? LayerOn(DateTime date)
+ {
+ if (!Subdistricts.ShowsOn(date)) return null;
+ var zones = ZonesOn(date);
+ if (zones.Count == 0) return Subdistricts.Layer;
+ var key = string.Join(",", zones.Select(z => z.Id));
+ if (composed.TryGetValue(key, out var layer)) return layer;
+ var hexes = Subdistricts.Layer.Hexes.ToDictionary(h => h, h => Subdistricts.Layer.RegionOf(h.q, h.r));
+ var styles = hexes.Values.Distinct().ToDictionary(id => id, id => Subdistricts.Layer.StyleOf(id));
+ foreach (var z in zones)
+ {
+ styles[ZoneIdBase + z.Id] = z.Style;
+ foreach (var h in Armistice!.HexesOf(z)) hexes[h] = ZoneIdBase + z.Id;
+ }
+ return composed[key] = new RegionLayer(Subdistricts.Layer.Name + "+armistice_1949", hexes, styles);
+ }
+
+ bool? shownState; RegionLayer? drawn;
+ /// <summary>Whether the last <see cref="Apply"/> drew a layer.</summary>
+ public bool Shown => shownState == true;
+
+ /// <summary>Draws the layer for <paramref name="date"/> (MapBorders.Use) when it differs from the one drawn; a call
+ /// that changes nothing leaves the map alone. Off the window, the layer is taken off if it is still ours.</summary>
+ public void Apply(DateTime date)
+ {
+ var layer = LayerOn(date);
+ if (shownState != null && ReferenceEquals(layer, drawn)) return;
+ shownState = layer != null;
+ if (layer != null) MapBorders.Use(layer);
+ else if (drawn != null && MapBorders.Current == drawn) MapBorders.Use(null);
+ drawn = layer;
+ }
+
+ /// <summary>The fronts whose armistice line is shown on <paramref name="date"/>, and those that keep the Mandate
+ /// layer for want of line data (only listed once some front's line is shown).</summary>
+ public (IReadOnlyList<Armistice1949.Front> inForce, IReadOnlyList<Armistice1949.Front> noData) FrontsOn(DateTime date)
+ {
+ if (Armistice == null) return (Array.Empty<Armistice1949.Front>(), Array.Empty<Armistice1949.Front>());
+ var on = Armistice.Fronts.Where(f => Switched(f, date)).ToList();
+ var none = on.Count == 0 ? new List<Armistice1949.Front>() : Armistice.Fronts.Where(f => f.ShownFrom == null).ToList();
+ return (on, none);
+ }
+
+ /// <summary>The map label: the sub-district layer's, and once a front's line is shown, those fronts and the fronts
+ /// still without line data. <paramref name="withLines"/> formats {0} label, {1} armistice label, {2} front names;
+ /// <paramref name="noData"/> formats {0} a front's name, appended for each front without data; <paramref name="low"/>
+ /// formats {0} a low-accuracy front's name (Jordan, from a low-resolution scan); <paramref name="note"/> formats {0} a
+ /// front's name and {1} the notes of its items shown (the 1950 modus vivendi).</summary>
+ public string Label(DateTime date, string withLines, string noData, string low = "{0}", string note = "{0} ({1})")
+ {
+ var (on, none) = FrontsOn(date);
+ if (on.Count == 0 || Armistice == null) return Subdistricts.Label;
+ string Name(Armistice1949.Front f)
+ {
+ var n = f.LowAccuracy ? string.Format(CultureInfo.InvariantCulture, low, f.Name) : f.Name;
+ var notes = Armistice.Zones.Concat(Armistice.Lines).Where(x => x.Front == f && InForce(x, date) && x.LabelNote != "")
+ .Select(x => x.LabelNote).Distinct().ToList();
+ return notes.Count == 0 ? n : string.Format(CultureInfo.InvariantCulture, note, n, string.Join(", ", notes));
+ }
+ var text = string.Format(CultureInfo.InvariantCulture, withLines, Subdistricts.Label, Armistice.Label, string.Join(", ", on.Select(Name)));
+ foreach (var f in none) text += string.Format(CultureInfo.InvariantCulture, noData, f.Name);
+ return text;
+ }
+
+ /// <summary>The agreement's date as players read it ("24 February 1949").</summary>
+ public static string DateText(DateTime d) => d.ToString("d MMMM yyyy", CultureInfo.InvariantCulture);
+ }
+}
diff --git a/unity/Assets/Scripts/Map/MapRegions.cs.meta b/unity/Assets/Scripts/Map/MapRegions.cs.meta
new file mode 100644
index 000000000..980eb39aa
--- /dev/null
+++ b/unity/Assets/Scripts/Map/MapRegions.cs.meta
@@ -0,0 +1,2 @@
+fileFormatVersion: 2
+guid: 1a58121bfd68a49e2b5fab56c880ae99
\ No newline at end of file
diff --git a/unity/Assets/Scripts/Map/Subdistricts1948.cs b/unity/Assets/Scripts/Map/Subdistricts1948.cs
index abfcbe9ff..1bb2f36c1 100644
--- a/unity/Assets/Scripts/Map/Subdistricts1948.cs
+++ b/unity/Assets/Scripts/Map/Subdistricts1948.cs
@@ -14,9 +14,11 @@ namespace Statecraft.Game.Map
/// (content/map/subdistricts_1948.geojson; tools/borders_digitise.py). Each land hex is in one sub-district, or in the
/// "outside" region (style none: the sub-districts' bands run along the Mandate frontier, nothing beyond it); sea and
/// lake hexes are in none, so the coast is not outlined. Display only: the sim never reads the file. Owner ruling
- /// (2026-10-11): it shows from the game's start (<see cref="ShownFrom"/>) until the 1949 armistice lines replace it, each
- /// front on its agreement's date once that data exists (<see cref="ShownUntil"/> null until then), labelled on screen
- /// with <see cref="Label"/> (GameRoot's "map-layer" label above the minimap, while the layer is drawn).</summary>
+ /// (2026-10-11): it shows from the game's start (<see cref="ShownFrom"/>), labelled on screen with <see cref="Label"/>
+ /// (GameRoot's "map-layer" label above the minimap, while the layer is drawn). <see cref="Fronts"/>: each front's switch
+ /// date, its agreement's, from which <see cref="MapRegions"/> draws that front's armistice features over this layer
+ /// (null: no line data, the front never switches); <see cref="ShownUntil"/> is the layer's end as a whole, null while
+ /// the armistice lines leave gaps (the layer stays as the base under them).</summary>
public sealed class Subdistricts1948
{
public const string FileName = "subdistrict_hexes_1948.yaml";
@@ -32,10 +34,17 @@ namespace Statecraft.Game.Map
public readonly DateTime ShownFrom;
/// <summary>The first date the layer is no longer shown (null: until replaced, no end set yet).</summary>
public readonly DateTime? ShownUntil;
+ /// <summary>Per front (key), the first date that front switches: from then MapRegions draws its armistice features over
+ /// this layer, which stays as the base; null: never (no line data). Empty when the file names no fronts.</summary>
+ public readonly IReadOnlyDictionary<string, DateTime?> Fronts;
readonly Dictionary<int, Region> regions;
- Subdistricts1948(RegionLayer layer, string title, string line, string label, DateTime from, DateTime? until, Dictionary<int, Region> regions)
- { Layer = layer; Title = title; Line = line; Label = label; ShownFrom = from; ShownUntil = until; this.regions = regions; }
+ Subdistricts1948(RegionLayer layer, string title, string line, string label, DateTime from, DateTime? until, Dictionary<int, Region> regions,
+ Dictionary<string, DateTime?> fronts)
+ { Layer = layer; Title = title; Line = line; Label = label; ShownFrom = from; ShownUntil = until; this.regions = regions; Fronts = fronts; }
+
+ /// <summary>Whether the front's armistice line has replaced this layer there by <paramref name="date"/>.</summary>
+ public bool FrontReplaced(string front, DateTime date) => Fronts.TryGetValue(front, out var u) && u != null && date >= u.Value;
/// <summary>Whether the map shows the layer on <paramref name="date"/> (the turn's date).</summary>
public bool ShowsOn(DateTime date) => date >= ShownFrom && (ShownUntil == null || date < ShownUntil.Value);
@@ -47,7 +56,8 @@ namespace Statecraft.Game.Map
regions.TryGetValue(Layer.RegionOf(q, r), out var x) && x.Style != BorderStyle.None ? x : null;
sealed class FileRow { public int Id { get; set; } public string Key { get; set; } = ""; public string Name { get; set; } = ""; public string District { get; set; } = ""; public string Style { get; set; } = ""; }
- sealed class FileDoc { public string Layer { get; set; } = ""; public string Title { get; set; } = ""; public string Line { get; set; } = ""; public string Label { get; set; } = ""; public string ShownFrom { get; set; } = ""; public string? ShownUntil { get; set; } public List<FileRow> Regions { get; set; } = new List<FileRow>(); public List<List<int>> Hexes { get; set; } = new List<List<int>>(); }
+ sealed class FrontRow { public string Key { get; set; } = ""; public string? Until { get; set; } }
+ sealed class FileDoc { public string Layer { get; set; } = ""; public string Title { get; set; } = ""; public string Line { get; set; } = ""; public string Label { get; set; } = ""; public string ShownFrom { get; set; } = ""; public string? ShownUntil { get; set; } public List<FrontRow> Fronts { get; set; } = new List<FrontRow>(); public List<FileRow> Regions { get; set; } = new List<FileRow>(); public List<List<int>> Hexes { get; set; } = new List<List<int>>(); }
/// <summary>Parses the baked file. Every malformed input throws InvalidDataException naming the file and the entry.</summary>
public static Subdistricts1948 Parse(string yaml)
@@ -62,6 +72,15 @@ namespace Statecraft.Game.Map
var from = Date(doc.ShownFrom, "shown_from") ?? throw new InvalidDataException($"{FileName}: shown_from is required");
var until = Date(doc.ShownUntil, "shown_until");
if (until != null && until <= from) throw new InvalidDataException($"{FileName}: shown_until is not after shown_from");
+ var fronts = new Dictionary<string, DateTime?>();
+ foreach (var f in doc.Fronts)
+ {
+ if (string.IsNullOrWhiteSpace(f.Key)) throw new InvalidDataException($"{FileName}: a front has no key");
+ if (fronts.ContainsKey(f.Key)) throw new InvalidDataException($"{FileName}: front '{f.Key}' twice");
+ var u = Date(f.Until, $"front {f.Key} until");
+ if (u != null && u <= from) throw new InvalidDataException($"{FileName}: front {f.Key}: until is not after shown_from");
+ fronts[f.Key] = u;
+ }
var regions = new Dictionary<int, Region>(); var styles = new Dictionary<int, BorderStyle>();
foreach (var r in doc.Regions)
{
@@ -87,7 +106,7 @@ namespace Statecraft.Game.Map
// The label goes in the game's UI (GameRoot, the "map-layer" label), not the 3D banner, which the tilt-shift blurs.
try { layer = new RegionLayer(doc.Layer, hexes, styles); }
catch (ArgumentException e) { throw new InvalidDataException($"{FileName}: {e.Message}", e); }
- return new Subdistricts1948(layer, doc.Title, doc.Line, doc.Label, from, until, regions);
+ return new Subdistricts1948(layer, doc.Title, doc.Line, doc.Label, from, until, regions, fronts);
}
static DateTime? Date(string? text, string key)
diff --git a/unity/Assets/Scripts/UI/GameRoot.cs b/unity/Assets/Scripts/UI/GameRoot.cs
index 31f676004..60b7ef947 100644
--- a/unity/Assets/Scripts/UI/GameRoot.cs
+++ b/unity/Assets/Scripts/UI/GameRoot.cs
@@ -142,20 +142,22 @@ namespace Statecraft.Game.UI
Own(new WhyPresenter(root, bridge, text));
Own(new CabinetPresenter(root, bridge, text, portraits));
var names = SettlementPlacer.Parse(inputs.Map.SettlementsYaml).ToDictionary(s => s.Id, s => s.Name);
- // The 1948 sub-districts, outlined on the map (display only: the sim never reads them; docs/visual-v1.md).
- var subdistricts = Subdistricts1948.Show(inputs.Map.RegionsYaml, bridge.State.Date);
+ // The 1948 sub-districts, outlined on the map, and each front's 1949 armistice line from its agreement's date
+ // where the line exists (display only: the sim never reads them; docs/visual-v1.md, owner rulings 2026-10-11).
+ var regions = new MapRegions(Subdistricts1948.Parse(inputs.Map.RegionsYaml),
+ string.IsNullOrWhiteSpace(inputs.Map.ArmisticeYaml) ? null : Armistice1949.Parse(inputs.Map.ArmisticeYaml));
var layerLabel = root.Q<Label>("map-layer");
- layerLabel.text = subdistricts.Label;
- // Shown from the start until replaced (owner ruling 2026-10-11), with its label while drawn.
Action onDate = () =>
{
- subdistricts.Apply(bridge.State.Date);
- layerLabel.style.display = subdistricts.Shown ? DisplayStyle.Flex : DisplayStyle.None;
+ regions.Apply(bridge.State.Date);
+ layerLabel.text = regions.Label(bridge.State.Date, text["map.layer_with_armistice"], text["map.layer_front_no_data"],
+ text["map.layer_front_low"], text["map.layer_front_note"]);
+ layerLabel.style.display = regions.Shown ? DisplayStyle.Flex : DisplayStyle.None;
};
onDate();
bridge.Changed += onDate;
owned.Add(new Undo(() => bridge.Changed -= onDate));
- var info = Own(new InfoPanelPresenter(root, bridge, text, names, subdistricts));
+ var info = Own(new InfoPanelPresenter(root, bridge, text, names, regions));
// A smoke session never touches the player's save: no autosave, and no New Game (which deletes the autosave).
// Leaving New Game out is safer than handing it a throwaway store: no file is ever deleted, no path has to be
// right on every platform, and the scripted run never presses it.
diff --git a/unity/Assets/Scripts/UI/InfoPanelPresenter.cs b/unity/Assets/Scripts/UI/InfoPanelPresenter.cs
index 1c6054366..3aa3f7880 100644
--- a/unity/Assets/Scripts/UI/InfoPanelPresenter.cs
+++ b/unity/Assets/Scripts/UI/InfoPanelPresenter.cs
@@ -17,15 +17,16 @@ namespace Statecraft.Game.UI
readonly Label title, subtitle, region, settlements, placement, reason;
readonly UiIcon thumb;
readonly IReadOnlyDictionary<string, string> settlementNames;
- readonly Subdistricts1948? subdistricts;
+ readonly MapRegions? regions;
- /// <summary><paramref name="subdistricts"/>: the 1948 sub-districts the map outlines; the panel names the selected hex's
- /// (null: no region line).</summary>
+ /// <summary><paramref name="regions"/>: what the map outlines (the 1948 sub-districts and the 1949 armistice lines in
+ /// force); the panel names the selected hex's sub-district or armistice zone, and any armistice line through it, with
+ /// its agreement (null: no region line).</summary>
public InfoPanelPresenter(VisualElement root, SimBridge bridge, UiText text, IReadOnlyDictionary<string, string> settlementNames,
- Subdistricts1948? subdistricts = null)
+ MapRegions? regions = null)
{
panel = root.Q<VisualElement>("info-panel"); this.bridge = bridge; this.text = text;
- this.settlementNames = settlementNames; this.subdistricts = subdistricts;
+ this.settlementNames = settlementNames; this.regions = regions;
title = panel.Q<Label>("info-title"); subtitle = panel.Q<Label>("info-subtitle"); region = panel.Q<Label>("info-region"); settlements = panel.Q<Label>("info-settlements");
placement = panel.Q<Label>("info-placement"); reason = panel.Q<Label>("info-reason");
thumb = panel.Q<UiIcon>("info-thumb");
@@ -68,6 +69,20 @@ namespace Statecraft.Game.UI
thumb.style.backgroundColor = known ? new StyleColor(MapBuilder.BiomeColours[biome!]) : new StyleColor(StyleKeyword.Null);
}
+ /// <summary>The region lines for a hex on a date: its armistice zone (name, agreement, date) if one is in force, else
+ /// its 1948 sub-district; then each armistice line in force through it.</summary>
+ public static string RegionText(MapRegions regions, UiText text, int q, int r, System.DateTime date)
+ {
+ var parts = new List<string>();
+ var zone = regions.ZoneAt(q, r, date);
+ var sub = regions.Subdistricts.ShowsOn(date) ? regions.Subdistricts.SubdistrictAt(q, r) : null; // only while the map shows the layer
+ if (zone != null) parts.Add(text.Format("info.armistice_zone", zone.Name, zone.Agreement, MapRegions.DateText(zone.Signed)));
+ else if (sub != null) parts.Add(text.Format("info.region", sub.Name, sub.District));
+ foreach (var l in regions.LinesAt(q, r, date))
+ parts.Add(text.Format(l.LowAccuracy ? "info.armistice_line_low" : "info.armistice_line", l.Name, l.Agreement, MapRegions.DateText(l.Signed)));
+ return string.Join("\n", parts);
+ }
+
public void Render()
{
var c = bridge.Content; var s = bridge.State;
@@ -87,9 +102,9 @@ namespace Statecraft.Game.UI
var owned = c.SettlementHexes.Where(x => x.Q == q && x.R == r).Select(x => settlementNames[x.Id]).ToList(); // strict: every settlement hex has a name (final review M4)
title.text = owned.Count > 0 ? owned[0] : hex == null ? text["info.off_map"] : text["info.biome." + hex.Biome];
subtitle.text = hex == null ? "" : text.Format("info.hex", text["info.biome." + hex.Biome], hex.ElevM); // no debug coordinates in player text (playtest 2, P2-6)
- // The sub-district on 15 May 1948, and that its true line is drawn to the nearest hex edge (the owner's ruling).
- var sub = subdistricts != null && subdistricts.Shown ? subdistricts.SubdistrictAt(q, r) : null; // only while the map shows the layer
- region.text = sub == null ? "" : text.Format("info.region", sub.Name, sub.District);
+ // The armistice zone in force, else the sub-district on 15 May 1948, and any armistice line in force through the
+ // hex, each with its agreement (true lines drawn to the nearest hex edge: the owner's ruling).
+ region.text = regions == null ? "" : RegionText(regions, text, q, r, s.Date);
settlements.text = owned.Count > 0 ? text.Format("info.owned", string.Join(", ", owned)) : "";
var here = MapActions.At(s, q, r);
var queued = bridge.QueuedLike(new MapAction(MapActions.Housing, q, r)) as MapAction;
diff --git a/unity/Assets/Tests/EditMode/ArmisticeTests.cs b/unity/Assets/Tests/EditMode/ArmisticeTests.cs
new file mode 100644
index 000000000..960f91b7d
--- /dev/null
+++ b/unity/Assets/Tests/EditMode/ArmisticeTests.cs
@@ -0,0 +1,322 @@
+#nullable enable
+using System;
+using System.Collections;
+using System.IO;
+using System.Linq;
+using NUnit.Framework;
+using Statecraft.Game;
+using Statecraft.Game.Boot;
+using Statecraft.Game.Map;
+using Statecraft.Game.UI;
+using Statecraft.Sim;
+using UnityEditor;
+using UnityEditor.SceneManagement;
+using UnityEngine;
+using UnityEngine.TestTools;
+using UnityEngine.UIElements;
+using Object = UnityEngine.Object;
+
+/// <summary>armistice-lines: the 1949 armistice lines (content/map/armistice_hexes_1949.yaml, baked by
+/// tools/armistice_bake.py from the true lines in armistice_lines_1949.geojson) replace the Mandate sub-district layer per
+/// front on each agreement's date, only for fronts whose line exists (owner rulings 2026-10-11); the info panel names the
+/// line and the agreement; the sim never reads them.</summary>
+public class ArmisticeTests
+{
+ static GameInputs? inputs;
+ static GameInputs Inputs => inputs ??= GameInputs.FromDisk(Paths.Content, Paths.StreamingMap);
+ static string ArmText => File.ReadAllText(Path.Combine(Paths.Content, "map", Armistice1949.FileName));
+ static string SubText => File.ReadAllText(Path.Combine(Paths.Content, "map", Subdistricts1948.FileName));
+ static UiText Text => UiText.Parse(AssetDatabase.LoadAssetAtPath<TextAsset>(UiPaths.Strings).text);
+ static MapRegions Regions() => new MapRegions(Subdistricts1948.Parse(SubText), Armistice1949.Parse(ArmText));
+ static readonly DateTime Start = new DateTime(1948, 5, 15), Egypt = new DateTime(1949, 2, 24), Lebanon = new DateTime(1949, 3, 23),
+ Jordan = new DateTime(1949, 4, 3), Syria = new DateTime(1949, 7, 20);
+ string saveDir = "";
+
+ [SetUp] public void TempSaves() => saveDir = Path.Combine(Path.GetTempPath(), "statecraft-arm-" + Guid.NewGuid().ToString("N"));
+
+ [TearDown]
+ public void DiscardScene()
+ {
+ EditorSceneManager.NewScene(NewSceneSetup.EmptyScene, NewSceneMode.Single); VisualToggles.Clear();
+ if (Directory.Exists(saveDir)) Directory.Delete(saveDir, true);
+ }
+
+ [Test]
+ public void TheBakedFileListsTheFourFrontsWithJordanLowAccuracy()
+ {
+ var a = Armistice1949.Parse(ArmText);
+ CollectionAssert.AreEqual(new[] { "egypt", "lebanon", "jordan", "syria" }, a.Fronts.Select(f => f.Key).ToArray());
+ Assert.AreEqual(Egypt, a.FrontOf("egypt")!.ShownFrom);
+ Assert.AreEqual(Lebanon, a.FrontOf("lebanon")!.ShownFrom);
+ Assert.AreEqual(Syria, a.FrontOf("syria")!.ShownFrom);
+ var jordan = a.FrontOf("jordan")!;
+ Assert.AreEqual(Jordan, jordan.ShownFrom);
+ Assert.IsTrue(jordan.LowAccuracy, "traced from a low-resolution scan (owner ruling)");
+ Assert.IsFalse(a.FrontOf("egypt")!.LowAccuracy);
+ StringAssert.Contains("Jerusalem", jordan.Note);
+ Assert.IsTrue(a.Lines.Where(l => l.Front == jordan).All(l => l.LowAccuracy));
+ // line A in the Iraqi sector comes in by Art. VI.3's stages
+ CollectionAssert.AreEquivalent(new[] { new DateTime(1949, 4, 3), new DateTime(1949, 5, 8), new DateTime(1949, 5, 22), new DateTime(1949, 7, 17) },
+ a.Lines.Where(l => l.Front == jordan).Select(l => l.ShownFrom).Distinct().ToArray());
+ StringAssert.Contains("nearest hex edge", a.Line);
+ Assert.AreEqual(4, a.Zones.Count);
+ Assert.AreEqual(12, a.Lines.Count);
+ var mv = a.Lines.Single(l => l.Key == "egypt_mv1950_demarcation");
+ Assert.AreEqual(new DateTime(1950, 2, 22), mv.ShownFrom);
+ Assert.AreEqual(new DateTime(1950, 2, 22), mv.Signed);
+ StringAssert.Contains("modus vivendi", mv.Agreement.ToLowerInvariant());
+ }
+
+ const string Head = "layer: x\nlabel: L\n";
+ const string Fronts = "fronts:\n - { key: e, name: E, agreement: A, signed: 1949-02-24, shown_from: 1949-02-24, note: '' }\n";
+ [TestCase("", "empty")]
+ [TestCase("layer: x\n" + Fronts, "no label")]
+ [TestCase(Head + "fronts: []\n", "no fronts")]
+ [TestCase(Head + "fronts:\n - { key: j, name: J, agreement: A, signed: 1949-04-03, shown_from: null, note: '' }\n", "no note saying so")]
+ [TestCase(Head + "fronts:\n - { key: e, name: E, agreement: A, signed: 1949-02-24, shown_from: 1949-02-01, note: '' }\n", "before the agreement")]
+ [TestCase(Head + Fronts + "zones:\n - { id: 1, key: z, front: s, name: Z, shown_from: 1949-02-24, style: secondary }\n", "unknown front")]
+ [TestCase(Head + Fronts + "zones:\n - { id: 1, key: z, front: e, name: Z, shown_from: 1949-02-24, style: purple }\n", "unknown style")]
+ [TestCase(Head + Fronts + "zones:\n - { id: 1, key: z, front: e, name: Z, shown_from: 24/02/1949, style: secondary }\n", "not a yyyy-MM-dd")]
+ [TestCase(Head + Fronts + "zone_hexes:\n - [0, 0, 2]\n", "not listed")]
+ [TestCase(Head + Fronts + "zones:\n - { id: 1, key: z, front: e, name: Z, shown_from: 1949-02-24, style: secondary }\nzone_hexes:\n - [0, 0, 1]\n - [0, 0, 1]\n", "two zones")]
+ public void MalformedFilesAreRefusedNamingTheFile(string yaml, string why)
+ {
+ var e = Assert.Throws<InvalidDataException>(() => Armistice1949.Parse(yaml));
+ StringAssert.Contains(Armistice1949.FileName, e.Message); StringAssert.Contains(why, e.Message);
+ }
+
+ /// <summary>The Mandate layer's per-front ends follow each agreement; the layer as a whole stays as the base, since the
+ /// lines do not yet enclose each side's area (the Egypt line stops at Gaza, the Jordan line leaves out Jerusalem).</summary>
+ [Test]
+ public void TheMandateLayerEndsPerFrontOnEachAgreementsDate()
+ {
+ var s = Subdistricts1948.Parse(SubText);
+ Assert.AreEqual(Egypt, s.Fronts["egypt"]);
+ Assert.AreEqual(Lebanon, s.Fronts["lebanon"]);
+ Assert.AreEqual(Jordan, s.Fronts["jordan"]);
+ Assert.AreEqual(Syria, s.Fronts["syria"]);
+ Assert.IsFalse(s.FrontReplaced("egypt", Egypt.AddDays(-1)));
+ Assert.IsTrue(s.FrontReplaced("egypt", Egypt));
+ Assert.IsFalse(s.FrontReplaced("jordan", Jordan.AddDays(-1)));
+ Assert.IsTrue(s.FrontReplaced("jordan", Jordan));
+ Assert.IsTrue(s.FrontReplaced("syria", Syria));
+ Assert.IsFalse(s.FrontReplaced("nowhere", Syria), "an unknown front never replaces the layer");
+ Assert.IsNull(s.ShownUntil, "the base stays while the lines leave gaps");
+ Assert.IsTrue(s.ShowsOn(new DateTime(1952, 12, 31)));
+ }
+
+ [Test]
+ public void EachFrontSwitchesOnItsAgreementsDate()
+ {
+ var m = Regions();
+ var a = m.Armistice!;
+ Assert.AreSame(m.Subdistricts.Layer, m.LayerOn(Start), "the game's start: the Mandate layer alone");
+ Assert.AreSame(m.Subdistricts.Layer, m.LayerOn(Egypt.AddDays(-1)));
+ Assert.IsNull(m.LayerOn(Start.AddDays(-1)), "before the layer's window");
+ var auja = a.Zones.Single(z => z.Key == "egypt_el_auja_dmz");
+ var hex = a.HexesOf(auja).First();
+ Assert.AreEqual(m.Subdistricts.Layer.RegionOf(hex.q, hex.r), m.LayerOn(Egypt.AddDays(-1))!.RegionOf(hex.q, hex.r));
+ var egypt = m.LayerOn(Egypt)!;
+ Assert.AreEqual(MapRegions.ZoneIdBase + auja.Id, egypt.RegionOf(hex.q, hex.r), "El Auja drawn from 24 Feb 1949");
+ Assert.AreEqual(BorderStyle.Secondary, egypt.StyleOf(MapRegions.ZoneIdBase + auja.Id));
+ Assert.AreEqual(m.Subdistricts.Layer.Count, egypt.Count, "the same hexes, regions overlaid");
+ Assert.AreSame(egypt, m.LayerOn(Lebanon), "Lebanon adds no zone: its line is the frontier already drawn");
+ var central = a.Zones.Single(z => z.Key == "syria_dmz_central");
+ var c = a.HexesOf(central).First();
+ Assert.AreNotEqual(MapRegions.ZoneIdBase + central.Id, m.LayerOn(Syria.AddDays(-1))!.RegionOf(c.q, c.r));
+ Assert.AreEqual(MapRegions.ZoneIdBase + central.Id, m.LayerOn(Syria)!.RegionOf(c.q, c.r), "the Syrian DMZ from 20 Jul 1949");
+ Assert.AreSame(m.LayerOn(Syria), m.LayerOn(new DateTime(1952, 12, 31)), "composed once per set of zones");
+ var (on, none) = m.FrontsOn(new DateTime(1952, 1, 1));
+ CollectionAssert.AreEqual(new[] { "egypt", "lebanon", "jordan", "syria" }, on.Select(f => f.Key).ToArray());
+ Assert.AreEqual(0, none.Count);
+ var (march, _) = m.FrontsOn(new DateTime(1949, 3, 1));
+ CollectionAssert.AreEqual(new[] { "egypt" }, march.Select(f => f.Key).ToArray());
+ }
+
+ static string L(MapRegions m, DateTime d)
+ {
+ var t = Text;
+ return m.Label(d, t["map.layer_with_armistice"], t["map.layer_front_no_data"], t["map.layer_front_low"], t["map.layer_front_note"]);
+ }
+
+ [Test]
+ public void TheLabelNamesTheFrontsShownJordanAsLowAccuracyAndThe1950Line()
+ {
+ var m = Regions();
+ Assert.AreEqual("Mandate sub-districts, 1947", L(m, Start));
+ Assert.AreEqual("Mandate sub-districts, 1947 · 1949 armistice lines: Egypt", L(m, new DateTime(1949, 3, 1)));
+ Assert.AreEqual("Mandate sub-districts, 1947 · 1949 armistice lines: Egypt, Lebanon, Jordan (low accuracy)", L(m, new DateTime(1949, 4, 10)));
+ StringAssert.EndsWith("Jordan (low accuracy), Syria", L(m, new DateTime(1949, 8, 1)));
+ StringAssert.Contains("Egypt (and the 1950 modus vivendi)", L(m, new DateTime(1950, 3, 1)));
+ StringAssert.DoesNotContain("modus vivendi", L(m, new DateTime(1950, 2, 21)));
+ // a front without line data says so (the rule for any front the data leaves out)
+ var noJordan = new MapRegions(Subdistricts1948.Parse(SubText), Armistice1949.Parse(
+ "layer: x\nlabel: 1949 armistice lines\nfronts:\n" +
+ " - { key: egypt, name: Egypt, agreement: A, signed: 1949-02-24, shown_from: 1949-02-24, note: '' }\n" +
+ " - { key: jordan, name: Jordan, agreement: B, signed: 1949-04-03, shown_from: null, note: 'no line data' }\n"));
+ StringAssert.Contains("Jordan: Mandate sub-districts, no armistice line data", L(noJordan, new DateTime(1949, 8, 1)));
+ }
+
+ [Test]
+ public void TheInfoPanelNamesTheZoneOrLineAndTheAgreement()
+ {
+ var m = Regions(); var t = Text; var a = m.Armistice!;
+ var auja = a.Zones.Single(z => z.Key == "egypt_el_auja_dmz");
+ var (q, r) = a.HexesOf(auja).First();
+ StringAssert.Contains("Beersheba Sub-District", InfoPanelPresenter.RegionText(m, t, q, r, Start));
+ Assert.AreEqual(t.Format("info.armistice_zone", auja.Name, "Egypt-Israel General Armistice Agreement", "24 February 1949"),
+ InfoPanelPresenter.RegionText(m, t, q, r, Egypt).Split('\n')[0]);
+ var leb = a.Lines.Single(l => l.Key == "lebanon_adl");
+ var lh = Enumerable.Range(-40, 120).SelectMany(qq => Enumerable.Range(-5, 120).Select(rr => (qq, rr))).First(h => a.LinesAt(h.qq, h.rr, Lebanon).Contains(leb));
+ StringAssert.DoesNotContain("Lebanon-Israel", InfoPanelPresenter.RegionText(m, t, lh.qq, lh.rr, Lebanon.AddDays(-1)));
+ StringAssert.Contains(t.Format("info.armistice_line", leb.Name, "Lebanon-Israel General Armistice Agreement", "23 March 1949"),
+ InfoPanelPresenter.RegionText(m, t, lh.qq, lh.rr, Lebanon));
+ // the 1950 line names the modus vivendi and its date, not the 1949 agreement
+ var mv = a.Lines.Single(l => l.Key == "egypt_mv1950_demarcation");
+ var mh = Hexes().First(h => a.LinesAt(h.q, h.r, new DateTime(1950, 3, 1)).Contains(mv));
+ var at1950 = InfoPanelPresenter.RegionText(m, t, mh.q, mh.r, new DateTime(1950, 3, 1));
+ StringAssert.Contains(t.Format("info.armistice_line", mv.Name, mv.Agreement, "22 February 1950"), at1950);
+ StringAssert.DoesNotContain(mv.Name, InfoPanelPresenter.RegionText(m, t, mh.q, mh.r, new DateTime(1950, 2, 21)));
+ // Jordan lines say they are low-accuracy; line A in the triangle only from its stage date
+ var tri = a.Lines.Single(l => l.Key == "jordan_adl_iraqi_a_triangle");
+ var th = Hexes().First(h => a.LinesAt(h.q, h.r, new DateTime(1949, 6, 1)).Contains(tri));
+ StringAssert.DoesNotContain(tri.Name, InfoPanelPresenter.RegionText(m, t, th.q, th.r, new DateTime(1949, 5, 7)));
+ StringAssert.Contains(t.Format("info.armistice_line_low", tri.Name, tri.Agreement, "3 April 1949"),
+ InfoPanelPresenter.RegionText(m, t, th.q, th.r, new DateTime(1949, 5, 8)));
+ }
+
+ static System.Collections.Generic.IEnumerable<(int q, int r)> Hexes() =>
+ MapBuilder.LoadHexes(Inputs.Map.HexesJson, "hexes.json").hexes.Select(h => (h.q, h.r));
+
+ [Test]
+ public void ApplyDrawsTheComposedLayerOnItsDateAndBack()
+ {
+ EditorSceneManager.OpenScene("Assets/Map.unity", OpenSceneMode.Single);
+ Object.FindFirstObjectByType<MapScene>().Build(Inputs.Map);
+ var m = Regions();
+ m.Apply(Start);
+ Assert.AreSame(m.Subdistricts.Layer, MapBorders.Current);
+ m.Apply(Egypt);
+ Assert.AreSame(m.LayerOn(Egypt), MapBorders.Current, "the armistice zones drawn on 24 Feb 1949");
+ Assert.IsTrue(m.Shown);
+ m.Apply(Start); // a new game
+ Assert.AreSame(m.Subdistricts.Layer, MapBorders.Current);
+ }
+
+ [Test]
+ public void ANormalGameStartsWithTheMandateLayerAndItsLabel()
+ {
+ EditorSceneManager.OpenScene("Assets/Map.unity", OpenSceneMode.Single);
+ Object.FindFirstObjectByType<MapScene>().Build(Inputs.Map);
+ var root = Object.FindFirstObjectByType<GameRoot>();
+ root.Store = new SaveStore(saveDir);
+ root.Begin(Inputs, 0);
+ Assert.AreEqual("subdistricts_1948", MapBorders.Current!.Name);
+ Assert.AreEqual("Mandate sub-districts, 1947", Object.FindFirstObjectByType<UIDocument>().rootVisualElement.Q<Label>("map-layer").text);
+ }
+
+ [Test]
+ public void TheWebGLBuildShipsTheFileAndReadsIt()
+ {
+ CollectionAssert.Contains(ContentManifest.Collect(Paths.Content), "map/" + Armistice1949.FileName);
+ Assert.AreEqual(ArmText, Inputs.Map.ArmisticeYaml);
+ }
+
+ /// <summary>Map-only data: the content hash (saves, goldens) does not move whatever the armistice files say.</summary>
+ [Test]
+ public void TheSimIgnoresTheFilesTheContentHashDoesNotMove()
+ {
+ var copy = Path.Combine(saveDir, "content");
+ foreach (var f in Directory.GetFiles(Paths.Content, "*", SearchOption.AllDirectories).Where(f => !f.EndsWith(".meta")))
+ {
+ var to = Path.Combine(copy, Path.GetRelativePath(Paths.Content, f));
+ Directory.CreateDirectory(Path.GetDirectoryName(to)!); File.Copy(f, to);
+ }
+ var before = ContentLoader.Load(copy).Hash;
+ Assert.AreEqual(ContentLoader.Load(Paths.Content).Hash, before);
+ File.WriteAllText(Path.Combine(copy, "map", Armistice1949.FileName), "layer: changed\n");
+ File.WriteAllText(Path.Combine(copy, "map", "armistice_lines_1949.geojson"), "{}");
+ File.WriteAllText(Path.Combine(copy, "map", Subdistricts1948.FileName), SubText.Replace("until: 1949-02-24", "until: 1950-01-01"));
+ Assert.AreEqual(before, ContentLoader.Load(copy).Hash);
+ }
+
+ /// <summary>Review I-4: the longest label (from 22 Feb 1950: all four fronts, Jordan low-accuracy, the 1950 note) fits
+ /// on screen beside the minimap with the real HUD (HudPresenter: one, two and three-row bars) and the longest event card,
+ /// at the card's window shapes and main's narrow ones: on screen, clear of the card, the minimap and the info panel, its
+ /// text not cut, at most four lines.</summary>
+ [UnityTest]
+ public IEnumerator TheLongestMapLabelFitsBesideTheEventCard()
+ {
+ var c = Inputs.Content; var t = Text;
+ var text = L(Regions(), new DateTime(1950, 3, 1));
+ StringAssert.Contains("Jordan (low accuracy)", text);
+ foreach (var (w, h) in new[] { (1920, 1080), (1280, 720), (1531, 784), (1366, 657), (2560, 1080), (1920, 900), (1280, 1024),
+ (960, 600), (1024, 768), (390, 844), (1600, 757) })
+ {
+ var rt = new RenderTexture(w, h, 0);
+ var ps = Object.Instantiate(AssetDatabase.LoadAssetAtPath<PanelSettings>(UiPaths.Panel));
+ ps.targetTexture = rt;
+ var go = new GameObject("LabelLayout"); go.SetActive(false);
+ var doc = go.AddComponent<UIDocument>(); doc.panelSettings = ps;
+ doc.visualTreeAsset = AssetDatabase.LoadAssetAtPath<VisualTreeAsset>(UiPaths.GameUxml);
+ go.SetActive(true);
+ var root = doc.rootVisualElement;
+ var bridge = new SimBridge(GameSession.New(c, GoldenRun.Seed, Mode.Historical), t);
+ var hud = new HudPresenter(root, bridge, t);
+ var card = new EventCardPresenter(root, bridge, t, null, null);
+ try
+ {
+ var g = GameSession.New(c, GoldenRun.Seed, Mode.Historical);
+ var e = c.Events.OrderByDescending(x => x.Text.Length).First(); // the longest text: the tallest card without a picture
+ g.State.Date = e.From; g.State.PendingEvents.Clear(); g.State.PendingEvents.Add(e.Id);
+ bridge.Replace(g);
+ var label = root.Q<Label>("map-layer");
+ label.text = text; label.style.display = DisplayStyle.Flex;
+ for (int i = 0; i < 6; i++) yield return null;
+ Rect R(string n) => root.Q(n).worldBound;
+ var lb = label.worldBound;
+ var screen = root.worldBound;
+ Assert.IsTrue(lb.xMin >= screen.xMin - 0.5f && lb.xMax <= screen.xMax + 0.5f && lb.yMin >= screen.yMin - 0.5f && lb.yMax <= screen.yMax + 0.5f,
+ $"{w}x{h}: the label {lb} leaves the screen {screen}");
+ Assert.IsFalse(lb.Overlaps(R("minimap")), $"{w}x{h}: the label {lb} overlaps the minimap {R("minimap")}");
+ Assert.IsFalse(lb.Overlaps(R("event-card")), $"{w}x{h}: the event card {R("event-card")} overlaps the label {lb}");
+ if (root.Q("info-panel").resolvedStyle.display == DisplayStyle.Flex)
+ Assert.IsFalse(lb.Overlaps(R("info-panel")), $"{w}x{h}: the info panel {R("info-panel")} overlaps the label {lb}");
+ Assert.IsFalse(lb.Overlaps(R("top-bar")), $"{w}x{h}: the top bar overlaps the label");
+ var size = label.MeasureTextSize(text, lb.width - label.resolvedStyle.paddingLeft - label.resolvedStyle.paddingRight,
+ VisualElement.MeasureMode.Exactly, 0, VisualElement.MeasureMode.Undefined);
+ Assert.LessOrEqual(size.y, lb.height + 1f, $"{w}x{h}: the label's text is cut off");
+ Assert.LessOrEqual(size.y, 4 * label.resolvedStyle.fontSize * 1.4f, $"{w}x{h}: the label takes more than four lines ({size.y} px)");
+ }
+ finally { card.Dispose(); hud.Dispose(); Object.DestroyImmediate(go); Object.DestroyImmediate(ps); rt.Release(); Object.DestroyImmediate(rt); }
+ }
+ }
+
+ /// <summary>Review I-2: the switch per front comes from the Mandate layer's own per-front end
+ /// (Subdistricts1948.FrontReplaced): moving Egypt's end moves when its zones are drawn, its lines named and the label
+ /// lists it.</summary>
+ [Test]
+ public void TheMandateLayersFrontEndDrivesTheSwitch()
+ {
+ var later = new MapRegions(Subdistricts1948.Parse(SubText.Replace("{ key: egypt, until: 1949-02-24 }", "{ key: egypt, until: 1949-06-01 }")),
+ Armistice1949.Parse(ArmText));
+ var a = later.Armistice!;
+ var auja = a.Zones.Single(z => z.Key == "egypt_el_auja_dmz");
+ var (q, r) = a.HexesOf(auja).First();
+ var march = new DateTime(1949, 3, 1);
+ Assert.IsFalse(later.Subdistricts.FrontReplaced("egypt", march));
+ Assert.IsNull(later.ZoneAt(q, r, march), "Egypt has not switched on the Mandate layer yet");
+ Assert.AreSame(later.Subdistricts.Layer, later.LayerOn(march));
+ StringAssert.DoesNotContain("Egypt", L(later, march));
+ var gaza = a.Lines.Single(l => l.Key == "egypt_adl_gaza");
+ var gh = Hexes().First(h => a.LinesAt(h.q, h.r, march).Contains(gaza));
+ Assert.IsFalse(later.LinesAt(gh.q, gh.r, march).Contains(gaza));
+ var june = new DateTime(1949, 6, 1);
+ Assert.AreSame(auja, later.ZoneAt(q, r, june));
+ Assert.AreEqual(MapRegions.ZoneIdBase + auja.Id, later.LayerOn(june)!.RegionOf(q, r));
+ StringAssert.Contains("Egypt", L(later, june));
+ Assert.IsTrue(later.LinesAt(gh.q, gh.r, june).Contains(gaza));
+ // as shipped, the Mandate layer's ends are the agreements' dates
+ Assert.AreEqual(auja.Key, Regions().ZoneAt(q, r, Egypt)?.Key);
+ }
+}
diff --git a/unity/Assets/Tests/EditMode/ArmisticeTests.cs.meta b/unity/Assets/Tests/EditMode/ArmisticeTests.cs.meta
new file mode 100644
index 000000000..533beb107
--- /dev/null
+++ b/unity/Assets/Tests/EditMode/ArmisticeTests.cs.meta
@@ -0,0 +1,2 @@
+fileFormatVersion: 2
+guid: bd557eb4c96ae449b95e50776f78a39b
\ No newline at end of file
diff --git a/unity/Assets/UI/Statecraft.uss b/unity/Assets/UI/Statecraft.uss
index af822c128..8ea65467c 100644
--- a/unity/Assets/UI/Statecraft.uss
+++ b/unity/Assets/UI/Statecraft.uss
@@ -213,8 +213,12 @@ Button:disabled { color: var(--ink-dim); border-color: rgba(120, 120, 120, 0.4);
/* Before a hex is chosen only the hint shows (InfoPanelPresenter sets info-empty). */
.info-empty .gold-rule { display: none; }
/* Narrow, as the country is: the frame hugs the tall map picture (MinimapPresenter fits it to the content box). */
-/* The border layer's label above the minimap: what the blue outlines are (Subdistricts1948.Label). */
-.map-layer { display: none; align-self: flex-end; width: 160px; margin-bottom: 6px; padding: 5px 8px; font-size: 15px; white-space: normal; -unity-text-align: middle-center; color: var(--ink); background-color: rgba(9, 14, 26, 0.9); border-radius: 3px; }
+/* The border layer's label, beside the minimap's lower left: what the outlines are (MapRegions.Label). Out of the column's
+ flex flow (absolute), so it takes no height from the event card at any HUD tier (armistice review I-4). */
+.map-layer { display: none; position: absolute; right: 168px; bottom: 0; max-width: 312px; padding: 5px 8px; font-size: 15px; white-space: normal; -unity-text-align: middle-center; color: var(--ink); background-color: rgba(9, 14, 26, 0.9); border-radius: 3px; }
+/* A phone upright (three-row bar): the info panel spans the bottom left, beside the minimap, but the column is tall, so the
+ label goes back above the minimap, in the column's flow. */
+.hud-three-row .map-layer { position: relative; right: auto; bottom: auto; align-self: flex-end; max-width: 480px; margin-bottom: 6px; }
.minimap { align-self: flex-end; flex-shrink: 0; width: 160px; height: 340px; padding: 12px; background-color: rgba(9, 14, 26, 0.97); }
.minimap-image { align-self: center; -unity-background-scale-mode: stretch-to-fill; } /* the element is sized to the picture's aspect by MinimapPresenter */
.minimap-view { position: absolute; border-color: var(--ink); border-width: 1.5px; }
diff --git a/unity/Assets/UI/strings.en.yaml b/unity/Assets/UI/strings.en.yaml
index 3cb2a1bb8..d303a0e53 100644
--- a/unity/Assets/UI/strings.en.yaml
+++ b/unity/Assets/UI/strings.en.yaml
@@ -91,6 +91,13 @@ info.hint: "Click the map to inspect a hex"
info.off_map: "Off the map"
info.hex: "{0} · elevation {1:N0} m"
info.region: "{0}, {1} (Mandate sub-districts, 1947)"
+info.armistice_zone: "{0} · {1}, {2}"
+info.armistice_line: "On the {0} · {1}, {2}"
+info.armistice_line_low: "On the {0} · {1}, {2} · low accuracy, from a low-resolution scan"
+map.layer_with_armistice: "{0} · {1}: {2}"
+map.layer_front_no_data: " · {0}: Mandate sub-districts, no armistice line data"
+map.layer_front_low: "{0} (low accuracy)"
+map.layer_front_note: "{0} (and the {1})"
info.owned: "Settlements: {0}"
info.built: "{0} built here in {1}"
info.queued: "Ordered: {0}, at End Turn"
diff --git a/unity/Assets/UI/strings.he.yaml b/unity/Assets/UI/strings.he.yaml
index 9ea87263e..3a7a70bf2 100644
--- a/unity/Assets/UI/strings.he.yaml
+++ b/unity/Assets/UI/strings.he.yaml
@@ -86,6 +86,13 @@ info.hint: "יש ללחוץ על המפה כדי לבדוק משושה"
info.off_map: "מחוץ למפה"
info.hex: "{0} · גובה {1:N0} מ׳"
info.region: "{0}, {1} (נפות המנדט, 1947)"
+info.armistice_zone: "{0} · {1}, {2}"
+info.armistice_line: "עובר כאן: {0} · {1}, {2}"
+info.armistice_line_low: "עובר כאן: {0} · {1}, {2} · דיוק נמוך, מסריקה ברזולוציה נמוכה"
+map.layer_with_armistice: "{0} · {1}: {2}"
+map.layer_front_no_data: " · {0}: נפות המנדט, אין נתוני קו שביתת נשק"
+map.layer_front_low: "{0} (דיוק נמוך)"
+map.layer_front_note: "{0} (וגם {1})"
info.owned: "יישובים: {0}"
info.built: "{0} נבנה כאן בשנת {1}"
info.queued: "ניתנה פקודה: {0}, בסיום התור"