Esempio n. 1
0
        public void AddIssue(Issue issue, IGeometry issueGeometry)
        {
            Assert.ArgumentNotNull(issue, nameof(issue));

            try
            {
                if (IssueGeometryTransformation != null)
                {
                    issueGeometry = IssueGeometryTransformation.TransformGeometry(issue,
                                                                                  issueGeometry);
                }

                IGeometry storableIssueGeometry = GetStorableIssueGeometry(issueGeometry);

                IssueWriter issueWriter = GetIssueWriter(storableIssueGeometry);

                issueWriter.Write(issue, storableIssueGeometry);
            }
            catch (Exception e)
            {
                _msg.ErrorFormat("Error adding issue: {0} ({1})",
                                 FormatIssue(issue),
                                 e.Message);
                throw;
            }
        }
Esempio n. 2
0
        protected IssueDataset([NotNull] IssueWriter issueWriter,
                               [NotNull] IIssueTableFields fields)
        {
            Assert.ArgumentNotNull(issueWriter, nameof(issueWriter));
            Assert.ArgumentNotNull(fields, nameof(fields));

            _issueWriter = issueWriter;
            Fields       = fields;
        }