function findFeaturesThatMatch(matchID) {
        result = [];
        for (x of matches) {
            var [feature,related] = x;
            related = sortSpatialRelations(related, 'equality', 0.01);
            if (related.length==0) {continue};
            for (y of related) {
                var [matchFeat,stats] = y;
                if (matchFeat.getId() == matchID) {
                    result.push([feature,stats]);
                };
            };
        };
        return result;
    }
// helper to find features that match another
helper to find features that match another
helper to find features that match another
function findFeaturesThatMatch(matchID) {
        result = [];
        for (x of matches) {
            var [feature,related] = x;
            related = sortSpatialRelations(related, 'equality', 0.01);
            if (related.length==0) {continue};
            for (y of related) {
                var [matchFeat,stats] = y;
                if (matchFeat.getId() == matchID) {
                    result.push([feature,stats]);
                };
            };
        };
        return result;
    }
function findFeaturesThatMatch ( matchID ) { result = [ ] ; for ( x of matches ) { var [ feature , related ] = x ; related = sortSpatialRelations ( related , 'equality' , 0.01 ) ; if ( related . length == 0 ) { continue } ; for ( y of related ) { var [ matchFeat , stats ] = y ; if ( matchFeat . getId ( ) == matchID ) { result . push ( [ feature , stats ] ) ; } ; } ; } ; return result ; }
helper to find features that match another
helper to find features that match another