cf-regions 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. cf_regions-0.1.0/AUTHORS.md +9 -0
  2. cf_regions-0.1.0/CHANGELOG.md +32 -0
  3. cf_regions-0.1.0/CODE_OF_CONDUCT.md +27 -0
  4. cf_regions-0.1.0/CONTRIBUTING.md +49 -0
  5. cf_regions-0.1.0/DATA_LICENSES.md +153 -0
  6. cf_regions-0.1.0/LICENSE +202 -0
  7. cf_regions-0.1.0/MANIFEST.in +3 -0
  8. cf_regions-0.1.0/NOTICE +9 -0
  9. cf_regions-0.1.0/PKG-INFO +187 -0
  10. cf_regions-0.1.0/README.md +145 -0
  11. cf_regions-0.1.0/SECURITY.md +6 -0
  12. cf_regions-0.1.0/docs/api-usage.md +192 -0
  13. cf_regions-0.1.0/docs/cli-usage.md +162 -0
  14. cf_regions-0.1.0/docs/data-sources-and-mapping.md +287 -0
  15. cf_regions-0.1.0/docs/dataset-maintenance.md +258 -0
  16. cf_regions-0.1.0/docs/mapping-guidelines.md +353 -0
  17. cf_regions-0.1.0/docs/profile-format.md +206 -0
  18. cf_regions-0.1.0/docs/spatial-interpretation-profiles.md +219 -0
  19. cf_regions-0.1.0/pyproject.toml +103 -0
  20. cf_regions-0.1.0/setup.cfg +4 -0
  21. cf_regions-0.1.0/src/cf_regions.egg-info/PKG-INFO +187 -0
  22. cf_regions-0.1.0/src/cf_regions.egg-info/SOURCES.txt +66 -0
  23. cf_regions-0.1.0/src/cf_regions.egg-info/dependency_links.txt +1 -0
  24. cf_regions-0.1.0/src/cf_regions.egg-info/entry_points.txt +2 -0
  25. cf_regions-0.1.0/src/cf_regions.egg-info/requires.txt +10 -0
  26. cf_regions-0.1.0/src/cf_regions.egg-info/top_level.txt +1 -0
  27. cf_regions-0.1.0/src/cfregions/__init__.py +95 -0
  28. cf_regions-0.1.0/src/cfregions/__main__.py +6 -0
  29. cf_regions-0.1.0/src/cfregions/api.py +406 -0
  30. cf_regions-0.1.0/src/cfregions/catalog.py +737 -0
  31. cf_regions-0.1.0/src/cfregions/cli.py +596 -0
  32. cf_regions-0.1.0/src/cfregions/data/catalog.json +15 -0
  33. cf_regions-0.1.0/src/cfregions/data/profile-settings.json +8 -0
  34. cf_regions-0.1.0/src/cfregions/data/profiles/cfregions-default/2026.09.1/geometry/high.geojson +4 -0
  35. cf_regions-0.1.0/src/cfregions/data/profiles/cfregions-default/2026.09.1/geometry/high.lookup.json +1790 -0
  36. cf_regions-0.1.0/src/cfregions/data/profiles/cfregions-default/2026.09.1/geometry/high.lookup.wkb +4 -0
  37. cf_regions-0.1.0/src/cfregions/data/profiles/cfregions-default/2026.09.1/geometry/low.geojson +1 -0
  38. cf_regions-0.1.0/src/cfregions/data/profiles/cfregions-default/2026.09.1/hierarchy.json +1648 -0
  39. cf_regions-0.1.0/src/cfregions/data/profiles/cfregions-default/2026.09.1/manifest.json +179 -0
  40. cf_regions-0.1.0/src/cfregions/data/schemas/catalog.schema.json +23 -0
  41. cf_regions-0.1.0/src/cfregions/data/schemas/geometry.schema.json +63 -0
  42. cf_regions-0.1.0/src/cfregions/data/schemas/hierarchy.schema.json +41 -0
  43. cf_regions-0.1.0/src/cfregions/data/schemas/lookup-index.schema.json +33 -0
  44. cf_regions-0.1.0/src/cfregions/data/schemas/profile-manifest.schema.json +133 -0
  45. cf_regions-0.1.0/src/cfregions/data/schemas/profile-settings.schema.json +22 -0
  46. cf_regions-0.1.0/src/cfregions/data/schemas/version-manifest.schema.json +27 -0
  47. cf_regions-0.1.0/src/cfregions/data/versions/1.json +13 -0
  48. cf_regions-0.1.0/src/cfregions/data/versions/2.json +13 -0
  49. cf_regions-0.1.0/src/cfregions/data/versions/3.json +13 -0
  50. cf_regions-0.1.0/src/cfregions/data/versions/4.json +13 -0
  51. cf_regions-0.1.0/src/cfregions/data/versions/5.json +13 -0
  52. cf_regions-0.1.0/src/cfregions/data/vocabularies/standardized-region-list.1.xml +164 -0
  53. cf_regions-0.1.0/src/cfregions/data/vocabularies/standardized-region-list.2.xml +212 -0
  54. cf_regions-0.1.0/src/cfregions/data/vocabularies/standardized-region-list.3.xml +218 -0
  55. cf_regions-0.1.0/src/cfregions/data/vocabularies/standardized-region-list.4.xml +224 -0
  56. cf_regions-0.1.0/src/cfregions/data/vocabularies/standardized-region-list.5.xml +230 -0
  57. cf_regions-0.1.0/src/cfregions/datasets.py +980 -0
  58. cf_regions-0.1.0/src/cfregions/errors.py +33 -0
  59. cf_regions-0.1.0/src/cfregions/models.py +196 -0
  60. cf_regions-0.1.0/src/cfregions/profiles.py +258 -0
  61. cf_regions-0.1.0/src/cfregions/py.typed +1 -0
  62. cf_regions-0.1.0/tests/test_api.py +424 -0
  63. cf_regions-0.1.0/tests/test_builder.py +148 -0
  64. cf_regions-0.1.0/tests/test_cli.py +312 -0
  65. cf_regions-0.1.0/tests/test_datasets.py +603 -0
  66. cf_regions-0.1.0/tools/__init__.py +1 -0
  67. cf_regions-0.1.0/tools/build_dataset.py +1004 -0
  68. cf_regions-0.1.0/tools/lookup_artifact.py +99 -0
@@ -0,0 +1,9 @@
1
+ # Authors and maintainers
2
+
3
+ `cf-regions` was initiated and originally developed by [Yves Sorge](https://github.com/ysorge), who serves as its
4
+ initial author and maintainer.
5
+
6
+ Additional contributors are recorded in the repository history and release
7
+ notes. Maintainer responsibility may move to another person or organization
8
+ without changing or erasing authorship of existing contributions. Current
9
+ maintainers should be identified in the repository and package metadata.
@@ -0,0 +1,32 @@
1
+ # Changelog
2
+
3
+ All notable changes to `cf-regions` are documented here. The project follows
4
+ [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and uses
5
+ [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ ## 0.1.0
8
+
9
+ This is the first public release.
10
+
11
+ ### Added
12
+
13
+ - Version-aware access to CF Standardized Region Lists 1 through 5.
14
+ - Offline coordinate lookup, hierarchy traversal, region metadata, interpreted
15
+ GeoJSON geometry, and detailed mapping provenance.
16
+ - Typed Python API and shell-friendly CLI with separate names, table, JSON, and
17
+ JSONL output formats.
18
+ - Declarative, versioned spatial-interpretation profiles with optional file
19
+ integrity checksums, additive external profile directories, and discovery
20
+ APIs.
21
+ - Low- and high-detail shapes plus GeoJSON, WKT, WKB, and WKB-hex exports.
22
+ - High-detail coordinate lookup with an optional generated spatial index and
23
+ lazy geometry decoding; plain GeoJSON profiles remain fully supported.
24
+ - Reproducible dataset tooling, JSON Schemas, tests, type checks, and packaging
25
+ validation.
26
+
27
+ ### Documentation
28
+
29
+ - Document data sources, mapping behavior, known limitations, profile authoring,
30
+ and the maintenance workflow.
31
+ - Keep the README focused on installation and first use, with detailed Python
32
+ API and command-line guides under `docs/`.
@@ -0,0 +1,27 @@
1
+ # Code of conduct
2
+
3
+ The `cf-regions` project is committed to an open, welcoming, inclusive, and
4
+ harassment-free community. Participants are expected to follow the standards of
5
+ the [Contributor Covenant, version 2.1][covenant] in discussions, issues, pull
6
+ requests, reviews, and project events.
7
+
8
+ ## Expected behavior
9
+
10
+ - Be respectful of different backgrounds, viewpoints, and levels of experience.
11
+ - Give and accept constructive technical feedback with empathy.
12
+ - Focus disagreement on ideas and evidence rather than people.
13
+ - Accept responsibility for mistakes and work to repair their impact.
14
+
15
+ Harassment, discriminatory or sexualized language, threats, trolling, personal
16
+ attacks, and publishing another person's private information are not acceptable.
17
+
18
+ ## Reporting and enforcement
19
+
20
+ Report conduct concerns privately through the repository's [private reporting
21
+ channel][private-report]. Do not disclose sensitive details in a public issue.
22
+ Maintainers will review reports as promptly and impartially as possible, protect
23
+ the reporter's privacy, and may edit or remove contributions, issue warnings, or
24
+ temporarily or permanently restrict participation.
25
+
26
+ [covenant]: https://www.contributor-covenant.org/version/2/1/code_of_conduct/
27
+ [private-report]: https://github.com/ysorge/cf-regions/security/advisories/new
@@ -0,0 +1,49 @@
1
+ # Contributing
2
+
3
+ Contributions are welcome through GitHub issues and pull requests. Please open
4
+ an issue before substantial features, public API changes, or new spatial
5
+ interpretations so the approach and scope can be discussed. Small fixes and
6
+ documentation improvements may be submitted directly.
7
+
8
+ Participation is governed by the [Code of conduct](CODE_OF_CONDUCT.md).
9
+
10
+ ## Development setup
11
+
12
+ Use one of the latest Python versions in a virtual environment:
13
+
14
+ ```console
15
+ python -m venv .venv
16
+ .venv/bin/python -m pip install -e ".[dev]"
17
+ ```
18
+
19
+ On Windows, use `.venv\Scripts\python` instead. Before opening a pull
20
+ request, run:
21
+
22
+ ```console
23
+ ruff check src tests tools
24
+ mypy src
25
+ pytest --cov=cfregions --cov-report=term-missing
26
+ python -m build
27
+ twine check dist/*
28
+ ```
29
+
30
+ Keep the core free of web and GUI dependencies. Public API changes need tests
31
+ and a changelog entry. Prefer small, typed functions and preserve separation
32
+ between data loading, indexed domain logic, the Python API, and the CLI.
33
+
34
+ ## Vocabulary, geometry, and hierarchy changes
35
+
36
+ CF supplies standardized names, not official boundaries. Spatial-interpretation
37
+ changes must include a stable source and compatible license, a pinned version,
38
+ a reproducible derivation method, updated attribution and checksums, relevant
39
+ tests, and documented limitations.
40
+
41
+ Follow the [dataset maintenance workflow](docs/dataset-maintenance.md). Source
42
+ roles are documented in [Data sources and mapping method](docs/data-sources-and-mapping.md),
43
+ and normative design decisions are in the [mapping guidelines](docs/mapping-guidelines.md).
44
+ Run `python tools/build_dataset.py --help` for builder inputs. Runtime lookup
45
+ must remain fully offline.
46
+
47
+ By contributing, you agree that your code contribution is distributed under
48
+ Apache-2.0. Do not submit data or other material that cannot be redistributed
49
+ under the terms documented in `DATA_LICENSES.md`.
@@ -0,0 +1,153 @@
1
+ # Data licenses and attribution
2
+
3
+ The `cf-regions` source code is Apache-2.0. The bundled geometry catalog is a
4
+ collective/derived dataset assembled from the sources below. Upstream data is
5
+ not relicensed under Apache-2.0; its original terms continue to apply.
6
+
7
+ This file is the legal and attribution reference. For the technical role of
8
+ each source and the lookup pipeline, see
9
+ [Data sources and mapping method](docs/data-sources-and-mapping.md). Maintainers
10
+ should follow [Dataset maintenance](docs/dataset-maintenance.md) when updating
11
+ vocabularies, geometries, or hierarchy data.
12
+
13
+ In the Python distribution's compound license expression,
14
+ `LicenseRef-NASA-Open-Data` refers to the NASA ESDIS reuse basis documented
15
+ below and `LicenseRef-Public-Domain` refers to the Natural Earth materials that
16
+ their publisher dedicates to the public domain.
17
+
18
+ ## CF Standardized Region Lists v1–v5
19
+
20
+ - Role: canonical identifiers and the few supplied descriptions
21
+ - Versions/dates: 1 (12 December 2002), 2 (12 July 2013), 3 (11 July
22
+ 2018), 4 (18 December 2018), and 5 (12 November 2024)
23
+ - Sources: <https://cfconventions.org/Data/standardized-region-list/>
24
+ - Terms: the CF website is made available under
25
+ [CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/); the exact XML
26
+ is retained in the package for validation and provenance.
27
+
28
+ CF does not supply the boundaries in this project. Nothing here should be
29
+ described as an official CF polygon.
30
+
31
+ ## NASA GCMD Location Keywords
32
+
33
+ - Role: hierarchical location paths and connected-parent interpretation
34
+ - Version/date: 24.8, revised 16 September 2026
35
+ - Source: <https://gcmd.earthdata.nasa.gov/kms/concepts/concept_scheme/locations>
36
+ - Reuse basis: NASA ESDIS content is generally not copyrighted, and unmarked
37
+ NASA-led data is provided under CC0 according to the
38
+ [NASA Earthdata Data Use and Citation Guidance](https://www.earthdata.nasa.gov/engage/open-data-services-software/data-use-policy).
39
+ NASA requests acknowledgment as the source.
40
+
41
+ Only curated hierarchy paths and version metadata are included, not the full
42
+ GCMD export. Composite-ocean and diagnostic-section connections supplement the
43
+ GCMD paths and are identified as such in the manifest limitations.
44
+
45
+ ## SeaVoX Salt and Fresh Water Body Gazetteer polygons v19
46
+
47
+ - Role: 31 exact marine-area interpretations and ocean hierarchy dissolves
48
+ - Version: 19
49
+ - Publisher: Flanders Marine Institute (VLIZ), Marine Regions
50
+ - DOI: <https://doi.org/10.14284/590>
51
+ - Download: <https://www.marineregions.org/download_file.php?name=SeaVoX_sea_areas_polygons_v19.zip>
52
+ - License: [Creative Commons Attribution 4.0 International
53
+ (CC BY 4.0)](https://creativecommons.org/licenses/by/4.0/legalcode)
54
+
55
+ Requested attribution:
56
+
57
+ > Flanders Marine Institute (2023). SeaVoX Salt and Fresh Water Body Gazetteer.
58
+ > Version 19. Available online at Marine Regions. DOI: 10.14284/590.
59
+
60
+ The package selects or dissolves features through pinned MRGIDs, creates
61
+ documented low- and high-detail simplifications for distribution, and records
62
+ the selector in each feature. Both representations preserve the source-defined
63
+ extent; in particular, no project-specific boundary is inserted between the
64
+ North Sea and Baltic Sea. Marine
65
+ Regions data is generalized and not intended for navigation or legal boundary
66
+ determination. See <https://www.marineregions.org/disclaimer.php>.
67
+
68
+ ## Natural Earth
69
+
70
+ - Role: continent/region polygons, lower-48 state polygons, lakes, global land
71
+ and ocean masks, and South China Sea
72
+ - Scale and upstream versions: 1:50m; versions 4.1.0 through 5.1.1 as recorded by
73
+ layer in each feature
74
+ - Source: <https://www.naturalearthdata.com/>
75
+ - Terms: public domain, <https://www.naturalearthdata.com/about/terms-of-use/>
76
+
77
+ Natural Earth reflects a generalized, de-facto boundary worldview. The
78
+ `contiguous_united_states` feature is the union of the lower 48 states plus the
79
+ District of Columbia and excludes Alaska and Hawaii.
80
+
81
+ ## OMIP protocol
82
+
83
+ - Role: approximate endpoints for 16 ocean transport sections
84
+ - Citation: Griffies et al. (2016), *OMIP contribution to CMIP6: experimental and
85
+ diagnostic protocol for the physical component of the Ocean Model
86
+ Intercomparison Project*, Geoscientific Model Development 9, 3231–3296
87
+ - DOI: <https://doi.org/10.5194/gmd-9-3231-2016>
88
+ - License: [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/legalcode)
89
+
90
+ The endpoints come from Appendix J, Table J1. The paper explicitly treats them
91
+ as approximate and model-grid dependent. This project normalizes coordinate
92
+ order to longitude/latitude, maps paper labels to canonical CF names, and
93
+ encodes the endpoints as GeoJSON lines.
94
+
95
+ ## CMIP6 CMOR tables
96
+
97
+ - Role: Canadian Archipelago diagnostic section and the sea-ice Fram Strait
98
+ variant
99
+ - Source: <https://github.com/PCMDI/cmip6-cmor-tables>
100
+ - License: BSD-3-Clause
101
+
102
+ This project extracts two endpoint definitions, corrects the upstream Canadian
103
+ Archipelago spelling to the canonical CF spelling, and combines the two Fram
104
+ Strait contexts in one `MultiLineString`.
105
+
106
+ The required upstream notice follows:
107
+
108
+ > BSD 3-Clause License
109
+ >
110
+ > Copyright (c) 2017, PCMDI (Program for Climate Model Diagnosis and
111
+ > Intercomparison). All rights reserved.
112
+ >
113
+ > Redistribution and use in source and binary forms, with or without
114
+ > modification, are permitted provided that the following conditions are met:
115
+ >
116
+ > 1. Redistributions of source code must retain the above copyright notice,
117
+ > this list of conditions and the following disclaimer.
118
+ > 2. Redistributions in binary form must reproduce the above copyright notice,
119
+ > this list of conditions and the following disclaimer in the documentation
120
+ > and/or other materials provided with the distribution.
121
+ > 3. Neither the name of the copyright holder nor the names of its contributors
122
+ > may be used to endorse or promote products derived from this software without
123
+ > specific prior written permission.
124
+ >
125
+ > THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
126
+ > AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
127
+ > IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
128
+ > ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
129
+ > LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
130
+ > CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
131
+ > SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
132
+ > INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
133
+ > CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
134
+ > ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
135
+ > POSSIBILITY OF SUCH DAMAGE.
136
+
137
+ ## Project-authored and derived geometry
138
+
139
+ Analytical world/hemisphere boxes are project-authored under Apache-2.0.
140
+ Composite geometries retain the applicable upstream data terms. The
141
+ Indo-Pacific mask is explicitly an interpretation of the CF description, not an
142
+ upstream authoritative boundary.
143
+
144
+ ## Web-map dependencies
145
+
146
+ `cf-regions-map` loads [MapLibre GL JS 6.10.0](https://github.com/maplibre/maplibre-gl-js/tree/v6.10.0)
147
+ (BSD-3-Clause and bundled third-party notices) from unpkg and OpenStreetMap
148
+ tiles at runtime. OpenStreetMap attribution is displayed on the map; map data is
149
+ available under the [Open Database License](https://www.openstreetmap.org/copyright),
150
+ and use of the community tile service is subject to its
151
+ [tile usage policy](https://operations.osmfoundation.org/policies/tiles/).
152
+ Neither dependency is embedded in the region dataset. `cf-regions-gui` instead
153
+ draws the bundled vector representations with Qt and makes no network requests.
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,3 @@
1
+ include AUTHORS.md CHANGELOG.md CODE_OF_CONDUCT.md CONTRIBUTING.md SECURITY.md
2
+ recursive-include tools *.py
3
+ recursive-include docs *.md
@@ -0,0 +1,9 @@
1
+ cf-regions
2
+ Copyright (C) 2026 Yves Sorge and cf-regions contributors
3
+
4
+ The cf-regions source code is licensed under Apache-2.0. The bundled CF
5
+ vocabularies and interpreted geometry catalog contain material under separate
6
+ open-data and permissive terms. Those materials are not relicensed under
7
+ Apache-2.0.
8
+ See DATA_LICENSES.md for source-specific licenses, notices, attribution, and
9
+ derivation information.