Double check tags uploading to osm

This commit is contained in:
Victor Shcherb 2015-11-12 10:42:10 +01:00
parent a1ca8b6e44
commit ebed30a08d

View file

@ -216,7 +216,7 @@ public class OpenstreetmapRemoteUtil implements OpenstreetmapUtil {
for (String k : n.getTagKeySet()) {
String val = n.getTag(k);
if (val.length() == 0)
if (val.length() == 0 || k.length() == 0 || "poi_type_tag".equals(k))
continue;
ser.startTag(null, "tag"); //$NON-NLS-1$
ser.attribute(null, "k", k); //$NON-NLS-1$