Skip to content

Commit e924ada

Browse files
TMHSDigitalclaude
andcommitted
Fix dead licence links on COLMAP and AHN, and check Notes links (#289)
COLMAP renamed COPYING.txt to LICENSE on 2026-09-12; point the entry at LICENSE and re-verify (wording unchanged). Render the known-dead AHN licence URL as code instead of a link. The weekly link check now also fetches URLs linked in an entry's Notes, not only its Evidence, so a renamed licence file shows up in the report. Closes #289 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LpkeXPtfg3jGzhfoGMshTE
1 parent ae5273b commit e924ada

5 files changed

Lines changed: 28 additions & 17 deletions

File tree

‎catalog/environment/ahn-netherlands.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Dutch national height map built from airborne lidar, with raster grids (0.5 m an
2525
- Subunits are the map sheets for the 0.5 m raster and the point clouds; units are used for the 5 m raster. Sheet layout files are on the page.
2626
- Format names (GeoTIFF raster, LAZ point cloud) are from general knowledge of the PDOK downloads, not from the page; confirm on download.
2727
- Before moving to active, find a licence statement (for example a CC0 or public domain mark) on a PDOK or Nationaal Georegister record and quote it.
28-
- The licence page https://www.ahn.nl/licentie returned 404 this session.
28+
- The licence page `www.ahn.nl/licentie` returned 404 this session.
2929
- Review: find and quote a licence instrument, such as a CC0 or public domain mark, on a PDOK or Nationaal Georegister record.
3030

3131
## Evidence

‎catalog/tools/colmap.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,27 @@ attribution_required: false
1111
formats: [BIN, TXT, PLY, OBJ]
1212
tags: [photogrammetry, sfm, mvs]
1313
added: 2026-08-24
14-
verified: 2026-08-24
14+
verified: 2026-11-09
1515
status: active
1616
---
1717

1818
# COLMAP
1919

20-
ETH Zurich / UNC Chapel Hill Structure-from-Motion and Multi-View Stereo pipeline with a GUI, CLI, and PyCOLMAP. Same job as Meshroom: photos in, sparse cameras plus dense mesh/point cloud out. The library is the "new BSD" license (BSD-3-Clause). `COPYING.txt` warns that building against COLMAP's dependencies "may affect the resulting COLMAP license." Pages fetched on 2026-08-24 do not assign a license to exported reconstructions. Your photos, and whatever they depict, stay outside the BSD grant.
20+
ETH Zurich / UNC Chapel Hill Structure-from-Motion and Multi-View Stereo pipeline with a GUI, CLI, and PyCOLMAP. Same job as Meshroom: photos in, sparse cameras plus dense mesh/point cloud out. The library is the "new BSD" license (BSD-3-Clause). `LICENSE` (named `COPYING.txt` until 2026-09-12) warns that building against COLMAP's dependencies "may affect the resulting COLMAP license." Pages fetched on 2026-11-09 do not assign a license to exported reconstructions. Your photos, and whatever they depict, stay outside the BSD grant.
2121

2222
## Notes
2323

24-
- Homepage: [colmap.github.io](https://colmap.github.io). License file: [colmap/colmap `COPYING.txt`](https://github.com/colmap/colmap/blob/main/COPYING.txt)
24+
- Homepage: [colmap.github.io](https://colmap.github.io). License file: [colmap/colmap `LICENSE`](https://github.com/colmap/colmap/blob/main/LICENSE)
2525
- Sample datasets on demuc.de are for tutorials. Do not treat them as a CC0 kit
2626
- Incremental SfM wants overlap. Phone bursts of a prop on a turntable work; random holiday folders usually do not
2727
- Learned features (ALIKED, LoMa) need ONNX at build time. Default is SIFT
2828
- Checklist: BSD text visible, commercial redistribution of the *software* permitted with notice, no NC/ND, not a marketplace, ETH/UNC named, not blocklisted, tool vs export ownership unquoted
2929

3030
## Evidence
3131

32-
- Live `COPYING.txt` (2026-08-24): "The COLMAP library is licensed under the new BSD license"
33-
- Same file (2026-08-24): "Redistribution and use in source and binary forms, with or without modification, are permitted"
34-
- Same file (2026-08-24): "Building COLMAP with these dependencies may affect the resulting COLMAP license"
32+
- Live `LICENSE` (2026-11-09): "The COLMAP library is licensed under the new BSD license"
33+
- Same file (2026-11-09): "Redistribution and use in source and binary forms, with or without modification, are permitted"
34+
- Same file (2026-11-09): "Building COLMAP with these dependencies may affect the resulting COLMAP license"
3535

3636
## Related
3737

‎site/check-links.mjs‎

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import { isListed } from "./lib/shared.mjs";
2929
import { normalizeEntry } from "./lib/entry-fields.mjs";
3030
import { cliArgs } from "./lib/cli.mjs";
3131
import { checkMaintenanceRepos, classify, evidenceUrls, manualHostReason, reportUrl, staleDaysFrom } from "./lib/link-check.mjs";
32-
import { evidenceSection } from "./lib/frontmatter.mjs";
32+
import { evidenceSection, notesSection } from "./lib/frontmatter.mjs";
3333

3434
const __dirname = path.dirname(fileURLToPath(import.meta.url));
3535
const ROOT = path.resolve(__dirname, "..");
@@ -50,8 +50,11 @@ function loadEntries() {
5050
for (const r of readCatalog(CATALOG, { root: ROOT })) {
5151
if (!usableRecord(r) || !r.parsed.meta.url) continue;
5252
const { id, url, verified, status, maintenance = null } = normalizeEntry(r.parsed.meta, r.rel);
53-
// The licence pages the Evidence quotes, other than the entry's own url.
54-
const licencePages = evidenceUrls(evidenceSection(r.parsed.body)).filter((u) => u !== url);
53+
// The licence pages the Evidence quotes and the Notes link, other than the
54+
// entry's own url. Notes carry licence-file links too, and those rot when a
55+
// repository renames its LICENSE (#289).
56+
const linked = `${evidenceSection(r.parsed.body) || ""}\n${notesSection(r.parsed.body) || ""}`;
57+
const licencePages = evidenceUrls(linked).filter((u) => u !== url);
5558
out.push({ id, url, verified, status, maintenance, rel: r.rel, licencePages });
5659
}
5760
return out.sort((a, b) => a.id.localeCompare(b.id));
@@ -115,7 +118,7 @@ if (staleArg.error) {
115118
const staleDays = staleArg.days;
116119
const entries = loadEntries().filter(isListed);
117120
const results = await run(entries);
118-
// Licence pages quoted in Evidence, each fetched once (#89). Only a page that
121+
// Licence pages quoted in Evidence or linked in Notes, each fetched once (#89, #289). Only a page that
119122
// is gone is reported; a refusal says nothing about the licence.
120123
const pageJobs = [...new Map(entries.flatMap((e) => e.licencePages.map((url) => [url, { id: e.id, rel: e.rel, url }]))).values()];
121124
const pageResults = await run(pageJobs);
@@ -147,7 +150,7 @@ const report = [
147150
"",
148151
...(moved.length ? moved.map(line) : ["None."]),
149152
"",
150-
`### Licence pages quoted in Evidence that no longer load (${deadPages.length})`,
153+
`### Pages quoted in Evidence or linked in Notes that no longer load (${deadPages.length})`,
151154
"",
152155
...(deadPages.length ? deadPages.map(line) : ["None."]),
153156
"",

‎site/lib/frontmatter.mjs‎

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,15 +173,21 @@ export function parseFrontmatter(text) {
173173
return { meta, body: match[2] || "", errors };
174174
}
175175

176-
/** The `## Evidence` section of an entry body, up to the next `## ` heading, or null. */
177-
export function evidenceSection(body) {
178-
const idx = body.search(/^## Evidence\s*$/m);
176+
/** The `## <heading>` section of an entry body, up to the next `## ` heading, or null. */
177+
function bodySection(body, heading) {
178+
const idx = body.search(new RegExp(`^## ${heading}\\s*$`, "m"));
179179
if (idx === -1) return null;
180180
const rest = body.slice(idx);
181-
const next = rest.search(/\n## (?!Evidence\s*$)/m);
181+
const next = rest.search(new RegExp(`\\n## (?!${heading}\\s*$)`, "m"));
182182
return next === -1 ? rest : rest.slice(0, next);
183183
}
184184

185+
/** The `## Evidence` section of an entry body, up to the next `## ` heading, or null. */
186+
export const evidenceSection = (body) => bodySection(body, "Evidence");
187+
188+
/** The `## Notes` section of an entry body, up to the next `## ` heading, or null. */
189+
export const notesSection = (body) => bodySection(body, "Notes");
190+
185191
const ENTITIES = { "&amp;": "&", "&lt;": "<", "&gt;": ">", "&quot;": '"', "&#39;": "'" };
186192

187193
/**

‎site/lib/lib.test.mjs‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ has("recent window wording counts the build day", fp, "Checked on 2026-09-25 or
698698
has("empty recent window wording counts the build day", freshnessPageHtml({ stats: freshnessStats([fe("a", "Alpha", 90)], fNow), site, stamp: "2026-09-25", total: 1, hasCard: false }), "None checked on 2026-09-25 or in the 30 days before it.");
699699

700700
/* frontmatter -------------------------------------------------------------- */
701-
import { evidenceSection, parseFrontmatter, plainText, summaryFromBody } from "./frontmatter.mjs";
701+
import { evidenceSection, notesSection, parseFrontmatter, plainText, summaryFromBody } from "./frontmatter.mjs";
702702
import { latestAllowedDate } from "./shared.mjs";
703703
const fm = (lines, body = "Body.\n") => parseFrontmatter(`---\n${lines.join("\n")}\n---\n${body}`);
704704
eq("frontmatter: unterminated double quote is an error", fm(['name: "Foo']).errors.some((e) => e === 'line 2: "name" opens a double quote that is never closed'), true);
@@ -780,6 +780,8 @@ has("frontmatter flags a list item cut at a hashtag", fm(["id: a", "tags:", " -
780780
has("frontmatter flags a list item that is only a hashtag", fm(["id: a", "tags:", " - #gamedev"]).errors.join(), "line 4: list item is empty");
781781
eq("frontmatter keeps a commented list item", JSON.stringify(fm(["id: a", "tags:", " - foo # a note", ' - "bar #baz"']).meta.tags), JSON.stringify(["foo", "bar #baz"]));
782782
eq("evidence stops at the next heading, whatever its letter", evidenceSection("## Evidence\n\n- e (2026-01-01)\n\n## Extras\n\n- x"), "## Evidence\n\n- e (2026-01-01)\n");
783+
eq("notes section stops at Evidence (#289)", notesSection("Intro\n\n## Notes\n\n- [LICENSE](https://x.test/LICENSE)\n\n## Evidence\n\n- e"), "## Notes\n\n- [LICENSE](https://x.test/LICENSE)\n");
784+
eq("notes section: none", notesSection("Intro\n\n## Evidence\n\n- e"), null);
783785
eq("summary keeps underscores", summaryFromBody("Split by Rig_Medium and **KHR_draco**.\n\n## Notes"), "Split by Rig_Medium and KHR_draco.");
784786
eq("summary keeps C# and link text", summaryFromBody("# T\n\nA [C#](x.md) library, `code`, *em*."), "A C# library, code, em.");
785787
eq("plain text undoes escapes", plainText("A \\*literal\\* & <b>"), "A *literal* & <b>");

0 commit comments

Comments
 (0)