Beispiel #1
0
        private bool SetMapConvertInfo()
        {
            _mapConvertInfo = new MapConvertInfo();

            PathInfo pathInfo = _mapConvertPathSettingControl.GetMapConvertPathInfo();

            if (pathInfo.InputPathList.Count < 1)
            {
                MessageBox.Show("변환 경로 정보를 확인해주세요.", "변환", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return(false);
            }

            if (pathInfo.OutputPathString.Length < 1)
            {
                MessageBox.Show("변환 경로 정보를 확인해주세요.", "변환", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return(false);
            }

            _mapConvertInfo.MapConvertPathInfo = pathInfo;

            List <string>        convertOptions   = _mapConvertOptionControl.GetMapConvertOptions();
            GDALTranslateOptions translateOptions = CreateGdalTransOptions(convertOptions.ToArray());

            if (translateOptions == null)
            {
                return(false);
            }

            _mapConvertInfo.ConvertOptions       = convertOptions;
            _mapConvertInfo.GdalTranslateOptions = translateOptions;

            LoggerManager.WriteMapConvertInfoLog(_mapConvertInfo);

            return(true);
        }
Beispiel #2
0
 private void InitMapConvertInfo()
 {
     _mapConvertInfo = new MapConvertInfo();
 }