helper_functions/polygonsCenters/polygonsCenters.js
/**
 * Debugging function to print data for a single feature
 * 
 * @param {string} path input geojson file path 
 * @param {string} name - name of feature
 */
Debugging function to print data for a single feature

@param {string} path input geojson file path
@param {string} name - name of feature
Debugging function to print data for a single feature @param { string } path input geojson file path @param { string } name - name of feature
function viewDataForFeature(path, name) {
    const coords = JSON.parse(fs.readFileSync(path, { encoding: 'utf8', flag: 'r' }));
    featureEach(coords, (curr, idx) => {
        if (curr.properties.name === name) {
            console.log(curr, idx);
        }
    });
}
function viewDataForFeature ( path , name ) { const coords = JSON . parse ( fs . readFileSync ( path , { encoding : 'utf8' , flag : 'r' } ) ) ; featureEach ( coords , ( curr , idx ) => { if ( curr . properties . name === name ) { console . log ( curr , idx ) ; } } ) ; }
Debugging function to print data for a single feature
Debugging function to print data for a single feature