LegacyText Example - Java - Latest

Spectrum Spatial Guide

Product type
Software
Portfolio
Locate
Product family
Spectrumâ„¢ software
Product
Spectrumâ„¢ software > Spatial > Spectrum Spatial
Version
Latest
ft:locale
en-US
Product name
Spectrum Technology Platform
ft:title
Spectrum Spatial Guide
Copyright
2025
First publish date
2007
ft:lastEdition
2025-03-07
ft:lastPublication
2025-03-07T10:28:48.112000

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;
}