Point 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 Point object.


public static Point buildPoint() throws Exception
{
    Point point = new Point();
    point.setSrsName("EPSG:4326");
    Pos pos = new Pos();
    pos.setX(-77.0327);
    pos.setY(38.8990);
    pos.setMValue(54.33);
    point.setPos(pos);
    return point;
}