org.openstreetmap.osmosis.core.domain.v0_6.Relation.getUser()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(157)

本文整理了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

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());

相关文章