示例#1
0
        public List <GISRecord> GetFilteredResults(bool showWECCLocations, bool showPlattsLocations, bool showEnergyAnalyticsLocations, bool showMatchedLocation, DistanceFilterEnum value)
        {
            int distanceFilter = 0;

            if (int.TryParse(value.ToString(), out distanceFilter))
            {
            }

            return(new List <GISRecord>());
        }
示例#2
0
        private void _writeMatchedRecords(CompareOperatorEnum selectedCompareSign, DistanceFilterEnum selectedDistanceFilter)
        {
            var descriptionAttri = selectedDistanceFilter.GetType().GetField(selectedDistanceFilter.ToString()).GetCustomAttributes(typeof(DescriptionAttribute), true).FirstOrDefault() as DescriptionAttribute;
            var description      = descriptionAttri.Description;
            var records          = _recordComparer.GetMatchedRecords(selectedCompareSign, description);
            var timestamp        = DateTime.Now.ToString("_yyyyMMdd_HHmmss");
            var writer           = new GISRecordWriter();

            foreach (var p in records)
            {
                string filename = _exportFileLocation + "\\Matched_" + selectedCompareSign.ToString() + description + "_" + p.Key + timestamp + ".csv";
                writer.WriteCSVFileMatched(filename, p.Value, selectedCompareSign, description);
            }
        }
示例#3
0
        public void GetMatchedResults(MapViewModel mapVM, DistanceFilterEnum selectedDistanceFilter, CompareOperatorEnum selectedCompareSign)
        {
            int filter;
            var descriptionAttri = selectedDistanceFilter.GetType().GetField(selectedDistanceFilter.ToString()).GetCustomAttributes(typeof(DescriptionAttribute), true).FirstOrDefault() as DescriptionAttribute;
            var description      = descriptionAttri.Description;

            if (int.TryParse(description, out filter))
            {
                if (selectedCompareSign == CompareOperatorEnum.GreaterThan)
                {
                    _getMarkerGreaterThanFilter(mapVM, filter);
                }
                if (selectedCompareSign == CompareOperatorEnum.LessOrEqual)
                {
                    _getMarkerLessOrEqThanFilter(mapVM, filter);
                }
            }
        }