/// <summary> /// Writes the content of this instance to a persistent storage area. /// </summary> /// <param name="editSerializer">The mechanism for storing content.</param> public override void WriteData(EditSerializer editSerializer) { editSerializer.WriteDouble(DataField.Value, ObservedValue); editSerializer.WriteByte(DataField.Unit, (byte)m_EnteredUnit.UnitType); if (m_IsFixed) { editSerializer.WriteBool(DataField.Fixed, true); } if (IsAnnotationFlipped) { editSerializer.WriteBool(DataField.Flipped, true); } }
/// <summary> /// Writes the content of this instance to a persistent storage area. /// </summary> /// <param name="editSerializer">The mechanism for storing content.</param> public override void WriteData(EditSerializer editSerializer) { base.WriteData(editSerializer); editSerializer.WriteFeatureRef <LineFeature>(DataField.RefLine, m_RefLine); if (m_Term1 != null) { editSerializer.WriteFeatureRef <LineFeature>(DataField.Term1, m_Term1); } if (m_Term2 != null) { editSerializer.WriteFeatureRef <LineFeature>(DataField.Term2, m_Term2); } if (IsArcReversed) { editSerializer.WriteBool(DataField.ReverseArc, true); } editSerializer.WritePersistent <Observation>(DataField.Offset, m_Offset); if (m_ParLine.StartPoint != OffsetPoint) { editSerializer.WritePersistent <FeatureStub>(DataField.From, new FeatureStub(m_ParLine.StartPoint)); } if (m_ParLine.EndPoint != OffsetPoint) { editSerializer.WritePersistent <FeatureStub>(DataField.To, new FeatureStub(m_ParLine.EndPoint)); } editSerializer.WritePersistent <FeatureStub>(DataField.NewLine, new FeatureStub(m_ParLine)); }
/// <summary> /// Writes the content of this instance to a persistent storage area. /// </summary> /// <param name="editSerializer">The mechanism for storing content.</param> public override void WriteData(EditSerializer editSerializer) { base.WriteData(editSerializer); editSerializer.WriteFeatureRef <LineFeature>(DataField.Line, m_Line); editSerializer.WritePersistent <Distance>(DataField.Distance, m_Distance); editSerializer.WriteBool(DataField.EntryFromEnd, m_IsFromEnd); editSerializer.WritePersistent <FeatureStub>(DataField.NewPoint, new FeatureStub(m_NewPoint)); editSerializer.WriteInternalId(DataField.NewLine1, m_NewLine1.InternalId); editSerializer.WriteInternalId(DataField.NewLine2, m_NewLine2.InternalId); }
/// <summary> /// Writes the content of this instance to a persistent storage area. /// </summary> /// <param name="editSerializer">The mechanism for storing content.</param> public override void WriteData(EditSerializer editSerializer) { base.WriteData(editSerializer); editSerializer.WriteFeatureRef <LineFeature>(DataField.Line, m_ExtendLine); editSerializer.WriteBool(DataField.ExtendFromEnd, m_IsExtendFromEnd); editSerializer.WritePersistent <Distance>(DataField.Distance, m_Length); editSerializer.WritePersistent <FeatureStub>(DataField.NewPoint, new FeatureStub(m_NewPoint)); if (m_NewLine != null) { editSerializer.WritePersistent <FeatureStub>(DataField.NewLine, new FeatureStub(m_NewLine)); } }
/// <summary> /// Writes the content of this instance to a persistent storage area. /// </summary> /// <param name="editSerializer">The mechanism for storing content.</param> public override void WriteData(EditSerializer editSerializer) { base.WriteData(editSerializer); editSerializer.WritePersistent <Direction>(DataField.Direction, m_Direction); editSerializer.WritePersistent <Observation>(DataField.Distance, m_Distance); editSerializer.WriteFeatureRef <PointFeature>(DataField.From, m_From); editSerializer.WriteBool(DataField.Default, m_Default); editSerializer.WritePersistent <FeatureStub>(DataField.To, new FeatureStub(m_To)); if (m_DirLine != null) { editSerializer.WritePersistent <FeatureStub>(DataField.DirLine, new FeatureStub(m_DirLine)); } if (m_DistLine != null) { editSerializer.WritePersistent <FeatureStub>(DataField.DistLine, new FeatureStub(m_DistLine)); } }
/// <summary> /// Writes the content of this instance to a persistent storage area. /// </summary> /// <param name="editSerializer">The mechanism for storing content.</param> public override void WriteData(EditSerializer editSerializer) { base.WriteData(editSerializer); editSerializer.WritePersistent <Observation>(DataField.Distance1, m_Distance1); editSerializer.WriteFeatureRef <PointFeature>(DataField.From1, m_From1); editSerializer.WritePersistent <Observation>(DataField.Distance2, m_Distance2); editSerializer.WriteFeatureRef <PointFeature>(DataField.From2, m_From2); editSerializer.WriteBool(DataField.Default, m_Default); editSerializer.WritePersistent <FeatureStub>(DataField.To, new FeatureStub(m_To)); if (m_Line1 != null) { editSerializer.WritePersistent <FeatureStub>(DataField.Line1, new FeatureStub(m_Line1)); } if (m_Line2 != null) { editSerializer.WritePersistent <FeatureStub>(DataField.Line2, new FeatureStub(m_Line2)); } }
/// <summary> /// Writes the content of this instance to a persistent storage area. /// </summary> /// <param name="editSerializer">The mechanism for storing content.</param> public override void WriteData(EditSerializer editSerializer) { base.WriteData(editSerializer); editSerializer.WriteFeatureRef<LineFeature>(DataField.Line, m_Line); editSerializer.WritePersistent<Distance>(DataField.Distance, m_Distance); editSerializer.WriteBool(DataField.EntryFromEnd, m_IsFromEnd); editSerializer.WritePersistent<FeatureStub>(DataField.NewPoint, new FeatureStub(m_NewPoint)); editSerializer.WriteInternalId(DataField.NewLine1, m_NewLine1.InternalId); editSerializer.WriteInternalId(DataField.NewLine2, m_NewLine2.InternalId); }
/// <summary> /// Writes the content of this instance to a persistent storage area. /// </summary> /// <param name="editSerializer">The mechanism for storing content.</param> public override void WriteData(EditSerializer editSerializer) { base.WriteData(editSerializer); editSerializer.WriteFeatureRef<LineFeature>(DataField.Line, m_Line); editSerializer.WriteBool(DataField.Topological, m_Topological); }
/// <summary> /// Writes the content of this instance to a persistent storage area. /// </summary> /// <param name="editSerializer">The mechanism for storing content.</param> public override void WriteData(EditSerializer editSerializer) { base.WriteData(editSerializer); editSerializer.WriteFeatureRef<LineFeature>(DataField.Line, m_ExtendLine); editSerializer.WriteBool(DataField.ExtendFromEnd, m_IsExtendFromEnd); editSerializer.WritePersistent<Distance>(DataField.Distance, m_Length); editSerializer.WritePersistent<FeatureStub>(DataField.NewPoint, new FeatureStub(m_NewPoint)); if (m_NewLine != null) editSerializer.WritePersistent<FeatureStub>(DataField.NewLine, new FeatureStub(m_NewLine)); }
/// <summary> /// Writes the content of this instance to a persistent storage area. /// </summary> /// <param name="editSerializer">The mechanism for storing content.</param> public void WriteData(EditSerializer editSerializer) { editSerializer.WriteBool(DataField.EntryFromEnd, m_IsEntryFromEnd); editSerializer.WritePersistentArray<Distance>(DataField.Sections, m_Distances); }
/// <summary> /// Writes the content of this instance to a persistent storage area. /// </summary> /// <param name="editSerializer">The mechanism for storing content.</param> public override void WriteData(EditSerializer editSerializer) { base.WriteData(editSerializer); editSerializer.WriteFeatureRef <LineFeature>(DataField.Line, m_Line); editSerializer.WriteBool(DataField.Topological, m_Topological); }
/// <summary> /// Writes the content of this instance to a persistent storage area. /// </summary> /// <param name="editSerializer">The mechanism for storing content.</param> public override void WriteData(EditSerializer editSerializer) { base.WriteData(editSerializer); editSerializer.WritePersistent<Direction>(DataField.Direction, m_Direction); editSerializer.WritePersistent<Observation>(DataField.Distance, m_Distance); editSerializer.WriteFeatureRef<PointFeature>(DataField.From, m_From); editSerializer.WriteBool(DataField.Default, m_Default); editSerializer.WritePersistent<FeatureStub>(DataField.To, new FeatureStub(m_To)); if (m_DirLine != null) editSerializer.WritePersistent<FeatureStub>(DataField.DirLine, new FeatureStub(m_DirLine)); if (m_DistLine != null) editSerializer.WritePersistent<FeatureStub>(DataField.DistLine, new FeatureStub(m_DistLine)); }
/// <summary> /// Writes the content of this instance to a persistent storage area. /// </summary> /// <param name="editSerializer">The mechanism for storing content.</param> public override void WriteData(EditSerializer editSerializer) { base.WriteData(editSerializer); editSerializer.WritePersistent<Observation>(DataField.Distance1, m_Distance1); editSerializer.WriteFeatureRef<PointFeature>(DataField.From1, m_From1); editSerializer.WritePersistent<Observation>(DataField.Distance2, m_Distance2); editSerializer.WriteFeatureRef<PointFeature>(DataField.From2, m_From2); editSerializer.WriteBool(DataField.Default, m_Default); editSerializer.WritePersistent<FeatureStub>(DataField.To, new FeatureStub(m_To)); if (m_Line1 != null) editSerializer.WritePersistent<FeatureStub>(DataField.Line1, new FeatureStub(m_Line1)); if (m_Line2 != null) editSerializer.WritePersistent<FeatureStub>(DataField.Line2, new FeatureStub(m_Line2)); }
/// <summary> /// Writes the content of this instance to a persistent storage area. /// </summary> /// <param name="editSerializer">The mechanism for storing content.</param> public override void WriteData(EditSerializer editSerializer) { base.WriteData(editSerializer); editSerializer.WriteBool(DataField.Topological, IsTopological); IPointGeometry tp = Position; IPointGeometry pp = GetPolPosition(); if (pp != null) { if (pp.Easting.Microns != tp.Easting.Microns || pp.Northing.Microns != tp.Northing.Microns) { editSerializer.WriteInt64(DataField.PolygonX, pp.Easting.Microns); editSerializer.WriteInt64(DataField.PolygonY, pp.Northing.Microns); } } // RowText is problematic on deserialization because the database rows might not // be there. To cover that possibility, use a proxy object. if (m_Geom is RowTextGeometry) editSerializer.WritePersistent<TextGeometry>(DataField.Type, new RowTextContent((RowTextGeometry)m_Geom)); else editSerializer.WritePersistent<TextGeometry>(DataField.Type, m_Geom); }
/// <summary> /// Writes the content of this instance to a persistent storage area. /// </summary> /// <param name="editSerializer">The mechanism for storing content.</param> public void WriteData(EditSerializer editSerializer) { editSerializer.WriteBool(DataField.EntryFromEnd, m_IsEntryFromEnd); editSerializer.WritePersistentArray <Distance>(DataField.Sections, m_Distances); }
/// <summary> /// Writes the content of this instance to a persistent storage area. /// </summary> /// <param name="editSerializer">The mechanism for storing content.</param> public override void WriteData(EditSerializer editSerializer) { base.WriteData(editSerializer); editSerializer.WriteFeatureRef<PointFeature>(DataField.From, m_From); editSerializer.WriteFeatureRef<PointFeature>(DataField.To, m_To); editSerializer.WriteBool(DataField.Topological, IsTopological); // For simple line segments (perhaps 80% of the case when dealing with cadastral // data), we already have what we need with the from & to points. if (!(m_Geom is SegmentGeometry)) editSerializer.WritePersistent<LineGeometry>(DataField.Type, m_Geom); }
/// <summary> /// Writes the content of this instance to a persistent storage area. /// </summary> /// <param name="editSerializer">The mechanism for storing content.</param> public override void WriteData(EditSerializer editSerializer) { editSerializer.WritePersistent<Distance>(DataField.Offset, m_Offset); editSerializer.WriteBool(DataField.Left, m_IsLeft); }
/// <summary> /// Writes the content of this instance to a persistent storage area. /// </summary> /// <param name="editSerializer">The mechanism for storing content.</param> public override void WriteData(EditSerializer editSerializer) { editSerializer.WritePersistent <Distance>(DataField.Offset, m_Offset); editSerializer.WriteBool(DataField.Left, m_IsLeft); }
/// <summary> /// Writes the content of this instance to a persistent storage area. /// </summary> /// <param name="editSerializer">The mechanism for storing content.</param> public override void WriteData(EditSerializer editSerializer) { editSerializer.WriteBool(DataField.Clockwise, m_IsClockwise); // If the circle's first arc has geometry that corresponds to this instance, write // out the circle center point. Otherwise refer to the first arc (we'll get the // circle geometry from there). if (Object.ReferenceEquals(m_Circle.FirstArc.Geometry, this)) editSerializer.WriteFeatureRef<PointFeature>(DataField.Center, m_Circle.CenterPoint); else editSerializer.WriteFeatureRef<ArcFeature>(DataField.FirstArc, m_Circle.FirstArc); }