Beispiel #1
0
        /// <summary>
        /// The Invoke method for the compute func - calls the TAG file processing executor to do the work
        /// </summary>
        public AddCoordinateSystemResponse Invoke(AddCoordinateSystemArgument arg)
        {
            try
            {
                var executor = new AddCoordinateSystemExecutor();

                return(new AddCoordinateSystemResponse {
                    Succeeded = executor.Execute(arg.ProjectID, arg.CSIB)
                });
            }
            catch (Exception e)
            {
                _log.LogError(e, "Exception adding coordinate system");
                return(new AddCoordinateSystemResponse {
                    Succeeded = false
                });
            }
        }
Beispiel #2
0
        /// <summary>
        /// Adds the provided coordinate system expressed as a CSIB to the site model
        /// </summary>
        /// <param name="siteModel"></param>
        /// <param name="csib"></param>
        public static void AddCSIBToSiteModel(ref ISiteModel siteModel, string csib)
        {
            var executor = new AddCoordinateSystemExecutor();

            executor.Execute(siteModel.ID, csib);
        }