Ejemplo n.º 1
0
        /// <summary>
        /// Calculates a match between the tags collection and the properties of the OpenLR location reference.
        /// </summary>
        /// <param name="tags"></param>
        /// <param name="fow"></param>
        /// <param name="frc"></param>
        /// <returns></returns>
        public override float MatchArc(TagsCollectionBase tags, FormOfWay fow, FunctionalRoadClass frc)
        {
            FormOfWay           actualFow;
            FunctionalRoadClass actualFrc;

            if (NWBMapping.ToOpenLR(tags, out actualFow, out actualFrc))
            { // a mapping was found. match and score.
                return(MatchScoring.MatchAndScore(frc, fow, actualFrc, actualFow));
            }
            return(0);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Matches nwb/fow.
        /// </summary>
        public virtual float Match(IAttributeCollection attributes, FormOfWay fow, FunctionalRoadClass frc)
        {
            FormOfWay           actualFow;
            FunctionalRoadClass actualFrc;

            if (this.Extract(attributes, out actualFrc, out actualFow))
            { // a mapping was found. match and score.
                return(MatchScoring.MatchAndScore(frc, fow, actualFrc, actualFow));
            }
            return(0);
        }