kopia lustrzana https://github.com/JOSM/MapWithAI
rodzic
e3f21db410
commit
eb143d0afc
|
@ -321,7 +321,7 @@ public class GetDataRunnable extends RecursiveTask<DataSet> {
|
|||
public static void replaceTags(DataSet dataSet, Map<Tag, Tag> replaceTags) {
|
||||
replaceTags.forEach((orig, replace) -> dataSet.allNonDeletedPrimitives().parallelStream()
|
||||
.filter(prim -> prim.hasTag(orig.getKey(), orig.getValue())
|
||||
|| prim.hasKey(orig.getKey()) && Utils.isBlank(orig.getValue()))
|
||||
|| (prim.hasKey(orig.getKey()) && Utils.isBlank(orig.getValue())))
|
||||
.forEach(prim -> prim.put(replace)));
|
||||
}
|
||||
|
||||
|
|
|
@ -40,7 +40,8 @@ public class MapWithAIInfo extends
|
|||
private Map<String, String> replacementTags;
|
||||
private boolean conflate;
|
||||
private String conflationUrl;
|
||||
public static BooleanProperty THIRD_PARTY_CONFLATE = new BooleanProperty("mapwithai.third_party.conflate", true);
|
||||
public static final BooleanProperty THIRD_PARTY_CONFLATE = new BooleanProperty("mapwithai.third_party.conflate",
|
||||
true);
|
||||
|
||||
/**
|
||||
* The preferred source string for the source. This is added as a source tag on
|
||||
|
|
|
@ -197,7 +197,7 @@ public class ESRISourceReader {
|
|||
newInfo.setSource(sourceTag.toString());
|
||||
}
|
||||
newInfo.setTermsOfUseURL("https://wiki.openstreetmap.org/wiki/Esri/ArcGIS_Datasets#License");
|
||||
return (newInfo);
|
||||
return newInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Ładowanie…
Reference in New Issue