LegacyText Example - C#

The following shows a C# example that returns a LegacyText object.


public static LegacyText buildLegacyText()
{
    LegacyText legacyText = new LegacyText();
    Envelope envelope = buildEnvelope();
    legacyText.Rectangle = envelope;
    legacyText.Text = "This is Legacy Text";
    legacyText.srsName = "EPSG:4326";
    Angle angle = new Angle();
    angle.Value = 90;
    angle.uom = AngularUnit.Degree;
    legacyText.Angle = angle;
    return legacyText;
}