22 lines
650 B
JavaScript
22 lines
650 B
JavaScript
const fs = require('fs');
|
|
|
|
async function inspectProject() {
|
|
try {
|
|
const content = fs.readFileSync('Geodaten/project.json', 'utf8');
|
|
const json = JSON.parse(content);
|
|
console.log("Root keys in project.json:", Object.keys(json));
|
|
|
|
for (const key in json) {
|
|
if (json[key] && json[key].features) {
|
|
console.log(`- ${key}: ${json[key].features.length} features`);
|
|
} else {
|
|
console.log(`- ${key}: (not a feature collection)`);
|
|
}
|
|
}
|
|
} catch (e) {
|
|
console.error("Error inspecting project.json:", e);
|
|
}
|
|
}
|
|
|
|
inspectProject();
|