Closed nihalzp closed 5 months ago
The following command produces a GeoJSON file in which the proportions of Alaska and the conterminous United States seem to be inverted (i.e., Alaska is multiple times the size of the conterminous USA).
cartogram sample_data/usa_by_state_since_1959/usa_by_state_since_1959.geojson sample_data/usa_by_state_since_1959/usa_population_2020.csv -Q
The issue occured because we started to normalise target areas within insets, and later when we compared target areas between insets, the comparison was no longer accurate. After debugging, the issue is fixed. Here is the resultant cartogram:
Contents from PR: #112, #159, #154, #153, #152, #150, #148, #145 Closes #164 (need review) Closes #163 Closes #162 Closes #161 Closes #137 Closes #133 Closes #128 Closes #126 Closes #120 Closes #106 Closes #102 Closes #82 Closes #72 Closes #69 Closes #62 Closes #51
./cartogram ./sample_data/belgium_by_region_since_1995/belgium_by_region_since_1995.geojson ./sample_data/belgium_by_region_since_1995/belgium_population_2022.csv -QST -P 5000 -n 128
Q - Quadtree Method S - Simplification T - Triangulation P - Number of points limit of simplification n - Dimension of the grid
To run the tests, use:
ctest --verbose