|
@@ -12,7 +12,7 @@ const _datasetsEuFilePath = 'data/datasets.csv';
|
|
|
const _dataEuFilePath = 'data/data.csv';
|
|
const _dataEuFilePath = 'data/data.csv';
|
|
|
const _dataCzFilePath = 'data/cz/data-input-CZ_LAU2_37_cols.csv';
|
|
const _dataCzFilePath = 'data/cz/data-input-CZ_LAU2_37_cols.csv';
|
|
|
//const _clusteringEuInputFilePath = 'data/clustering/input_all.csv';
|
|
//const _clusteringEuInputFilePath = 'data/clustering/input_all.csv';
|
|
|
-const _clusteringCzInputFilePath = 'data/cz/clusters-input-CZ_LAU2_37_cols.csv';
|
|
|
|
|
|
|
+//const _clusteringCzInputFilePath = 'data/cz/clusters-input-CZ_LAU2_37_cols.csv';
|
|
|
const _clusteringEuModifiedFilePath = 'data/clustering/input_modified.csv';
|
|
const _clusteringEuModifiedFilePath = 'data/clustering/input_modified.csv';
|
|
|
const _clusteringCzModifiedFilePath = 'data/cz/input_modified.csv';
|
|
const _clusteringCzModifiedFilePath = 'data/cz/input_modified.csv';
|
|
|
const _clustersEuFilePath = 'data/clustering/out_file.csv';
|
|
const _clustersEuFilePath = 'data/clustering/out_file.csv';
|
|
@@ -136,7 +136,7 @@ app.get('/:aoi?/clusters/', (req, res, next) => {
|
|
|
app.post('/:aoi?/clusters/', async (req, res, next) => {
|
|
app.post('/:aoi?/clusters/', async (req, res, next) => {
|
|
|
const aoi = req.params.aoi || 'eu'
|
|
const aoi = req.params.aoi || 'eu'
|
|
|
const datasets = await loadDatasetsIfNeeded(req, res, aoi)
|
|
const datasets = await loadDatasetsIfNeeded(req, res, aoi)
|
|
|
- const dataFilePath = aoi == 'cz' ? _clusteringCzInputFilePath : _dataEuFilePath
|
|
|
|
|
|
|
+ const dataFilePath = aoi == 'cz' ? _dataCzFilePath : _dataEuFilePath
|
|
|
const clusteringModifiedFilePath = aoi == 'cz' ? _clusteringCzModifiedFilePath : _clusteringEuModifiedFilePath
|
|
const clusteringModifiedFilePath = aoi == 'cz' ? _clusteringCzModifiedFilePath : _clusteringEuModifiedFilePath
|
|
|
const idString = aoi == 'cz' ? 'LAU2' : 'NUTS_ID'
|
|
const idString = aoi == 'cz' ? 'LAU2' : 'NUTS_ID'
|
|
|
try {
|
|
try {
|