Enhance population counting accuracy and add comprehensive geoJSON exports

Population System Fixes:
- Fix province, culture, and religion population calculations to exclude rural population from cells without burgs
- Burgs now represent ALL population for their cells (both urban and rural components)
- Eliminate double-counting where cell populations were incorrectly added to burg populations

Export Enhancements:
- Add complete geoJSON export for burgs with all settlement properties
- Enhance routes geoJSON export to include type and feature metadata
- Add missing length and width properties to rivers geoJSON export
- Fix burg coordinate system to match CSV export format with xWorld/yWorld fields

UI Improvements:
- Add burgs export button to geoJSON export interface
- Fix vite module loading issue by adding type="module" to notes-editor.js script tag

Documentation:
- Create comprehensive QGIS Style Conversion guide with route types, burg features, and relief rendering methods
- Add WKT coordinate reference system definition for Fantasy Map Cartesian CRS
- Include rule-based styling examples and data processing workflows
This commit is contained in:
barrulus 2025-08-15 19:00:03 +01:00
parent 9e8bc6e689
commit 83573c8936
6 changed files with 695 additions and 13 deletions

View file

@ -91,10 +91,8 @@ function editProvinces() {
// Burg represents ALL population for this cell (stored in thousands)
provinces[p].urban += burgs[cells.burg[i]].population;
provinces[p].burgs.push(cells.burg[i]);
} else {
// Only count cells.pop for unsettled areas (no burg present)
provinces[p].rural += cells.pop[i];
}
// No population in cells without burgs - all population is in burgs
}
provinces.forEach(p => {