userId += denseInfo.getUid(i); userSid += denseInfo.getUserSid(i); timestamp += denseInfo.getTimestamp(i); changesetId += denseInfo.getChangeset(i); entityData = new CommonEntityData(nodeId, denseInfo.getVersion(i), fieldDecoder.decodeTimestamp(timestamp), user, changesetId); } else {
lastTimestamp += di.getTimestamp(i); lastChangeset += di.getChangeset(i); lastUid += di.getUid(i); lastSid += di.getUserSid(i); p.setUserId((long) lastUid); p.setUserName(getStringById(lastSid)); if (di.getVisibleCount() > 0) { p.setVisible(di.getVisible(i));
Osmformat.DenseInfo.Builder bdi = Osmformat.DenseInfo.newBuilder(); serializeMetadataDense(bdi, contents); bi.setDenseinfo(bdi);
int uid = di.getUid(i) + lastuid; lastuid = uid; int userSid = di.getUserSid(i) + lastuserSid; lastuserSid = userSid; long timestamp = di.getTimestamp(i) + lasttimestamp; lasttimestamp = timestamp; int version = di.getVersion(i); long changeset = di.getChangeset(i) + lastchangeset; lastchangeset = changeset;
/** * <pre> *repeated Info info = 4; * </pre> * * <code>optional .OSMPBF.DenseInfo denseinfo = 5;</code> */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeDenseinfo(org.openstreetmap.osmosis.osmbinary.Osmformat.DenseInfo value) { if (value == null) { throw new NullPointerException(); } if (denseinfo_ != null && denseinfo_ != org.openstreetmap.osmosis.osmbinary.Osmformat.DenseInfo.getDefaultInstance()) { denseinfo_ = org.openstreetmap.osmosis.osmbinary.Osmformat.DenseInfo.newBuilder(denseinfo_).mergeFrom(value).buildPartial(); } else { denseinfo_ = value; } bitField0_ |= 0x00000001; } /**
/** * <pre> * The visible flag is used to store history information. It indicates that * the current object version has been created by a delete operation on the * OSM API. * When a writer sets this flag, it MUST add a required_features tag with * value "HistoricalInformation" to the HeaderBlock. * If this flag is not available for some object it MUST be assumed to be * true if the file has the required_features tag "HistoricalInformation" * set. * </pre> * * <code>repeated bool visible = 6 [packed = true];</code> */ @java.lang.Override public boolean getVisible(int index) { return instance.getVisible(index); } /**
/** * <pre> * The visible flag is used to store history information. It indicates that * the current object version has been created by a delete operation on the * OSM API. * When a writer sets this flag, it MUST add a required_features tag with * value "HistoricalInformation" to the HeaderBlock. * If this flag is not available for some object it MUST be assumed to be * true if the file has the required_features tag "HistoricalInformation" * set. * </pre> * * <code>repeated bool visible = 6 [packed = true];</code> */ @java.lang.Override public int getVisibleCount() { return instance.getVisibleCount(); } /**
/** * <pre> * DELTA coded * </pre> * * <code>repeated sint64 changeset = 3 [packed = true];</code> */ @java.lang.Override public long getChangeset(int index) { return instance.getChangeset(index); } /**
/** * <pre> * DELTA coded * </pre> * * <code>repeated sint64 timestamp = 2 [packed = true];</code> */ @java.lang.Override public long getTimestamp(int index) { return instance.getTimestamp(index); } /**
/** * <pre> * DELTA coded * </pre> * * <code>repeated sint32 uid = 4 [packed = true];</code> */ @java.lang.Override public int getUid(int index) { return instance.getUid(index); } /**
/** * <pre> * String IDs for usernames. DELTA coded * </pre> * * <code>repeated sint32 user_sid = 5 [packed = true];</code> */ @java.lang.Override public int getUserSid(int index) { return instance.getUserSid(index); } /**
/** * <code>repeated int32 version = 1 [packed = true];</code> */ @java.lang.Override public int getVersion(int index) { return instance.getVersion(index); } /**