PointStreamProto.Location.Builder locBuilder = PointStreamProto.Location.newBuilder();
locBuilder.setTime(pf.getObservationTime());
if (!Double.isNaN(pf.getNominalTime()) && (pf.getNominalTime() != pf.getObservationTime()))
locBuilder.setNomTime(pf.getNominalTime());
EarthLocation loc = pf.getLocation();
locBuilder.setLat(loc.getLatitude());
locBuilder.setLon(loc.getLongitude());
if (!Double.isNaN(loc.getAltitude()))
locBuilder.setAlt(loc.getAltitude());
PointStreamProto.PointFeature.Builder builder = PointStreamProto.PointFeature.newBuilder();
builder.setLoc(locBuilder);
StructureData sdata = pf.getData();