use of uk.me.parabola.mkgmap.reader.osm.Relation in project mkgmap by openstreetmap.
the class BoundaryElementSaver method convert.
public void convert(OsmConverter converter) {
nodeMap = null;
converter.setBoundingBox(getBoundingBox());
ArrayList<Relation> relations = new ArrayList<>(relationMap.values());
relationMap = null;
for (int i = 0; i < relations.size(); i++) {
converter.convertRelation(relations.get(i));
relations.set(i, null);
}
relations = null;
for (Way w : wayMap.values()) {
if (isBoundary(w)) {
converter.convertWay(w);
}
}
wayMap = null;
converter.end();
}
Aggregations