/// <summary>
        /// Update settings that only apply to the Service Area
        /// </summary>
        private void ConfigureSettingsSpecificToServiceAreaSolver()
        {
            INAServiceAreaSolver naSASolver = m_NAContext.Solver as INAServiceAreaSolver;

            naSASolver.DefaultBreaks = ParseBreaks(txtCutOff.Text);

            naSASolver.MergeSimilarPolygonRanges = false;
            naSASolver.OutputPolygons            = esriNAOutputPolygonType.esriNAOutputPolygonSimplified;
            naSASolver.OverlapLines       = true;
            naSASolver.SplitLinesAtBreaks = false;
            naSASolver.TravelDirection    = esriNATravelDirection.esriNATravelDirectionFromFacility;
            naSASolver.OutputLines        = esriNAOutputLineType.esriNAOutputLineNone;
        }
Beispiel #2
0
        private void ConfigureSettingsSpecificToServiceAreaSolver()
        {
            INAServiceAreaSolver naSASolver = m_naContext.Solver as INAServiceAreaSolver;

            naSASolver.DefaultBreaks = ParseBreaks(txtCutOff.Text); //Breaks服务半径

            naSASolver.MergeSimilarPolygonRanges = true;            //true同样服务水平的区域融合
            naSASolver.OutputPolygons            = esriNAOutputPolygonType.esriNAOutputPolygonSimplified;
            naSASolver.OverlapLines       = true;
            naSASolver.SplitLinesAtBreaks = false;
            naSASolver.TravelDirection    = esriNATravelDirection.esriNATravelDirectionFromFacility;

            if (ckbShowLines.Checked)
            {
                naSASolver.OutputLines = esriNAOutputLineType.esriNAOutputLineTrueShape;
            }
            else
            {
                naSASolver.OutputLines = esriNAOutputLineType.esriNAOutputLineNone;
            }
        }