LegacyText Example - Java
The following shows a Java example that returns a LegacyText object.
public static LegacyText buildLegacyText() throws Exception
{
LegacyText legacyText = new LegacyText();
Envelope envelope = buildEnvelope();
legacyText.setRectangle(envelope);
legacyText.setText("This is Legacy Text");
legacyText.setSrsName("EPSG:4326");
Angle angle = new Angle();
angle.setValue(90);
angle.setUom(AngularUnit.DEGREE);
legacyText.setAngle(angle);
return legacyText;
}