Point Example - Java
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;
}