コード例 #1
0
ファイル: LocaService.cs プロジェクト: simon969/ge_repository
        public bool UpdateProjectionLoc(_ge_location loc, out string msg, string sourceCoordSystem = "")
        {
            bool retvar = false;

            if (loc.datumProjection == datumProjection.NONE)
            {
                retvar = true;
                msg    = "No datumProjection";
            }
            else
            {
                ProjectionSystem  ps = new ProjectionSystem();
                ige_projectionDAL pd = ps.getProjectionDAL(loc);

                if (pd == null)
                {
                    msg    = "datumProjection not understood";
                    retvar = false;
                }
                else
                {
                    retvar = ps.updateAll(sourceCoordSystem);
                    msg    = pd.getMessage();
                }
            }

            return(retvar);
        }
コード例 #2
0
        public bool UpdateProjectionLoc(_ge_location loc)
        {
            bool retvar = false;

            if (loc.datumProjection == Constants.datumProjection.NONE)
            {
                retvar = true;
                ViewData["locMessage"] = "No datumProjection";
            }
            else
            {
                ProjectionSystem  ps = new ProjectionSystem();
                ige_projectionDAL pd = ps.getProjectionDAL(loc);

                if (pd == null)
                {
                    retvar = false;
                }
                else
                {
                    retvar = pd.updateAll(locSelect);
                    ViewData["locMessage"] = pd.getMessage();
                }
            }

            return(retvar);
        }