Test output

This commit is contained in:
Victor Shcherb 2015-08-01 21:12:25 +02:00
parent 70bf6b6aa6
commit a6bed74606

View file

@ -236,9 +236,10 @@ public class OsmBaseStorage extends DefaultHandler {
} }
} else if (ELEM_MEMBER.equals(name)) { } else if (ELEM_MEMBER.equals(name)) {
Long id = parseId(attributes, ATTR_REF, -1); Long id = parseId(attributes, ATTR_REF, -1);
if(id != -1 && currentParsedEntity instanceof Relation){ if (id != -1 && currentParsedEntity instanceof Relation) {
System.out.println("Type " + attributes.getValue(ATTR_TYPE));
EntityType type = EntityType.valueOf(attributes.getValue(ATTR_TYPE).toUpperCase()); EntityType type = EntityType.valueOf(attributes.getValue(ATTR_TYPE).toUpperCase());
((Relation)currentParsedEntity).addMember(id, type, attributes.getValue(ATTR_ROLE)); ((Relation) currentParsedEntity).addMember(id, type, attributes.getValue(ATTR_ROLE));
} }
} else { } else {