本文整理了Java中org.openstreetmap.osmosis.core.domain.v0_6.Relation.getUser
方法的一些代码示例,展示了Relation.getUser
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Relation.getUser
方法的具体详情如下:
包路径:org.openstreetmap.osmosis.core.domain.v0_6.Relation
类名称:Relation
方法名:getUser
暂无
代码示例来源:origin: openstreetmap/osmosis
userManager.addOrUpdateUser(relation.getUser());
changesetManager.addChangesetIfRequired(relation.getChangesetId(), relation.getUser());
代码示例来源:origin: org.openstreetmap.osmosis/osmosis-apidb
userManager.addOrUpdateUser(relation.getUser());
changesetManager.addChangesetIfRequired(relation.getChangesetId(), relation.getUser());
代码示例来源:origin: openstreetmap/osmosis
/**
* {@inheritDoc}
*/
public void process(RelationContainer relationContainer) {
Relation relation;
int memberSequenceId;
relation = relationContainer.getEntity();
relationWriter.writeField(relation.getId());
relationWriter.writeField(relation.getVersion());
relationWriter.writeField(relation.getUser().getId());
relationWriter.writeField(relation.getTimestamp());
relationWriter.writeField(relation.getChangesetId());
relationWriter.writeField(buildTags(relation));
relationWriter.endRecord();
memberSequenceId = 0;
for (RelationMember member : relation.getMembers()) {
relationMemberWriter.writeField(relation.getId());
relationMemberWriter.writeField(member.getMemberId());
relationMemberWriter.writeField(memberTypeValueMapper.getMemberType(member.getMemberType()));
relationMemberWriter.writeField(member.getMemberRole());
relationMemberWriter.writeField(memberSequenceId++);
relationMemberWriter.endRecord();
}
}
代码示例来源:origin: openstreetmap/osmosis
relationWriter.writeField(relation.getUser().getId());
relationWriter.writeField(relation.getTimestamp());
relationWriter.writeField(relation.getChangesetId());
内容来源于网络,如有侵权,请联系作者删除!