Python tool for aircraft Doppler audio geolocation using historical ADS-B flight data (Source-available)
Python acoustic-geolocationads-baircraft-trackingairplaneaudio-forensicsdoppler-effectdoppler-shiftgeolocationosintsignal-processing
Update
Cinna Davis8bc5e26d2cc5
diff --git a/README.md b/README.mdindex 7ddbb98..4d1a63e 100644--- a/README.md+++ b/README.md@@ -30,7 +30,7 @@| **Automatic acoustic discovery** | Scans an entire recording for moving frequency tracks and groups related harmonics, without manually selecting event windows or frequency bands. || **Historical aircraft data** | Acquires and indexes ADSB.lol flight archives; caches reusable trajectory, terrain, and geoid inputs. || **Location search** | Compares predicted Doppler and sound-arrival patterns across candidate receiver locations, including evidence from multiple independent flyovers. |-| **Geographic profiles** | Search profiles for the contiguous United States, Germany, Spain, metropolitan France (including Corsica), and Italy (including Sicily and Sardinia), with optional user-provided regional bounds. |+| **Geographic profiles** | Search profiles for the contiguous United States, Germany, Spain, metropolitan France (including Corsica), and Italy (including Sicily and Sardinia), plus generated bounding envelopes for every other country and territory, grouped by continent ([COUNTRIES.md](docs/COUNTRIES.md)), with optional user-provided regional bounds. || **Local browser application** | Recording uploads, persistent analysis jobs, inspectable results, progress monitoring, and supported resume/cancellation workflows. || **Research and reproducibility** | Configured measurement/replay commands, documented experiments, diagnostic artifacts, and decision rules for unresolved searches. |diff --git a/docs/COUNTRIES.md b/docs/COUNTRIES.mdindex 0c1d915..cae90d9 100644--- a/docs/COUNTRIES.md+++ b/docs/COUNTRIES.md@@ -1,6 +1,8 @@# Country profiles-The automatic request and upload interface support five receiver regions:+The automatic request and upload interface support six hand-written receiver+regions and generated envelopes for every other country and territory+([below](#all-other-countries-and-territories)):| Country | Coverage | Envelope: west, south, east, north | Search CRS | Receiver region || --- | --- | --- | --- | --- |@@ -9,6 +11,7 @@ The automatic request and upload interface support five receiver regions:| `ES` | `spain` | `-18.2, 27.5, 4.5, 43.9` | `EPSG:6933` | Spain and territories bounding envelope; no country polygon || `FR` | `france` | `-5.5, 41.2, 10, 51.2` | `EPSG:2154` | Metropolitan France including Corsica bounding envelope; no country polygon || `IT` | `italy` | `6.6, 35.4, 18.6, 47.1` | `EPSG:7794` | Italy including Sicily, Sardinia and Lampedusa bounding envelope; no country polygon |+| `NO` | `norway` | `4.0, 57.9, 31.2, 71.2` | `EPSG:3035` | Mainland Norway bounding envelope; no country polygon |The envelope limits optional rectangular subsets. Germany's envelope includesforeign territory; the land polygon removes those receiver locations before@@ -19,12 +22,61 @@ France covers mainland France and Corsica, excluding overseas departments andterritories, with a Lambert-93 metric search grid. Italy covers the mainland,Sicily, Sardinia and the Pelagie islands with the national RDN2008 / Italy zone(E-N) transverse Mercator grid; San Marino, Vatican City and parts of-neighboring countries and the sea fall inside its envelope. These three profiles do not-apply country land masks: their envelopes include sea and neighboring countries.+neighboring countries and the sea fall inside its envelope. Mainland Norway uses+ETRS89 / LAEA Europe (EPSG:3035), with a maximum scale error of 1.47% and angular+distortion of 2.1 degrees over its envelope. UTM 33N has a 1.1% scale error but+its EPSG area of use does not cover the whole mainland. Norway's envelope also+includes large parts of Sweden, Finland and Russia, and the sea. These four+profiles do not apply country land masks: their envelopes include sea and neighboring countries.Use explicit bounds that describe the intended receiver area. Aircraft outsidethe receiver bounds remain eligible when they are within the acoustic search margin. Country supportdoes not establish localization accuracy.+## All other countries and territories++Every other country or territory with an ISO 3166-1 alpha-2 code has a generated+profile: `--country RS`, `"search":{"country":"LB"}`, or the browser selector,+which groups profiles by continent. The coverage name is the lowercase English+name with underscores (for example `serbia`, `lebanon`, `south_korea`); the+capabilities response lists every profile with its continent, envelope and CRS.++The rows in `src/dopplergeist/world_profiles.py` are generated by+`scripts/build_world_profiles.py` from Natural Earth 1:10m Admin 0 countries+v5.1.2 (public domain). Each envelope covers the largest land part and every+part within 500 km of it, padded by 0.05 degrees, so remote overseas territories+(for example the Azores, Galapagos or Svalbard) are not included. Russia's+envelope stops at 180 E, because antimeridian crossing is unsupported.+Antarctica has no profile. Norway is left to its hand-written profile (#414).++The CRS is the EPSG projected CRS whose area of use contains the envelope with+the smallest maximum point-scale error over it, restricted to datums within 5 m+of WGS 84 that round-trip exactly. When no EPSG CRS keeps that error within 2%,+for large countries such as China, Russia, Canada, Brazil or Australia, a WGS 84+Lambert azimuthal equal-area, Lambert conformal conic or transverse Mercator+projection centred on the envelope is used (a PROJ string rather than an EPSG+code). The recorded maximum error is 3.4% (Russia), 2.4% (China), and 2% or less+elsewhere; it affects metric grid spacing and refinement radii, not the+geodetic ECEF propagation. Like Spain, France and Italy, these envelopes include+sea and neighboring countries and apply no land mask: pass explicit bounds for+the intended receiver area. A profile does not establish flight-data coverage+or localization accuracy in that country.++<!-- world-profiles:start -->++**Africa:** `DZ` Algeria, `AO` Angola, `BJ` Benin, `BW` Botswana, `IO` British Indian Ocean Territory, `BF` Burkina Faso, `BI` Burundi, `CM` Cameroon, `CV` Cape Verde, `CF` Central African Republic, `TD` Chad, `KM` Comoros, `CD` Democratic Republic of the Congo, `DJ` Djibouti, `EG` Egypt, `GQ` Equatorial Guinea, `ER` Eritrea, `SZ` Eswatini, `ET` Ethiopia, `TF` French Southern and Antarctic Lands, `GA` Gabon, `GH` Ghana, `GN` Guinea, `GW` Guinea-Bissau, `HM` Heard Island and McDonald Islands, `CI` Ivory Coast, `KE` Kenya, `LS` Lesotho, `LR` Liberia, `LY` Libya, `MG` Madagascar, `MW` Malawi, `ML` Mali, `MR` Mauritania, `MU` Mauritius, `MA` Morocco, `MZ` Mozambique, `NA` Namibia, `NE` Niger, `NG` Nigeria, `CG` Republic of the Congo, `RW` Rwanda, `SH` Saint Helena, `SN` Senegal, `SC` Seychelles, `SL` Sierra Leone, `SO` Somalia, `ZA` South Africa, `SS` South Sudan, `SD` Sudan, `ST` São Tomé and Príncipe, `TZ` Tanzania, `GM` The Gambia, `TG` Togo, `TN` Tunisia, `UG` Uganda, `EH` Western Sahara, `ZM` Zambia, `ZW` Zimbabwe.++**Asia:** `AF` Afghanistan, `AM` Armenia, `AZ` Azerbaijan, `BH` Bahrain, `BD` Bangladesh, `BT` Bhutan, `BN` Brunei, `KH` Cambodia, `CY` Cyprus, `TL` East Timor, `GE` Georgia, `HK` Hong Kong, `IN` India, `ID` Indonesia, `IR` Iran, `IQ` Iraq, `IL` Israel, `JP` Japan, `JO` Jordan, `KZ` Kazakhstan, `KW` Kuwait, `KG` Kyrgyzstan, `LA` Laos, `LB` Lebanon, `MO` Macau, `MY` Malaysia, `MV` Maldives, `MN` Mongolia, `MM` Myanmar, `NP` Nepal, `KP` North Korea, `OM` Oman, `PK` Pakistan, `PS` Palestine, `CN` People's Republic of China, `PH` Philippines, `QA` Qatar, `SA` Saudi Arabia, `SG` Singapore, `KR` South Korea, `LK` Sri Lanka, `SY` Syria, `TW` Taiwan, `TJ` Tajikistan, `TH` Thailand, `TR` Turkey, `TM` Turkmenistan, `AE` United Arab Emirates, `UZ` Uzbekistan, `VN` Vietnam, `YE` Yemen.++**Europe:** `AL` Albania, `AD` Andorra, `AT` Austria, `BY` Belarus, `BE` Belgium, `BA` Bosnia and Herzegovina, `BG` Bulgaria, `HR` Croatia, `CZ` Czech Republic, `DK` Denmark, `EE` Estonia, `FO` Faroe Islands, `FI` Finland, `GI` Gibraltar, `GR` Greece, `GG` Guernsey, `HU` Hungary, `IS` Iceland, `IE` Ireland, `IM` Isle of Man, `JE` Jersey, `XK` Kosovo, `LV` Latvia, `LI` Liechtenstein, `LT` Lithuania, `LU` Luxembourg, `MT` Malta, `MD` Moldova, `MC` Monaco, `ME` Montenegro, `NL` Netherlands, `MK` North Macedonia, `PL` Poland, `PT` Portugal, `RO` Romania, `RU` Russia, `SM` San Marino, `RS` Serbia, `SK` Slovakia, `SI` Slovenia, `SE` Sweden, `CH` Switzerland, `UA` Ukraine, `GB` United Kingdom, `VA` Vatican City, `AX` Åland.++**North America:** `AI` Anguilla, `AG` Antigua and Barbuda, `AW` Aruba, `BB` Barbados, `BZ` Belize, `BM` Bermuda, `VG` British Virgin Islands, `CA` Canada, `KY` Cayman Islands, `CR` Costa Rica, `CU` Cuba, `CW` Curaçao, `DM` Dominica, `DO` Dominican Republic, `SV` El Salvador, `GL` Greenland, `GD` Grenada, `GT` Guatemala, `HT` Haiti, `HN` Honduras, `JM` Jamaica, `MX` Mexico, `MS` Montserrat, `NI` Nicaragua, `PA` Panama, `PR` Puerto Rico, `BL` Saint Barthélemy, `KN` Saint Kitts and Nevis, `LC` Saint Lucia, `MF` Saint Martin, `PM` Saint Pierre and Miquelon, `VC` Saint Vincent and the Grenadines, `SX` Sint Maarten, `BS` The Bahamas, `TT` Trinidad and Tobago, `TC` Turks and Caicos Islands, `UM` United States Minor Outlying Islands, `VI` United States Virgin Islands.++**Oceania:** `AS` American Samoa, `AU` Australia, `CK` Cook Islands, `FM` Federated States of Micronesia, `FJ` Fiji, `PF` French Polynesia, `GU` Guam, `KI` Kiribati, `MH` Marshall Islands, `NR` Nauru, `NC` New Caledonia, `NZ` New Zealand, `NU` Niue, `NF` Norfolk Island, `MP` Northern Mariana Islands, `PW` Palau, `PG` Papua New Guinea, `PN` Pitcairn Islands, `WS` Samoa, `SB` Solomon Islands, `TO` Tonga, `TV` Tuvalu, `VU` Vanuatu, `WF` Wallis and Futuna.++**South America:** `AR` Argentina, `BO` Bolivia, `BR` Brazil, `CL` Chile, `CO` Colombia, `EC` Ecuador, `FK` Falkland Islands, `GY` Guyana, `PY` Paraguay, `PE` Peru, `GS` South Georgia and the South Sandwich Islands, `SR` Suriname, `UY` Uruguay, `VE` Venezuela.++<!-- world-profiles:end -->+## Requests and commands```bash@@ -33,11 +85,11 @@ dopplergeist analyze recording.mp3 --country DE --jobs jobs --online \--time-source 'Evidence establishing the recording-start interval'```-Use `--country FR` for metropolitan France, including Corsica, or `--country IT`-for Italy, or select the country in the browser's country selector. The upload API accepts+Use `--country FR` for metropolitan France, including Corsica, `--country IT`+for Italy, or `--country NO` for mainland Norway, or select the country in the browser's country selector. The upload API accepts`"search":{"country":"DE"}`, `"search":{"country":"ES"}` or-`"search":{"country":"FR"}` or `"search":{"country":"IT"}`. It also accepts-the matching coverage names `germany`, `spain`, `france` and `italy`. A normalized request records the coverage;+`"search":{"country":"FR"}`, `"search":{"country":"IT"}` or `"search":{"country":"NO"}`. It also accepts+the matching coverage names `germany`, `spain`, `france`, `italy` and `norway`. A normalized request records the coverage;an explicitly supplied country is normalized to uppercase. If both are supplied,they must agree. `bounds_wsen` and `--bounds` narrow the selected profile. Theymust be an independently justified prior, not the evaluation location.diff --git a/docs/INTERFACES.md b/docs/INTERFACES.mdindex 53eb448..b531574 100644--- a/docs/INTERFACES.md+++ b/docs/INTERFACES.md@@ -35,9 +35,10 @@ is a result field and must not be mislabeled independent timestamp evidence.`search.country` accepts `US` (CONUS), `DE` (Germany), `ES` (Spain), `FR`(metropolitan France including Corsica) or `IT` (Italy including Sicily and-Sardinia); lowercase ISO codes are normalized.+Sardinia), or any other ISO 3166-1 alpha-2 code listed in+[COUNTRIES.md](COUNTRIES.md); lowercase ISO codes are normalized.The corresponding `search.coverage` values are-`conus`, `germany`, `spain`, `france` and `italy`.+`conus`, `germany`, `spain`, `france`, `italy` and the generated names listed there.Either country or coverage is sufficient, and contradictory values are rejected.Legacy `{"coverage":"conus"}` objects keep their serialized shape; the validatordoes not insert a country into old requests. Optional `bounds_wsen` further restrictdiff --git a/docs/PRODUCT.md b/docs/PRODUCT.mdindex 6edeb9f..bd18627 100644--- a/docs/PRODUCT.md+++ b/docs/PRODUCT.md@@ -10,7 +10,8 @@ scope and limitations.The automatic product path is separate from the historical research `run` and`measure` commands. Uploads supply audio, an optional defensible UTC window for**sample zero**, and a declared country profile (US/CONUS by default, Germany,-Spain, metropolitan France including Corsica, or Italy).+Spain, metropolitan France including Corsica, Italy, or any other country in+[COUNTRIES.md](COUNTRIES.md)).An optional rectangle narrows that profile. Event windows, frequencybands, flight IDs and ground-truth coordinates are not upload inputs.diff --git a/pyproject.toml b/pyproject.tomlindex 4bd708c..73d0196 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -24,7 +24,7 @@ classifiers = [license = "PolyForm-Noncommercial-1.0.0"license-files = ["LICENSE", "licenses/MIT-legacy.txt", "src/dopplergeist/web/leaflet-license.txt"]requires-python = ">=3.11"-dependencies = ["numpy", "scipy", "numba>=0.62.1,<0.63; sys_platform == 'darwin' and platform_machine == 'x86_64'", "numba>=0.68.1; sys_platform != 'darwin' or platform_machine != 'x86_64'", "pandas", "soundfile", "pyproj", "rasterio", "matplotlib", "requests", "pyarrow", "shapely>=2.0"]+dependencies = ["numpy", "scipy", "numba>=0.62.1,<0.63; sys_platform == 'darwin' and platform_machine == 'x86_64'", "numba>=0.68.1; sys_platform != 'darwin' or platform_machine != 'x86_64'", "pandas", "soundfile", "pyproj>=3.7.2", "rasterio", "matplotlib", "requests", "pyarrow", "shapely>=2.0"][project.urls]Homepage = "https://github.com/1337isnot1337/DOPPLERGEIST"diff --git a/scripts/build_world_profiles.py b/scripts/build_world_profiles.pynew file mode 100644index 0000000..a19e5f8--- /dev/null+++ b/scripts/build_world_profiles.py@@ -0,0 +1,224 @@+#!/usr/bin/env python3+"""Regenerate world_profiles.py and its docs/COUNTRIES.md list from Natural Earth.++ python scripts/build_world_profiles.py ne_10m_admin_0_countries.geojson++Input: Natural Earth 1:10m Admin 0 - Countries, v5.1.2 (public domain),+https://github.com/nvkelso/natural-earth-vector/blob/v5.1.2/geojson/ne_10m_admin_0_countries.geojson++For every feature with an ISO 3166-1 alpha-2 code (``ISO_A2_EH``) that is not+already a hand-written profile:++* Envelope: start from the largest polygon and add polygons whose bounding box+ is within 500 km of the growing envelope, so remote overseas territories do+ not stretch the receiver rectangle across an ocean. The result is padded by+ 0.05 degrees and rounded outward to 0.01 degrees. Polygons on the other side+ of the antimeridian are never joined (antimeridian crossing is unsupported).+* CRS: among non-deprecated EPSG projected CRSs (excluding the recent 10000-10999 range, which older+ PROJ databases lack) in metres whose EPSG area of use contains the+ envelope, plus the global EPSG:6933 used by Spain, choose the smallest+ maximum point-scale error over a 15 x 15 sample of the envelope. A candidate+ must round-trip exactly from WGS 84 and its datum must lie within 5 m of+ WGS 84, which rules out classical datums with inconsistent shifts. When no+ such EPSG CRS keeps the error within 2%, a WGS 84 Lambert azimuthal+ equal-area, Lambert conformal conic or transverse Mercator projection centred+ on the envelope is used instead if it does better. The error is recorded+ with the profile.+* Continent: Natural Earth ``CONTINENT``; open-ocean features use ``REGION_UN``.+"""+import argparse+from collections import defaultdict+import json+import math+from pathlib import Path+import re+import unicodedata++HAND_WRITTEN = {"US", "DE", "ES", "FR", "IT", "NO"}+EXCLUDED = {"AQ"} # Antarctica: no national receiver region; polar envelope.+JOIN_KM = 500.0+EPSG_MAX_SCALE_ERROR = 0.02+PAD_DEG = 0.05+OUTPUT = Path(__file__).resolve().parents[1] / "src" / "dopplergeist" / "world_profiles.py"+DOCS = Path(__file__).resolve().parents[1] / "docs" / "COUNTRIES.md"+DOCS_START, DOCS_END = "<!-- world-profiles:start -->", "<!-- world-profiles:end -->"+REGION_TO_CONTINENT = {"Africa": "Africa", "Asia": "Asia", "Americas": "South America",+ "Europe": "Europe", "Oceania": "Oceania"}+++def _gap_km(a, b):+ """Approximate distance between two lon/lat boxes (west, south, east, north)."""+ dlat = max(0.0, b[1] - a[3], a[1] - b[3])+ dlon = max(0.0, b[0] - a[2], a[0] - b[2])+ lat = math.radians(min(89.0, abs(a[1] + a[3] + b[1] + b[3]) / 4))+ return math.hypot(dlat * 111.2, dlon * 111.2 * math.cos(lat))+++def envelope(geometry):+ from shapely.geometry import shape+ parts = sorted(getattr(shape(geometry), "geoms", [shape(geometry)]), key=lambda p: -p.area)+ box = list(parts[0].bounds)+ remaining = [p.bounds for p in parts[1:]]+ changed = True+ while changed:+ changed = False+ for bounds in list(remaining):+ if _gap_km(box, bounds) <= JOIN_KM:+ box = [min(box[0], bounds[0]), min(box[1], bounds[1]),+ max(box[2], bounds[2]), max(box[3], bounds[3])]+ remaining.remove(bounds)+ changed = True+ w, s, e, n = box+ return (max(-180.0, math.floor((w - PAD_DEG) * 100) / 100),+ max(-89.0, math.floor((s - PAD_DEG) * 100) / 100),+ min(180.0, math.ceil((e + PAD_DEG) * 100) / 100),+ min(89.0, math.ceil((n + PAD_DEG) * 100) / 100))+++def _max_scale_error(proj, bounds):+ import numpy as np+ w, s, e, n = bounds+ lon, lat = np.meshgrid(np.linspace(w, e, 15), np.linspace(s, n, 15))+ try:+ factors = proj.get_factors(lon.ravel(), lat.ravel())+ except Exception:+ return math.inf+ h, k = np.asarray(factors.meridional_scale), np.asarray(factors.parallel_scale)+ if not (np.isfinite(h).all() and np.isfinite(k).all()):+ return math.inf+ return float(max(np.abs(h - 1).max(), np.abs(k - 1).max()))+++def _usable(crs, bounds):+ """Metric, exactly invertible from WGS 84, and datum within 5 m of WGS 84."""+ import numpy as np+ from pyproj import Transformer+ if {axis.unit_name for axis in crs.axis_info} != {"metre"} or crs.geodetic_crs is None:+ return False+ w, s, e, n = bounds+ lon, lat = (a.ravel() for a in np.meshgrid(np.linspace(w, e, 7), np.linspace(s, n, 7)))+ try:+ datum = Transformer.from_crs("EPSG:4326", crs.geodetic_crs, always_xy=True)+ dlon, dlat = datum.transform(lon, lat)+ shift_m = np.hypot((dlon - lon) * 111320 * np.cos(np.radians(lat)), (dlat - lat) * 110540)+ forward = Transformer.from_crs("EPSG:4326", crs, always_xy=True)+ inverse = Transformer.from_crs(crs, "EPSG:4326", always_xy=True)+ x, y = forward.transform(lon, lat)+ x2, y2 = forward.transform(*inverse.transform(x, y))+ except Exception:+ return False+ return bool(np.isfinite(shift_m).all() and shift_m.max() <= 5.0+ and np.isfinite([x, y]).all() and np.abs(x2 - x).max() < 1e-4 and np.abs(y2 - y).max() < 1e-4)+++def choose_crs(bounds):+ from pyproj import CRS, Proj+ from pyproj.aoi import AreaOfInterest+ from pyproj.database import query_crs_info+ w, s, e, n = bounds+ infos = query_crs_info(auth_name="EPSG", pj_types="PROJECTED_CRS", contains=True,+ area_of_interest=AreaOfInterest(w, s, e, n))+ # Codes 10000-10999 are recent EPSG additions that older PROJ databases lack.+ codes = {info.code for info in infos if not info.deprecated and not 10000 <= int(info.code) < 11000} | {"6933"}+ best = None+ for code in sorted(codes, key=int):+ crs = CRS.from_epsg(int(code))+ area = crs.area_of_use+ if area is None or not (area.west <= w < e <= area.east and area.south <= s < n <= area.north):+ continue+ try:+ proj = Proj(crs)+ except Exception: # Not expressible as a PROJ projection string.+ continue+ error = _max_scale_error(proj, bounds)+ if (best is None or error < best[0] - 1e-9) and _usable(crs, bounds):+ best = (error, f"EPSG:{code}")+ if best is not None and best[0] <= EPSG_MAX_SCALE_ERROR:+ return best[1], best[0]+ for crs in _local_candidates(bounds):+ error = _max_scale_error(Proj(CRS(crs)), bounds)+ if (best is None or error < best[0] - 1e-9) and _usable(CRS(crs), bounds):+ best = (error, crs)+ if best is None or not math.isfinite(best[0]):+ raise ValueError(f"No usable projected CRS for {bounds}")+ return best[1], best[0]+++def _local_candidates(bounds):+ """WGS 84 projections centred on the envelope, for countries no EPSG CRS fits well."""+ from pyproj import CRS, Proj+ w, s, e, n = bounds+ lon0, lat0 = round((w + e) / 2, 2), round((s + n) / 2, 2)+ tail = "+x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs"+ yield f"+proj=laea +lat_0={lat0:g} +lon_0={lon0:g} {tail}"+ if s * n > 0:+ lat1, lat2 = round(s + (n - s) / 6, 2), round(n - (n - s) / 6, 2)+ yield f"+proj=lcc +lat_0={lat0:g} +lon_0={lon0:g} +lat_1={lat1:g} +lat_2={lat2:g} {tail}"+ # Transverse Mercator with the central scale chosen to split the error.+ unscaled = f"+proj=tmerc +lat_0=0 +lon_0={lon0:g} +k=1 {tail}"+ error = _max_scale_error(Proj(CRS(unscaled)), bounds)+ if math.isfinite(error):+ yield f"+proj=tmerc +lat_0=0 +lon_0={lon0:g} +k={round(1 - error / 2, 6):g} {tail}"+++def slug(text):+ text = unicodedata.normalize("NFKD", text).encode("ascii", "ignore").decode()+ return re.sub(r"[^a-z0-9]+", "_", text.lower()).strip("_")+++def main(argv=None):+ parser = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)+ parser.add_argument("geojson", type=Path)+ args = parser.parse_args(argv)+ from shapely.geometry import shape+ features = json.loads(args.geojson.read_text(encoding="utf-8"))["features"]+ by_code = defaultdict(list)+ for feature in features:+ code = feature["properties"]["ISO_A2_EH"]+ if re.fullmatch(r"[A-Z]{2}", code or "") and code not in HAND_WRITTEN | EXCLUDED:+ by_code[code].append(feature)+ rows = []+ for code, group in sorted(by_code.items()):+ # A few codes have small extra features (e.g. Baikonur); keep the largest.+ feature = max(group, key=lambda f: shape(f["geometry"]).area)+ props = feature["properties"]+ continent = props["CONTINENT"]+ if continent.startswith("Seven seas"):+ continent = REGION_TO_CONTINENT[props["REGION_UN"]]+ bounds = envelope(feature["geometry"])+ crs, error = choose_crs(bounds)+ rows.append((continent, props["NAME_EN"], code, slug(props["NAME_EN"]), bounds, crs, error))+ print(f"{code} {props['NAME_EN']}: {bounds} {crs} max scale error {100 * error:.2f}%")+ coverages = [row[3] for row in rows]+ if len(set(coverages)) != len(coverages):+ raise SystemExit("Duplicate coverage names")+ rows.sort(key=lambda row: (row[0], row[1]))+ lines = [+ '"""Generated receiver envelopes for the remaining countries and territories.',+ "",+ "Do not edit by hand; regenerate with scripts/build_world_profiles.py, which",+ "documents the Natural Earth source, envelope rule and CRS selection rule.",+ "Each row: continent, name, ISO 3166-1 alpha-2, coverage, (west, south, east,",+ "north), search CRS, maximum point-scale error of that CRS over the envelope.",+ '"""',+ "",+ "WORLD_PROFILES = (",+ ]+ for continent, name, code, coverage, bounds, crs, error in rows:+ b = ", ".join(f"{value:g}" for value in bounds)+ lines.append(f" ({continent!r}, {name!r}, {code!r}, {coverage!r}, ({b}), {crs!r}, {error:.4f}),")+ lines.append(")")+ OUTPUT.write_text("\n".join(lines) + "\n", encoding="utf-8")+ block = [DOCS_START]+ for continent in sorted({row[0] for row in rows}):+ entries = ", ".join(f"`{row[2]}` {row[1]}" for row in rows if row[0] == continent)+ block += ["", f"**{continent}:** {entries}."]+ block += ["", DOCS_END]+ docs = DOCS.read_text(encoding="utf-8")+ start, end = docs.index(DOCS_START), docs.index(DOCS_END) + len(DOCS_END)+ DOCS.write_text(docs[:start] + "\n".join(block) + docs[end:], encoding="utf-8")+ print(f"Wrote {len(rows)} profiles to {OUTPUT} and {DOCS}")+++if __name__ == "__main__":+ main()diff --git a/scripts/check_country_profiles.py b/scripts/check_country_profiles.pyindex 4bd9757..90c22dd 100644--- a/scripts/check_country_profiles.py+++ b/scripts/check_country_profiles.py@@ -41,6 +41,8 @@ def check_contracts():corsica_subset = [9.0, 41.3, 9.3, 41.5]milan_subset = [9.05, 45.4, 9.3, 45.55]lampedusa_subset = [12.5, 35.48, 12.65, 35.55]+ oslo_subset = [10.6, 59.85, 10.9, 60.0]+ tromso_subset = [18.8, 69.6, 19.1, 69.7]cases = (("omitted search", None, {"coverage": "conus"}, "US"),("legacy CONUS", {"coverage": "conus"}, {"coverage": "conus"}, "US"),@@ -71,6 +73,12 @@ def check_contracts():{"country": "IT", "coverage": "italy", "bounds_wsen": milan_subset}, "IT"),("Lampedusa region", {"coverage": "italy", "bounds_wsen": lampedusa_subset},{"coverage": "italy", "bounds_wsen": lampedusa_subset}, "IT"),+ ("Norway country", {"country": "no"}, {"country": "NO", "coverage": "norway"}, "NO"),+ ("Norway coverage", {"coverage": "norway"}, {"coverage": "norway"}, "NO"),+ ("Norway region", {"country": "NO", "bounds_wsen": oslo_subset},+ {"country": "NO", "coverage": "norway", "bounds_wsen": oslo_subset}, "NO"),+ ("Tromso region", {"coverage": "norway", "bounds_wsen": tromso_subset},+ {"coverage": "norway", "bounds_wsen": tromso_subset}, "NO"),)validated = {}for name, search, expected, country in cases:@@ -92,7 +100,11 @@ def check_contracts():{"country": "DE", "coverage": "conus"},{"country": "US", "coverage": "germany"},{"country": "DE", "coverage": "spain"},- {"country": "PT"},+ {"country": "ZZ"}, # Not an assigned ISO 3166-1 code.+ {"country": "AQ"}, # Antarctica has no receiver profile.+ {"country": "NO", "coverage": "france"},+ {"country": "NO", "bounds_wsen": madrid_subset},+ {"country": "PT", "coverage": "spain"},{"country": "IT", "coverage": "france"},{"country": "FR", "coverage": "italy"},{"country": "IT", "bounds_wsen": madrid_subset},@@ -122,8 +134,12 @@ def check_contracts():raise CheckFailure(f"Invalid search was accepted: {search!r}")catalog = public_profiles()- require(len(catalog) == 5 and {p["country"] for p in catalog} == {"US", "DE", "ES", "FR", "IT"},- "Capabilities must describe exactly the supported US, DE, ES, FR and IT profiles")+ require({"US", "DE", "ES", "FR", "IT", "NO", "RS", "LB"} <= {p["country"] for p in catalog}+ and len({p["country"] for p in catalog}) == len(catalog) > 200+ and len({p["coverage"] for p in catalog}) == len(catalog),+ "Capabilities must list unique hand-written and generated world profiles")+ require([(p["continent"], p["name"]) for p in catalog] == sorted((p["continent"], p["name"]) for p in catalog)+ and all(p["continent"] for p in catalog), "Capabilities must be sorted and labelled by continent")for item in catalog:profile = profile_for_search({"country": item["country"]})require(item["coverage"] == profile.coverage and item["crs"] == profile.crs@@ -138,6 +154,8 @@ def check_contracts():"Metropolitan France must use its declared Lambert-93 search CRS")require(profile_for_search({"country": "IT"}).crs == "EPSG:7794","Italy must use its declared RDN2008 / Italy zone (E-N) search CRS")+ require(profile_for_search({"country": "NO"}).crs == "EPSG:3035",+ "Norway must use its declared ETRS89 / LAEA Europe search CRS")print(f"PASS requests: {len(cases)} normalization/JSON round-trip cases; "f"{len(rejected)} invalid declarations rejected; profile catalog agrees")return validated@@ -243,7 +261,7 @@ def check_spain_grid(validated):"no country polygon applied")-def check_envelope_grids(cache_root, validated, profile_case, places, regions, label):+def check_envelope_grids(cache_root, validated, profile_case, places, regions, label, tolerance_m=1e-5):import numpy as npfrom pyproj import CRS, Transformerfrom dopplergeist.geography import profile_for_search, receiver_mask_for_search@@ -269,8 +287,8 @@ def check_envelope_grids(cache_root, validated, profile_case, places, regions, lrequire(len(receivers) > 0, f"{name}: no {spacing:g} m receivers inside the selected bounds")x, y = forward.transform(receivers.lon.to_numpy(), receivers.lat.to_numpy())require(np.isfinite(x).all() and np.isfinite(y).all()- and np.allclose(x, receivers.x.to_numpy(), rtol=0, atol=1e-5)- and np.allclose(y, receivers.y.to_numpy(), rtol=0, atol=1e-5),+ and np.allclose(x, receivers.x.to_numpy(), rtol=0, atol=tolerance_m)+ and np.allclose(y, receivers.y.to_numpy(), rtol=0, atol=tolerance_m),f"{name}: grid x/y disagree with {profile.crs}")w, s, e, n = boundsrequire(bool(np.all((receivers.lon >= w) & (receivers.lon <= e)@@ -296,6 +314,53 @@ def check_italy_grids(cache_root, validated):("Italy region", "Lampedusa region"), "Italy")+def check_norway_grids(cache_root, validated):+ check_envelope_grids(cache_root, validated, "Norway country",+ (("Lindesnes", 7.05, 57.98), ("Nordkapp", 25.78, 71.17),+ ("Grense Jakobselv", 31.15, 69.79), ("Bergen", 5.32, 60.39),+ ("Oslo", 10.75, 59.91)),+ ("Norway region", "Tromso region"), "Norway", tolerance_m=1e-3)+++def check_world_grids(cache_root):+ """Every generated profile: request normalization and a round-trip grid at its centre."""+ import numpy as np+ from pyproj import CRS, Transformer+ from dopplergeist.contracts import validate_request+ from dopplergeist.geography import profile_for_search, receiver_mask_for_search+ from dopplergeist.tiled_search import _grid_extent, _tile_coordinates+ from dopplergeist.world_profiles import WORLD_PROFILES++ request_base = {"schema_version": 1, "audio_path": str(Path(__file__).resolve())}+ for continent, name, code, coverage, bounds, crs, scale_error in WORLD_PROFILES:+ if profile_for_search({"country": code}).crs != crs:+ continue # A hand-written profile takes precedence.+ west, south, east, north = bounds+ require(-180 <= west < east <= 180 and -90 < south < north < 90, f"{code}: invalid envelope")+ require(scale_error <= 0.05, f"{code}: CRS scale error {scale_error:.1%} exceeds 5%")+ area = CRS(crs).area_of_use+ require(area is None or (area.west <= west < east <= area.east and area.south <= south < north <= area.north),+ f"{code}: envelope outside the {crs} area of use")+ lon, lat = (west + east) / 2, (south + north) / 2+ half = min(0.1, (east - west) / 2, (north - south) / 2)+ subset = [round(lon - half, 4), round(lat - half, 4), round(lon + half, 4), round(lat + half, 4)]+ search = validate_request(dict(request_base, search={"country": code.lower(), "bounds_wsen": subset}))["search"]+ require(search == {"country": code, "coverage": coverage, "bounds_wsen": subset},+ f"{code}: unexpected normalized search")+ require(receiver_mask_for_search(search, cache_root=cache_root, offline=True) is None,+ f"{code}: envelope profile must not load a country polygon")+ forward = Transformer.from_crs("EPSG:4326", crs, always_xy=True)+ xmin, ymin, xmax, ymax = _grid_extent(subset, 250.0, crs)+ receivers = _tile_coordinates((xmin, ymin, xmax + 1, ymax + 1), 250.0, subset, crs)+ require(len(receivers) > 0, f"{code}: no 250 m receivers at the envelope centre")+ x, y = forward.transform(receivers.lon.to_numpy(), receivers.lat.to_numpy())+ require(np.allclose(x, receivers.x.to_numpy(), rtol=0, atol=5e-3)+ and np.allclose(y, receivers.y.to_numpy(), rtol=0, atol=5e-3),+ f"{code}: grid x/y disagree with {crs}")+ print(f"PASS world profiles: {len(WORLD_PROFILES)} generated envelopes normalize and round-trip "+ "a 250 m grid; CRS scale error within 5%")++def check_border_grid(mask, validated):import numpy as npfrom pyproj import Transformer@@ -391,6 +456,8 @@ def main(argv=None):validated = check_contracts()check_france_grids(args.cache_root, validated)check_italy_grids(args.cache_root, validated)+ check_norway_grids(args.cache_root, validated)+ check_world_grids(args.cache_root)mask = check_mask(args.cache_root, args.online, validated)check_spain_grid(validated)check_border_grid(mask, validated)diff --git a/src/dopplergeist/cli.py b/src/dopplergeist/cli.pyindex 201a276..0d9ff02 100644--- a/src/dopplergeist/cli.py+++ b/src/dopplergeist/cli.py@@ -112,8 +112,9 @@ def main():analyze.add_argument("--start-utc",help="Earliest UTC recording start, including explicit timezone")analyze.add_argument("--end-utc",help="Latest UTC recording start; defaults to earliest")analyze.add_argument("--time-source",help="How the recording start window was established")- analyze.add_argument("--country",type=str.upper,choices=("US", "DE", "ES", "FR", "IT"),- help="Receiver country: US (CONUS, default), DE (Germany), ES (Spain), FR (metropolitan France, including Corsica), or IT (Italy, including Sicily and Sardinia)")+ from .geography import public_profiles+ analyze.add_argument("--country",type=str.upper,choices=sorted(p["country"] for p in public_profiles()),metavar="CODE",+ help="Receiver country as an ISO 3166-1 alpha-2 code: US (CONUS, default), DE (Germany), ES (Spain), FR (metropolitan France, including Corsica), IT (Italy, including Sicily and Sardinia), or any other country listed in docs/COUNTRIES.md")analyze.add_argument("--bounds",type=float,nargs=4,metavar=("WEST", "SOUTH", "EAST", "NORTH"),help="Limit the selected country profile to a WGS84 rectangle in decimal degrees")analyze.add_argument("--jobs",default="jobs",help="Persistent job directory")diff --git a/src/dopplergeist/contracts.py b/src/dopplergeist/contracts.pyindex e2b5ead..0030c37 100644--- a/src/dopplergeist/contracts.py+++ b/src/dopplergeist/contracts.py@@ -21,8 +21,9 @@ class RecordingTimeWindow(TypedDict):class SearchArea(TypedDict):- country: NotRequired[Literal["US", "DE", "ES", "FR", "IT"]]- coverage: NotRequired[Literal["conus", "germany", "spain", "france", "italy"]]+ # Any profile from geography.public_profiles(), e.g. "US"/"conus" or "DE"/"germany".+ country: NotRequired[str]+ coverage: NotRequired[str]bounds_wsen: NotRequired[list[float]]diff --git a/src/dopplergeist/geography.py b/src/dopplergeist/geography.pyindex 49ef251..bf03ce2 100644--- a/src/dopplergeist/geography.py+++ b/src/dopplergeist/geography.py@@ -4,7 +4,9 @@ Country masks restrict receiver locations, never aircraft trajectories. The USprofile deliberately retains the historical CONUS rectangle and CRS. Germanyuses BKG VG250 land geometry in its native ETRS89 / UTM 32N coordinates. Spain,metropolitan France and Italy use outer geographic envelopes; the caller's-declared bounds select the actual receiver search region.+declared bounds select the actual receiver search region. Every other country+and territory with an ISO 3166-1 alpha-2 code uses a generated envelope from+``world_profiles`` (see scripts/build_world_profiles.py)."""from copy import deepcopyfrom dataclasses import dataclass@@ -17,6 +19,8 @@ import tempfilefrom urllib.parse import urlencodefrom urllib.request import Request, urlopen+from .world_profiles import WORLD_PROFILES+@dataclass(frozen=True)class SearchProfile:@@ -25,20 +29,27 @@ class SearchProfile:name: strbounds_wsen: tuple[float, float, float, float]crs: str+ continent: str = ""_PROFILES = {"US": SearchProfile("US", "conus", "United States (CONUS)",- (-125.0, 24.0, -66.0, 50.0), "EPSG:5070"),+ (-125.0, 24.0, -66.0, 50.0), "EPSG:5070", "North America"),"DE": SearchProfile("DE", "germany", "Germany",- (5.5, 47.0, 15.5, 55.2), "EPSG:32632"),+ (5.5, 47.0, 15.5, 55.2), "EPSG:32632", "Europe"),"ES": SearchProfile("ES", "spain", "Spain (all territories; bounding envelope)",- (-18.2, 27.5, 4.5, 43.9), "EPSG:6933"),+ (-18.2, 27.5, 4.5, 43.9), "EPSG:6933", "Europe"),"FR": SearchProfile("FR", "france", "France (metropolitan; bounding envelope)",- (-5.5, 41.2, 10.0, 51.2), "EPSG:2154"),+ (-5.5, 41.2, 10.0, 51.2), "EPSG:2154", "Europe"),"IT": SearchProfile("IT", "italy", "Italy (including Sicily and Sardinia; bounding envelope)",- (6.6, 35.4, 18.6, 47.1), "EPSG:7794"),+ (6.6, 35.4, 18.6, 47.1), "EPSG:7794", "Europe"),+ "NO": SearchProfile("NO", "norway", "Norway (mainland; bounding envelope)",+ (4.0, 57.9, 31.2, 71.2), "EPSG:3035", "Europe"),}+for _continent, _name, _code, _coverage, _bounds, _crs, _ in WORLD_PROFILES:+ if _code not in _PROFILES:+ _PROFILES[_code] = SearchProfile(_code, _coverage, f"{_name} (bounding envelope)",+ _bounds, _crs, _continent)_COVERAGE_COUNTRIES = {p.coverage: code for code, p in _PROFILES.items()}# WFS metadata advertises the 2025-01-01 product; the returned land object's@@ -74,10 +85,10 @@ def profile_for_search(search=None):coverage = search.get("coverage")if "country" in search:if not isinstance(country, str) or country.upper() not in _PROFILES:- raise ValueError("Supported countries are US (CONUS), DE (Germany), ES (Spain), FR (metropolitan France) and IT (Italy)")+ raise ValueError("Unsupported country; use an ISO 3166-1 alpha-2 code listed in docs/COUNTRIES.md, e.g. US (CONUS) or DE (Germany)")country = country.upper()if "coverage" in search and (not isinstance(coverage, str) or coverage not in _COVERAGE_COUNTRIES):- raise ValueError("Supported coverage values are conus (US/CONUS), germany (DE), spain (ES), france (FR) and italy (IT)")+ raise ValueError("Unsupported coverage; use a coverage name listed in docs/COUNTRIES.md, e.g. conus (US/CONUS) or germany (DE)")if country is None:country = _COVERAGE_COUNTRIES.get(coverage, "US")profile = _PROFILES[country]@@ -87,10 +98,10 @@ def profile_for_search(search=None):def public_profiles():- """Return JSON-safe profiles for the CLI/API/browser, with no local paths."""+ """Return JSON-safe profiles for the CLI/API/browser, sorted by continent."""return [{"country": p.country, "coverage": p.coverage, "name": p.name,- "bounds_wsen": list(p.bounds_wsen), "crs": p.crs}- for p in _PROFILES.values()]+ "bounds_wsen": list(p.bounds_wsen), "crs": p.crs, "continent": p.continent}+ for p in sorted(_PROFILES.values(), key=lambda p: (p.continent, p.name))]def _canonical_bytes(record):diff --git a/src/dopplergeist/web/app.js b/src/dopplergeist/web/app.jsindex 4165080..38b4a5f 100644--- a/src/dopplergeist/web/app.js+++ b/src/dopplergeist/web/app.js@@ -28,8 +28,17 @@ function setCountryProfiles(values, defaultCountry = 'US') {const previous = countryProfiles.find(profile => profile.country === $('country').value);countryProfiles = profiles.map(profile => ({...profile, bounds_wsen: profile.bounds_wsen.slice()}));countrySelectionSupported = values !== undefined;- $('country').replaceChildren(...countryProfiles.map(profile => {- const option = node('option', profile.name); option.value = profile.country; return option;+ // Newer services label each profile with a continent; group those options.+ const groups = new Map();+ for (const profile of countryProfiles) {+ const option = node('option', profile.name); option.value = profile.country;+ const label = typeof profile.continent === 'string' ? profile.continent : '';+ if (!groups.has(label)) groups.set(label, []);+ groups.get(label).push(option);+ }+ $('country').replaceChildren(...[...groups].flatMap(([label, options]) => {+ if (!label) return options;+ const group = document.createElement('optgroup'); group.label = label; group.append(...options); return [group];}));$('country').value = countries.has(previous?.country) ? previous.country: (countries.has(defaultCountry) ? defaultCountry : countryProfiles[0].country);@@ -37,7 +46,9 @@ function setCountryProfiles(values, defaultCountry = 'US') {const changed = !previous || previous.country !== current.country|| previous.bounds_wsen.some((value, index) => value !== current.bounds_wsen[index]);if (areaControl) areaControl.refreshCountry(changed);- $('supported-areas').textContent = countryProfiles.map(profile => profile.name).join('; ');+ $('supported-areas').textContent = countryProfiles.length > 10+ ? `${countryProfiles.length} countries and territories, grouped by continent in the country selector`+ : countryProfiles.map(profile => profile.name).join('; ');if (renderedJob) renderCoverage(renderedJob.coverage, renderedJob.status);}diff --git a/src/dopplergeist/world_profiles.py b/src/dopplergeist/world_profiles.pynew file mode 100644index 0000000..9ed370e--- /dev/null+++ b/src/dopplergeist/world_profiles.py@@ -0,0 +1,242 @@+"""Generated receiver envelopes for the remaining countries and territories.++Do not edit by hand; regenerate with scripts/build_world_profiles.py, which+documents the Natural Earth source, envelope rule and CRS selection rule.+Each row: continent, name, ISO 3166-1 alpha-2, coverage, (west, south, east,+north), search CRS, maximum point-scale error of that CRS over the envelope.+"""++WORLD_PROFILES = (+ ('Africa', 'Algeria', 'DZ', 'algeria', (-8.74, 18.92, 12.02, 37.15), '+proj=laea +lat_0=28.04 +lon_0=1.64 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0033),+ ('Africa', 'Angola', 'AO', 'angola', (11.61, -18.09, 24.12, -4.34), '+proj=laea +lat_0=-11.21 +lon_0=17.87 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0019),+ ('Africa', 'Benin', 'BJ', 'benin', (0.7, 6.16, 3.89, 12.45), 'EPSG:32631', 0.0004),+ ('Africa', 'Botswana', 'BW', 'botswana', (19.92, -26.95, 29.41, -17.73), '+proj=laea +lat_0=-22.34 +lon_0=24.66 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0009),+ ('Africa', 'British Indian Ocean Territory', 'IO', 'british_indian_ocean_territory', (71.21, -7.49, 72.55, -5.17), 'EPSG:3395', 0.0085),+ ('Africa', 'Burkina Faso', 'BF', 'burkina_faso', (-5.58, 9.34, 2.45, 15.13), '+proj=laea +lat_0=12.23 +lon_0=-1.56 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0006),+ ('Africa', 'Burundi', 'BI', 'burundi', (28.93, -4.52, 30.89, -2.25), 'EPSG:3395', 0.0031),+ ('Africa', 'Cameroon', 'CM', 'cameroon', (8.45, 1.6, 16.26, 13.14), 'EPSG:27701', 0.0086),+ ('Africa', 'Cape Verde', 'CV', 'cape_verde', (-25.42, 14.75, -22.61, 17.25), 'EPSG:4826', 0.0002),+ ('Africa', 'Central African Republic', 'CF', 'central_african_republic', (14.33, 2.18, 27.5, 11.06), 'EPSG:27701', 0.0026),+ ('Africa', 'Chad', 'TD', 'chad', (13.39, 7.4, 24.04, 23.5), 'EPSG:27701', 0.0114),+ ('Africa', 'Comoros', 'KM', 'comoros', (43.16, -12.44, 44.58, -11.31), 'EPSG:32738', 0.0004),+ ('Africa', 'Democratic Republic of the Congo', 'CD', 'democratic_republic_of_the_congo', (12.16, -13.51, 31.34, 5.43), '+proj=laea +lat_0=-4.04 +lon_0=21.75 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0035),+ ('Africa', 'Djibouti', 'DJ', 'djibouti', (41.69, 10.87, 43.47, 12.76), '+proj=laea +lat_0=11.81 +lon_0=42.58 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0000),+ ('Africa', 'Egypt', 'EG', 'egypt', (24.63, 21.94, 36.95, 31.71), '+proj=laea +lat_0=26.83 +lon_0=30.79 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0012),+ ('Africa', 'Equatorial Guinea', 'GQ', 'equatorial_guinea', (5.56, -1.53, 11.39, 3.83), 'EPSG:3395', 0.0022),+ ('Africa', 'Eritrea', 'ER', 'eritrea', (36.37, 12.31, 43.18, 18.06), '+proj=laea +lat_0=15.18 +lon_0=39.77 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0004),+ ('Africa', 'Eswatini', 'SZ', 'eswatini', (30.73, -27.37, 32.17, -25.68), 'EPSG:3036', 0.0003),+ ('Africa', 'Ethiopia', 'ET', 'ethiopia', (32.93, 3.35, 48.03, 14.93), '+proj=laea +lat_0=9.14 +lon_0=40.48 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0021),+ ('Africa', 'French Southern and Antarctic Lands', 'TF', 'french_southern_and_antarctic_lands', (68.56, -49.78, 70.62, -48.51), 'EPSG:7079', 0.0004),+ ('Africa', 'Gabon', 'GA', 'gabon', (8.64, -3.99, 14.55, 2.38), 'EPSG:3395', 0.0024),+ ('Africa', 'Ghana', 'GH', 'ghana', (-3.32, 4.68, 1.24, 11.22), 'EPSG:3395', 0.0194),+ ('Africa', 'Guinea', 'GN', 'guinea', (-15.14, 7.14, -7.61, 12.73), '+proj=laea +lat_0=9.94 +lon_0=-11.38 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0005),+ ('Africa', 'Guinea-Bissau', 'GW', 'guinea_bissau', (-16.78, 10.87, -13.61, 12.73), 'EPSG:32628', 0.0004),+ ('Africa', 'Heard Island and McDonald Islands', 'HM', 'heard_island_and_mcdonald_islands', (73.18, -53.25, 73.87, -52.91), 'EPSG:32743', 0.0003),+ ('Africa', 'Ivory Coast', 'CI', 'ivory_coast', (-8.67, 4.29, -2.45, 10.78), 'EPSG:3395', 0.0178),+ ('Africa', 'Kenya', 'KE', 'kenya', (33.84, -4.73, 41.94, 5.09), 'EPSG:3395', 0.0039),+ ('Africa', 'Lesotho', 'LS', 'lesotho', (26.95, -30.71, 29.49, -28.52), 'EPSG:32735', 0.0004),+ ('Africa', 'Liberia', 'LR', 'liberia', (-11.53, 4.29, -7.33, 8.62), 'EPSG:32629', 0.0006),+ ('Africa', 'Libya', 'LY', 'libya', (9.23, 19.44, 25.21, 33.24), '+proj=laea +lat_0=26.34 +lon_0=17.22 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0020),+ ('Africa', 'Madagascar', 'MG', 'madagascar', (43.17, -25.65, 50.56, -11.89), '+proj=tmerc +lat_0=0 +lon_0=46.87 +k=0.998994 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0010),+ ('Africa', 'Malawi', 'MW', 'malawi', (32.61, -17.19, 35.96, -9.33), 'EPSG:32736', 0.0009),+ ('Africa', 'Mali', 'ML', 'mali', (-12.32, 10.09, 4.29, 25.05), '+proj=laea +lat_0=17.57 +lon_0=-4.02 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0024),+ ('Africa', 'Mauritania', 'MR', 'mauritania', (-17.14, 14.68, -4.77, 27.34), '+proj=laea +lat_0=21.01 +lon_0=-10.96 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0016),+ ('Africa', 'Mauritius', 'MU', 'mauritius', (57.25, -20.57, 57.85, -19.92), 'EPSG:2975', 0.0004),+ ('Africa', 'Morocco', 'MA', 'morocco', (-17.07, 21.36, -0.98, 35.98), '+proj=laea +lat_0=28.67 +lon_0=-9.03 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0022),+ ('Africa', 'Mozambique', 'MZ', 'mozambique', (30.16, -26.92, 40.9, -10.41), '+proj=tmerc +lat_0=0 +lon_0=35.53 +k=0.997854 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0021),+ ('Africa', 'Namibia', 'NA', 'namibia', (11.66, -29.01, 25.31, -16.9), '+proj=laea +lat_0=-22.95 +lon_0=18.48 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0015),+ ('Africa', 'Niger', 'NE', 'niger', (0.1, 11.64, 16.03, 23.57), '+proj=laea +lat_0=17.61 +lon_0=8.07 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0022),+ ('Africa', 'Nigeria', 'NG', 'nigeria', (2.62, 4.22, 14.72, 13.94), 'EPSG:27701', 0.0181),+ ('Africa', 'Republic of the Congo', 'CG', 'republic_of_the_congo', (11.06, -5.07, 18.7, 3.76), 'EPSG:3395', 0.0039),+ ('Africa', 'Rwanda', 'RW', 'rwanda', (28.8, -2.88, 30.94, -1), 'EPSG:3395', 0.0013),+ ('Africa', 'Saint Helena', 'SH', 'saint_helena', (-5.84, -16.07, -5.6, -15.85), 'EPSG:7882', 0.0000),+ ('Africa', 'Senegal', 'SN', 'senegal', (-17.59, 12.25, -11.32, 16.75), '+proj=laea +lat_0=14.5 +lon_0=-14.46 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0004),+ ('Africa', 'Seychelles', 'SC', 'seychelles', (52.69, -7.25, 56.34, -3.74), 'EPSG:3395', 0.0080),+ ('Africa', 'Sierra Leone', 'SL', 'sierra_leone', (-13.36, 6.86, -10.23, 10.05), 'EPSG:3395', 0.0155),+ ('Africa', 'Somalia', 'SO', 'somalia', (40.91, -1.75, 51.47, 12.04), '+proj=laea +lat_0=5.14 +lon_0=46.19 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0018),+ ('Africa', 'South Africa', 'ZA', 'south_africa', (16.41, -34.88, 32.95, -22.07), '+proj=laea +lat_0=-28.48 +lon_0=24.68 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0020),+ ('Africa', 'South Sudan', 'SS', 'south_sudan', (24.07, 3.44, 35.98, 12.27), 'EPSG:27701', 0.0106),+ ('Africa', 'Sudan', 'SD', 'sudan', (21.75, 8.63, 38.66, 22.28), 'EPSG:27701', 0.0153),+ ('Africa', 'São Tomé and Príncipe', 'ST', 'sao_tome_and_principe', (6.41, -0.03, 7.52, 1.75), 'EPSG:3395', 0.0005),+ ('Africa', 'Tanzania', 'TZ', 'tanzania', (29.27, -11.79, 40.5, -0.93), '+proj=laea +lat_0=-6.36 +lon_0=34.88 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0012),+ ('Africa', 'The Gambia', 'GM', 'the_gambia', (-16.88, 13.01, -13.76, 13.87), 'EPSG:32628', 0.0004),+ ('Africa', 'Togo', 'TG', 'togo', (-0.22, 6.05, 1.84, 11.19), 'EPSG:3395', 0.0193),+ ('Africa', 'Tunisia', 'TN', 'tunisia', (7.42, 30.17, 11.62, 37.4), 'EPSG:22232', 0.0004),+ ('Africa', 'Uganda', 'UG', 'uganda', (29.49, -1.53, 35.06, 4.27), 'EPSG:3395', 0.0028),+ ('Africa', 'Western Sahara', 'EH', 'western_sahara', (-17.16, 20.71, -8.63, 27.72), '+proj=laea +lat_0=24.21 +lon_0=-12.89 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0006),+ ('Africa', 'Zambia', 'ZM', 'zambia', (21.92, -18.12, 33.73, -8.14), '+proj=laea +lat_0=-13.13 +lon_0=27.82 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0013),+ ('Africa', 'Zimbabwe', 'ZW', 'zimbabwe', (25.16, -22.45, 33.1, -15.56), '+proj=laea +lat_0=-19 +lon_0=29.13 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0005),+ ('Asia', 'Afghanistan', 'AF', 'afghanistan', (60.43, 29.33, 74.95, 38.53), '+proj=laea +lat_0=33.93 +lon_0=67.69 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0014),+ ('Asia', 'Armenia', 'AM', 'armenia', (43.38, 38.81, 46.66, 41.35), 'EPSG:32638', 0.0004),+ ('Asia', 'Azerbaijan', 'AZ', 'azerbaijan', (44.72, 38.34, 50.68, 41.95), 'EPSG:27704', 0.0155),+ ('Asia', 'Bahrain', 'BH', 'bahrain', (50.33, 25.52, 50.87, 26.34), 'EPSG:8839', 0.0004),+ ('Asia', 'Bangladesh', 'BD', 'bangladesh', (87.97, 20.68, 92.7, 26.68), 'EPSG:7755', 0.0195),+ ('Asia', 'Bhutan', 'BT', 'bhutan', (88.68, 26.64, 92.14, 28.41), 'EPSG:7755', 0.0184),+ ('Asia', 'Brunei', 'BN', 'brunei', (113.94, 3.96, 115.42, 5.11), 'EPSG:3376', 0.0002),+ ('Asia', 'Cambodia', 'KH', 'cambodia', (102.26, 10.36, 107.67, 14.76), 'EPSG:32648', 0.0007),+ ('Asia', 'Cyprus', 'CY', 'cyprus', (32.22, 34.57, 34.15, 35.24), 'EPSG:3048', 0.0004),+ ('Asia', 'East Timor', 'TL', 'east_timor', (123.98, -9.56, 127.37, -8.08), 'EPSG:3395', 0.0140),+ ('Asia', 'Georgia', 'GE', 'georgia', (39.93, 40.99, 46.75, 43.63), 'EPSG:27704', 0.0100),+ ('Asia', 'Hong Kong', 'HK', 'hong_kong', (113.78, 22.12, 114.46, 22.62), 'EPSG:2362', 0.0000),+ ('Asia', 'India', 'IN', 'india', (68.09, 6.69, 97.42, 35.55), '+proj=laea +lat_0=21.12 +lon_0=82.75 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0082),+ ('Asia', 'Indonesia', 'ID', 'indonesia', (94.96, -10.98, 141.03, 5.97), 'EPSG:3395', 0.0185),+ ('Asia', 'Iran', 'IR', 'iran', (43.96, 25, 63.37, 39.83), '+proj=laea +lat_0=32.41 +lon_0=53.66 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0026),+ ('Asia', 'Iraq', 'IQ', 'iraq', (38.72, 29.01, 48.61, 37.43), '+proj=laea +lat_0=33.22 +lon_0=43.66 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0008),+ ('Asia', 'Israel', 'IL', 'israel', (34.19, 29.43, 35.94, 33.46), 'EPSG:32636', 0.0006),+ ('Asia', 'Japan', 'JP', 'japan', (122.88, 24.16, 145.88, 45.58), '+proj=laea +lat_0=34.87 +lon_0=134.38 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0046),+ ('Asia', 'Jordan', 'JO', 'jordan', (34.89, 29.13, 39.35, 33.43), 'EPSG:3035', 0.0151),+ ('Asia', 'Kazakhstan', 'KZ', 'kazakhstan', (46.42, 40.53, 87.38, 55.49), '+proj=lcc +lat_0=48.01 +lon_0=66.9 +lat_1=43.02 +lat_2=53 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0050),+ ('Asia', 'Kuwait', 'KW', 'kuwait', (46.48, 28.48, 48.49, 30.15), 'EPSG:6933', 0.0149),+ ('Asia', 'Kyrgyzstan', 'KG', 'kyrgyzstan', (69.17, 39.13, 80.31, 43.32), '+proj=lcc +lat_0=41.23 +lon_0=74.74 +lat_1=39.83 +lat_2=42.62 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0004),+ ('Asia', 'Laos', 'LA', 'laos', (100.04, 13.86, 107.72, 22.55), '+proj=laea +lat_0=18.2 +lon_0=103.88 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0008),+ ('Asia', 'Lebanon', 'LB', 'lebanon', (35.04, 33, 36.66, 34.74), 'EPSG:3035', 0.0082),+ ('Asia', 'Macau', 'MO', 'macau', (113.46, 22.05, 113.64, 22.28), 'EPSG:2362', 0.0000),+ ('Asia', 'Malaysia', 'MY', 'malaysia', (109.47, 0.8, 119.33, 7.41), 'EPSG:3395', 0.0084),+ ('Asia', 'Maldives', 'MV', 'maldives', (72.63, -0.74, 73.81, 7.16), 'EPSG:3395', 0.0078),+ ('Asia', 'Mongolia', 'MN', 'mongolia', (87.68, 41.53, 119.96, 52.18), '+proj=lcc +lat_0=46.86 +lon_0=103.82 +lat_1=43.3 +lat_2=50.41 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0025),+ ('Asia', 'Myanmar', 'MM', 'myanmar', (92.12, 9.74, 101.23, 28.59), '+proj=tmerc +lat_0=0 +lon_0=96.68 +k=0.998448 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0016),+ ('Asia', 'Nepal', 'NP', 'nepal', (79.98, 26.29, 88.22, 30.47), 'EPSG:7755', 0.0187),+ ('Asia', 'North Korea', 'KP', 'north_korea', (124.16, 37.62, 130.75, 43.07), '+proj=laea +lat_0=40.34 +lon_0=127.45 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0003),+ ('Asia', 'Oman', 'OM', 'oman', (51.92, 16.59, 59.9, 26.44), '+proj=laea +lat_0=21.52 +lon_0=55.91 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0010),+ ('Asia', 'Pakistan', 'PK', 'pakistan', (60.79, 23.64, 77.1, 37.11), '+proj=laea +lat_0=30.38 +lon_0=68.94 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0019),+ ('Asia', 'Palestine', 'PS', 'palestine', (34.15, 31.16, 35.63, 32.6), 'EPSG:32636', 0.0004),+ ('Asia', "People's Republic of China", 'CN', 'people_s_republic_of_china', (73.55, 15.72, 134.83, 53.62), '+proj=laea +lat_0=34.67 +lon_0=104.19 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0240),+ ('Asia', 'Philippines', 'PH', 'philippines', (116.9, 4.6, 126.67, 21.18), '+proj=tmerc +lat_0=0 +lon_0=121.78 +k=0.998173 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0018),+ ('Asia', 'Qatar', 'QA', 'qatar', (50.7, 24.5, 51.67, 26.22), 'EPSG:8839', 0.0004),+ ('Asia', 'Saudi Arabia', 'SA', 'saudi_arabia', (34.52, 16.32, 55.69, 32.18), '+proj=laea +lat_0=24.25 +lon_0=45.11 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0036),+ ('Asia', 'Singapore', 'SG', 'singapore', (103.59, 1.21, 104.06, 1.5), 'EPSG:3377', 0.0001),+ ('Asia', 'South Korea', 'KR', 'south_korea', (124.56, 33.14, 131.92, 38.68), 'EPSG:5179', 0.0017),+ ('Asia', 'Sri Lanka', 'LK', 'sri_lanka', (79.6, 5.87, 81.95, 9.88), 'EPSG:32644', 0.0004),+ ('Asia', 'Syria', 'SY', 'syria', (35.67, 32.26, 42.43, 37.38), 'EPSG:3035', 0.0092),+ ('Asia', 'Taiwan', 'TW', 'taiwan', (118.22, 21.85, 122.06, 25.34), '+proj=laea +lat_0=23.59 +lon_0=120.14 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0001),+ ('Asia', 'Tajikistan', 'TJ', 'tajikistan', (67.29, 36.62, 75.22, 41.09), '+proj=laea +lat_0=38.86 +lon_0=71.25 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0004),+ ('Asia', 'Thailand', 'TH', 'thailand', (97.3, 5.57, 105.71, 20.5), '+proj=tmerc +lat_0=0 +lon_0=101.5 +k=0.998651 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0013),+ ('Asia', 'Turkey', 'TR', 'turkey', (25.61, 35.76, 44.86, 42.15), 'EPSG:27704', 0.0183),+ ('Asia', 'Turkmenistan', 'TM', 'turkmenistan', (52.38, 35.09, 66.7, 42.85), '+proj=laea +lat_0=38.97 +lon_0=59.54 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0012),+ ('Asia', 'United Arab Emirates', 'AE', 'united_arab_emirates', (51.51, 22.57, 56.44, 26.13), '+proj=laea +lat_0=24.35 +lon_0=53.97 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0002),+ ('Asia', 'Uzbekistan', 'UZ', 'uzbekistan', (55.92, 37.13, 73.2, 45.61), '+proj=lcc +lat_0=41.37 +lon_0=64.56 +lat_1=38.54 +lat_2=44.2 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0016),+ ('Asia', 'Vietnam', 'VN', 'vietnam', (102.06, 8.51, 109.53, 23.42), '+proj=tmerc +lat_0=0 +lon_0=105.8 +k=0.998949 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0011),+ ('Asia', 'Yemen', 'YE', 'yemen', (42.49, 12.06, 54.6, 19.05), '+proj=lcc +lat_0=15.55 +lon_0=48.55 +lat_1=13.23 +lat_2=17.89 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0010),+ ('Europe', 'Albania', 'AL', 'albania', (19.22, 39.58, 21.09, 42.71), 'EPSG:3046', 0.0004),+ ('Europe', 'Andorra', 'AD', 'andorra', (1.35, 42.37, 1.82, 42.7), 'EPSG:3942', 0.0001),+ ('Europe', 'Austria', 'AT', 'austria', (9.47, 46.32, 17.2, 49.06), 'EPSG:3035', 0.0011),+ ('Europe', 'Belarus', 'BY', 'belarus', (23.11, 51.18, 32.77, 56.21), 'EPSG:27704', 0.0014),+ ('Europe', 'Belgium', 'BE', 'belgium', (2.47, 49.44, 6.43, 51.55), 'EPSG:3035', 0.0008),+ ('Europe', 'Bosnia and Herzegovina', 'BA', 'bosnia_and_herzegovina', (15.66, 42.5, 19.67, 45.34), 'EPSG:3035', 0.0029),+ ('Europe', 'Bulgaria', 'BG', 'bulgaria', (22.29, 41.18, 28.66, 44.28), 'EPSG:3035', 0.0026),+ ('Europe', 'Croatia', 'HR', 'croatia', (13.45, 42.36, 19.46, 46.6), 'EPSG:3035', 0.0032),+ ('Europe', 'Czech Republic', 'CZ', 'czech_republic', (12.02, 48.5, 18.89, 51.1), 'EPSG:3035', 0.0011),+ ('Europe', 'Denmark', 'DK', 'denmark', (8.04, 54.51, 15.21, 57.81), 'EPSG:3035', 0.0014),+ ('Europe', 'Estonia', 'EE', 'estonia', (21.78, 57.46, 28.24, 59.73), 'EPSG:25884', 0.0004),+ ('Europe', 'Faroe Islands', 'FO', 'faroe_islands', (-7.7, 61.34, -6.22, 62.45), 'EPSG:5316', 0.0000),+ ('Europe', 'Finland', 'FI', 'finland', (20.57, 59.76, 31.62, 70.13), 'EPSG:5933', 0.0024),+ ('Europe', 'Gibraltar', 'GI', 'gibraltar', (-5.41, 36.06, -5.28, 36.2), 'EPSG:3042', 0.0002),+ ('Europe', 'Greece', 'GR', 'greece', (19.57, 34.76, 28.29, 41.81), 'EPSG:3035', 0.0102),+ ('Europe', 'Guernsey', 'GG', 'guernsey', (-2.73, 49.36, -2.12, 49.79), 'EPSG:3108', 0.0000),+ ('Europe', 'Hungary', 'HU', 'hungary', (16.04, 45.69, 22.93, 48.62), 'EPSG:3035', 0.0019),+ ('Europe', 'Iceland', 'IS', 'iceland', (-24.59, 63.34, -13.45, 66.62), 'EPSG:9947', 0.0002),+ ('Europe', 'Ireland', 'IE', 'ireland', (-10.53, 51.39, -5.94, 55.44), 'EPSG:3035', 0.0060),+ ('Europe', 'Isle of Man', 'IM', 'isle_of_man', (-4.85, 54, -4.26, 54.47), 'EPSG:3042', 0.0003),+ ('Europe', 'Jersey', 'JE', 'jersey', (-2.3, 49.12, -1.95, 49.32), 'EPSG:3109', 0.0000),+ ('Europe', 'Kosovo', 'XK', 'kosovo', (19.97, 41.79, 21.83, 43.32), 'EPSG:3046', 0.0004),+ ('Europe', 'Latvia', 'LV', 'latvia', (20.91, 55.61, 28.27, 58.13), 'EPSG:27704', 0.0013),+ ('Europe', 'Liechtenstein', 'LI', 'liechtenstein', (9.42, 47, 9.67, 47.32), 'EPSG:3044', 0.0004),+ ('Europe', 'Lithuania', 'LT', 'lithuania', (20.87, 53.83, 26.86, 56.5), 'EPSG:27704', 0.0006),+ ('Europe', 'Luxembourg', 'LU', 'luxembourg', (5.66, 49.39, 6.56, 50.23), 'EPSG:3950', 0.0001),+ ('Europe', 'Malta', 'MT', 'malta', (14.13, 35.75, 14.62, 36.13), 'EPSG:3045', 0.0004),+ ('Europe', 'Moldova', 'MD', 'moldova', (26.56, 45.41, 30.19, 48.54), 'EPSG:27704', 0.0030),+ ('Europe', 'Monaco', 'MC', 'monaco', (7.31, 43.66, 7.49, 43.82), 'EPSG:3943', 0.0000),+ ('Europe', 'Montenegro', 'ME', 'montenegro', (18.38, 41.8, 20.41, 43.6), 'EPSG:3046', 0.0004),+ ('Europe', 'Netherlands', 'NL', 'netherlands', (3.29, 50.69, 7.25, 53.61), 'EPSG:3035', 0.0007),+ ('Europe', 'North Macedonia', 'MK', 'north_macedonia', (20.39, 40.79, 23.06, 42.43), 'EPSG:3046', 0.0004),+ ('Europe', 'Poland', 'PL', 'poland', (14.07, 48.94, 24.2, 54.89), 'EPSG:27704', 0.0018),+ ('Europe', 'Portugal', 'PT', 'portugal', (-9.55, 36.91, -6.15, 42.21), 'EPSG:3041', 0.0004),+ ('Europe', 'Romania', 'RO', 'romania', (20.19, 43.6, 29.75, 48.33), 'EPSG:27704', 0.0046),+ ('Europe', 'Russia', 'RU', 'russia', (19.55, 41.14, 180, 81.91), '+proj=laea +lat_0=61.52 +lon_0=99.78 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0338),+ ('Europe', 'San Marino', 'SM', 'san_marino', (12.33, 43.84, 12.55, 44.04), 'EPSG:6876', 0.0000),+ ('Europe', 'Serbia', 'RS', 'serbia', (18.79, 42.18, 23.04, 46.23), 'EPSG:3046', 0.0004),+ ('Europe', 'Slovakia', 'SK', 'slovakia', (16.79, 47.7, 22.59, 49.66), 'EPSG:27704', 0.0015),+ ('Europe', 'Slovenia', 'SI', 'slovenia', (13.31, 45.37, 16.57, 46.92), 'EPSG:3045', 0.0004),+ ('Europe', 'Sweden', 'SE', 'sweden', (11.05, 55.29, 24.22, 69.09), 'EPSG:3035', 0.0115),+ ('Europe', 'Switzerland', 'CH', 'switzerland', (5.9, 45.77, 10.52, 47.86), 'EPSG:3035', 0.0014),+ ('Europe', 'Ukraine', 'UA', 'ukraine', (22.08, 45.16, 40.21, 52.42), 'EPSG:27704', 0.0048),+ ('Europe', 'United Kingdom', 'GB', 'united_kingdom', (-13.75, 49.85, 1.83, 60.9), 'EPSG:3035', 0.0080),+ ('Europe', 'Vatican City', 'VA', 'vatican_city', (12.4, 41.85, 12.51, 41.96), 'EPSG:6876', 0.0000),+ ('Europe', 'Åland', 'AX', 'aland', (19.46, 59.85, 21.15, 60.54), 'EPSG:3046', 0.0004),+ ('North America', 'Anguilla', 'AI', 'anguilla', (-63.48, 18.11, -62.87, 18.66), 'EPSG:26920', 0.0004),+ ('North America', 'Antigua and Barbuda', 'AG', 'antigua_and_barbuda', (-62.4, 16.88, -61.61, 17.78), 'EPSG:4559', 0.0003),+ ('North America', 'Aruba', 'AW', 'aruba', (-70.12, 12.36, -69.82, 12.69), 'EPSG:2202', 0.0003),+ ('North America', 'Barbados', 'BB', 'barbados', (-59.71, 13, -59.37, 13.4), 'EPSG:32621', 0.0007),+ ('North America', 'Belize', 'BZ', 'belize', (-89.29, 15.82, -87.73, 18.55), 'EPSG:31970', 0.0003),+ ('North America', 'Bermuda', 'BM', 'bermuda', (-64.94, 32.19, -64.59, 32.44), 'EPSG:3770', 0.0000),+ ('North America', 'British Virgin Islands', 'VG', 'british_virgin_islands', (-64.83, 18.28, -64.22, 18.8), 'EPSG:32161', 0.0000),+ ('North America', 'Canada', 'CA', 'canada', (-141.06, 41.61, -52.56, 83.17), '+proj=laea +lat_0=62.39 +lon_0=-96.81 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0170),+ ('North America', 'Cayman Islands', 'KY', 'cayman_islands', (-81.47, 19.21, -79.67, 19.81), 'EPSG:32617', 0.0004),+ ('North America', 'Costa Rica', 'CR', 'costa_rica', (-87.17, 5.46, -82.51, 11.26), 'EPSG:3395', 0.0195),+ ('North America', 'Cuba', 'CU', 'cuba', (-85, 19.77, -74.08, 23.32), '+proj=lcc +lat_0=21.55 +lon_0=-79.54 +lat_1=20.36 +lat_2=22.73 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0003),+ ('North America', 'Curaçao', 'CW', 'curacao', (-69.23, 11.99, -68.68, 12.45), 'EPSG:2202', 0.0004),+ ('North America', 'Dominica', 'DM', 'dominica', (-61.54, 15.15, -61.19, 15.69), 'EPSG:2203', 0.0001),+ ('North America', 'Dominican Republic', 'DO', 'dominican_republic', (-72.06, 17.49, -68.27, 19.99), '+proj=laea +lat_0=18.74 +lon_0=-70.16 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0001),+ ('North America', 'El Salvador', 'SV', 'el_salvador', (-90.17, 13.1, -87.64, 14.5), 'EPSG:6362', 0.0108),+ ('North America', 'Greenland', 'GL', 'greenland', (-73.11, 59.74, -11.32, 83.69), '+proj=laea +lat_0=71.72 +lon_0=-42.22 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0056),+ ('North America', 'Grenada', 'GD', 'grenada', (-61.85, 11.95, -61.37, 12.58), 'EPSG:2203', 0.0002),+ ('North America', 'Guatemala', 'GT', 'guatemala', (-92.3, 13.68, -88.17, 17.87), 'EPSG:6362', 0.0090),+ ('North America', 'Haiti', 'HT', 'haiti', (-74.54, 17.97, -71.58, 20.14), '+proj=laea +lat_0=19.05 +lon_0=-73.06 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0001),+ ('North America', 'Honduras', 'HN', 'honduras', (-89.42, 12.92, -83.08, 17.47), '+proj=laea +lat_0=15.2 +lon_0=-86.25 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0004),+ ('North America', 'Jamaica', 'JM', 'jamaica', (-78.43, 17.65, -76.13, 18.58), '+proj=lcc +lat_0=18.11 +lon_0=-77.28 +lat_1=17.8 +lat_2=18.42 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0000),+ ('North America', 'Mexico', 'MX', 'mexico', (-118.42, 14.49, -86.65, 32.77), '+proj=lcc +lat_0=23.63 +lon_0=-102.53 +lat_1=17.54 +lat_2=29.72 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0073),+ ('North America', 'Montserrat', 'MS', 'montserrat', (-62.29, 16.62, -62.09, 16.87), 'EPSG:4559', 0.0003),+ ('North America', 'Nicaragua', 'NI', 'nicaragua', (-87.74, 10.66, -82.67, 15.09), '+proj=laea +lat_0=12.88 +lon_0=-85.2 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0002),+ ('North America', 'Panama', 'PA', 'panama', (-83.11, 7.15, -77.11, 9.68), 'EPSG:3395', 0.0143),+ ('North America', 'Puerto Rico', 'PR', 'puerto_rico', (-67.99, 17.87, -65.19, 18.58), 'EPSG:32161', 0.0000),+ ('North America', 'Saint Barthélemy', 'BL', 'saint_barthelemy', (-62.92, 17.83, -62.74, 17.98), 'EPSG:4559', 0.0004),+ ('North America', 'Saint Kitts and Nevis', 'KN', 'saint_kitts_and_nevis', (-62.92, 17.05, -62.48, 17.47), 'EPSG:4559', 0.0004),+ ('North America', 'Saint Lucia', 'LC', 'saint_lucia', (-61.13, 13.66, -60.83, 14.17), 'EPSG:2203', 0.0003),+ ('North America', 'Saint Martin', 'MF', 'saint_martin', (-63.2, 17.98, -62.96, 18.18), 'EPSG:4559', 0.0004),+ ('North America', 'Saint Pierre and Miquelon', 'PM', 'saint_pierre_and_miquelon', (-56.45, 46.7, -56.09, 47.2), 'EPSG:2962', 0.0004),+ ('North America', 'Saint Vincent and the Grenadines', 'VC', 'saint_vincent_and_the_grenadines', (-61.51, 12.53, -61.07, 13.44), 'EPSG:2203', 0.0001),+ ('North America', 'Sint Maarten', 'SX', 'sint_maarten', (-63.17, 17.96, -62.96, 18.12), 'EPSG:4559', 0.0004),+ ('North America', 'The Bahamas', 'BS', 'the_bahamas', (-79.65, 20.86, -72.69, 26.98), '+proj=laea +lat_0=23.92 +lon_0=-76.17 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0004),+ ('North America', 'Trinidad and Tobago', 'TT', 'trinidad_and_tobago', (-61.98, 9.99, -60.47, 11.41), 'EPSG:2203', 0.0006),+ ('North America', 'Turks and Caicos Islands', 'TC', 'turks_and_caicos_islands', (-72.54, 21.24, -71.07, 22.01), '+proj=lcc +lat_0=21.62 +lon_0=-71.81 +lat_1=21.37 +lat_2=21.88 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0000),+ ('North America', 'United States Minor Outlying Islands', 'UM', 'united_states_minor_outlying_islands', (-162.46, 5.81, -162, 6.5), 'EPSG:32603', 0.0010),+ ('North America', 'United States Virgin Islands', 'VI', 'united_states_virgin_islands', (-65.1, 17.63, -64.5, 18.44), 'EPSG:32161', 0.0000),+ ('Oceania', 'American Samoa', 'AS', 'american_samoa', (-171.14, -14.59, -168.11, -11), 'EPSG:32702', 0.0008),+ ('Oceania', 'Australia', 'AU', 'australia', (112.86, -43.7, 153.69, -9.19), '+proj=laea +lat_0=-26.45 +lon_0=133.28 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0128),+ ('Oceania', 'Cook Islands', 'CK', 'cook_islands', (-159.9, -21.99, -157.26, -18.77), 'EPSG:32704', 0.0004),+ ('Oceania', 'Federated States of Micronesia', 'FM', 'federated_states_of_micronesia', (149.13, 0.86, 158.39, 9.04), 'EPSG:3395', 0.0125),+ ('Oceania', 'Fiji', 'FJ', 'fiji', (174.53, -21.77, 180, -12.42), 'EPSG:32760', 0.0009),+ ('Oceania', 'French Polynesia', 'PF', 'french_polynesia', (-154.59, -27.7, -134.89, -7.9), '+proj=laea +lat_0=-17.8 +lon_0=-144.74 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0039),+ ('Oceania', 'Guam', 'GU', 'guam', (144.57, 13.19, 145.01, 13.71), 'EPSG:8693', 0.0005),+ ('Oceania', 'Kiribati', 'KI', 'kiribati', (-160.47, 1.65, -157.12, 4.78), 'EPSG:32604', 0.0004),+ ('Oceania', 'Marshall Islands', 'MH', 'marshall_islands', (165.23, 4.52, 172.08, 14.67), '+proj=tmerc +lat_0=0 +lon_0=168.66 +k=0.999102 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0009),+ ('Oceania', 'Nauru', 'NR', 'nauru', (166.85, -0.61, 167.01, -0.44), 'EPSG:3395', 0.0001),+ ('Oceania', 'New Caledonia', 'NC', 'new_caledonia', (163.56, -22.73, 171.4, -19.57), '+proj=lcc +lat_0=-21.15 +lon_0=167.48 +lat_1=-22.2 +lat_2=-20.1 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0002),+ ('Oceania', 'New Zealand', 'NZ', 'new_zealand', (165.83, -52.66, 178.9, -34.09), '+proj=tmerc +lat_0=0 +lon_0=172.37 +k=0.99775 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0022),+ ('Oceania', 'Niue', 'NU', 'niue', (-170.01, -19.2, -169.73, -18.91), 'EPSG:32702', 0.0003),+ ('Oceania', 'Norfolk Island', 'NF', 'norfolk_island', (167.86, -29.14, 168.05, -28.94), 'EPSG:6933', 0.0105),+ ('Oceania', 'Northern Mariana Islands', 'MP', 'northern_mariana_islands', (144.85, 14.06, 145.92, 20.61), 'EPSG:8693', 0.0003),+ ('Oceania', 'Palau', 'PW', 'palau', (131.08, 2.89, 134.78, 8.15), 'EPSG:3395', 0.0101),+ ('Oceania', 'Papua New Guinea', 'PG', 'papua_new_guinea', (140.79, -11.69, 156.02, -1.29), '+proj=laea +lat_0=-6.49 +lon_0=148.41 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0022),+ ('Oceania', 'Pitcairn Islands', 'PN', 'pitcairn_islands', (-130.81, -25.13, -124.72, -23.87), '+proj=lcc +lat_0=-24.5 +lon_0=-127.77 +lat_1=-24.92 +lat_2=-24.08 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0000),+ ('Oceania', 'Samoa', 'WS', 'samoa', (-172.84, -14.11, -171.38, -13.41), 'EPSG:32702', 0.0004),+ ('Oceania', 'Solomon Islands', 'SB', 'solomon_islands', (155.45, -12.35, 168.88, -6.54), '+proj=lcc +lat_0=-9.45 +lon_0=162.16 +lat_1=-11.38 +lat_2=-7.51 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0007),+ ('Oceania', 'Tonga', 'TO', 'tonga', (-176.27, -22.39, -173.86, -15.5), 'EPSG:5887', 0.0010),+ ('Oceania', 'Tuvalu', 'TV', 'tuvalu', (176.07, -9.48, 179.96, -5.62), 'EPSG:32760', 0.0009),+ ('Oceania', 'Vanuatu', 'VU', 'vanuatu', (166.47, -20.31, 169.95, -13.01), '+proj=tmerc +lat_0=0 +lon_0=168.21 +k=0.99978 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0002),+ ('Oceania', 'Wallis and Futuna', 'WF', 'wallis_and_futuna', (-178.24, -14.37, -176.07, -13.15), 'EPSG:32701', 0.0004),+ ('South America', 'Argentina', 'AR', 'argentina', (-73.63, -55.11, -53.61, -21.73), '+proj=tmerc +lat_0=0 +lon_0=-63.62 +k=0.993313 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0067),+ ('South America', 'Bolivia', 'BO', 'bolivia', (-69.72, -22.95, -57.41, -9.62), 'EPSG:27707', 0.0041),+ ('South America', 'Brazil', 'BR', 'brazil', (-74.07, -33.8, -28.82, 5.32), '+proj=laea +lat_0=-14.24 +lon_0=-51.44 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0185),+ ('South America', 'Chile', 'CL', 'chile', (-80.83, -55.97, -66.37, -17.45), '+proj=tmerc +lat_0=0 +lon_0=-73.6 +k=0.996334 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0037),+ ('South America', 'Colombia', 'CO', 'colombia', (-81.78, -4.29, -66.82, 13.63), '+proj=laea +lat_0=4.67 +lon_0=-74.3 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0031),+ ('South America', 'Ecuador', 'EC', 'ecuador', (-81.07, -5.07, -75.17, 1.49), 'EPSG:3395', 0.0039),+ ('South America', 'Falkland Islands', 'FK', 'falkland_islands', (-61.37, -52.46, -57.68, -50.97), 'EPSG:6703', 0.0004),+ ('South America', 'Guyana', 'GY', 'guyana', (-61.45, 1.13, -56.43, 8.61), 'EPSG:3395', 0.0113),+ ('South America', 'Paraguay', 'PY', 'paraguay', (-62.71, -27.64, -54.19, -19.23), 'EPSG:27707', 0.0095),+ ('South America', 'Peru', 'PE', 'peru', (-81.39, -18.39, -68.63, 0.03), '+proj=tmerc +lat_0=0 +lon_0=-75.01 +k=0.996863 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0031),+ ('South America', 'South Georgia and the South Sandwich Islands', 'GS', 'south_georgia_and_the_south_sandwich_islands', (-38.14, -54.94, -35.73, -53.92), '+proj=laea +lat_0=-54.43 +lon_0=-36.94 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0000),+ ('South America', 'Suriname', 'SR', 'suriname', (-58.12, 1.78, -53.93, 6.07), 'EPSG:5880', 0.0026),+ ('South America', 'Uruguay', 'UY', 'uruguay', (-58.49, -35.03, -53.06, -30.04), 'EPSG:5880', 0.0023),+ ('South America', 'Venezuela', 'VE', 'venezuela', (-73.45, 0.59, -59.76, 15.76), '+proj=laea +lat_0=8.18 +lon_0=-66.61 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs', 0.0022),+)diff --git a/tests/test_geography_profiles.py b/tests/test_geography_profiles.pyindex ab3ce50..7cfb3fa 100644--- a/tests/test_geography_profiles.py+++ b/tests/test_geography_profiles.py@@ -19,3 +19,40 @@ def test_spain_profile_is_available_to_upload_capabilities():assert profile["coverage"] == "spain"assert profile["name"] == "Spain (all territories; bounding envelope)"assert profile["bounds_wsen"] == [-18.2, 27.5, 4.5, 43.9]+++def test_generated_world_profiles_cover_serbia_and_lebanon(tmp_path):+ for code, coverage in (("RS", "serbia"), ("LB", "lebanon")):+ profile = profile_for_search({"country": code.lower()})+ assert profile.coverage == coverage+ assert profile.continent in {"Europe", "Asia"}+ assert profile_for_search({"coverage": coverage}) == profile+ assert receiver_mask_for_search({"country": code}, cache_root=tmp_path, offline=True) is None+ assert profile_for_search().country == "US"+++def test_world_profiles_are_grouped_by_continent_in_capabilities():+ catalog = public_profiles()+ assert len(catalog) > 200+ assert [(p["continent"], p["name"]) for p in catalog] == sorted((p["continent"], p["name"]) for p in catalog)+ assert {p["continent"] for p in catalog} == {"Africa", "Asia", "Europe", "North America", "Oceania", "South America"}+++def test_norway_profile_supports_bounded_oslo_uploads_without_country_mask(tmp_path):+ search = {"country": "NO", "coverage": "norway", "bounds_wsen": [10.6, 59.85, 10.9, 60.0]}+ profile = profile_for_search(search)++ assert profile.country == "NO"+ assert profile.coverage == "norway"+ assert profile.crs == "EPSG:3035"+ assert profile.bounds_wsen == (4.0, 57.9, 31.2, 71.2)+ assert receiver_mask_for_search(search, cache_root=tmp_path, offline=True) is None+++def test_norway_profile_is_available_to_upload_capabilities():+ profile = next(item for item in public_profiles() if item["country"] == "NO")++ assert profile["coverage"] == "norway"+ assert profile["name"] == "Norway (mainland; bounding envelope)"+ assert profile["bounds_wsen"] == [4.0, 57.9, 31.2, 71.2]+ assert profile["continent"] == "Europe"