Don't flag unclosed parts of multipolygons with undownloaded members (re: #2223)

This commit is contained in:
Quincy Morgan
2019-11-22 15:00:43 -05:00
parent 45ac186a68
commit 59f0c04e13
+5 -1
View File
@@ -227,7 +227,11 @@ export function validationMismatchedGeometry(context) {
function unclosedMultipolygonPartIssues(entity, graph) {
if (entity.type !== 'relation' || !entity.isMultipolygon() || entity.isDegenerate()) return null;
if (entity.type !== 'relation' ||
!entity.isMultipolygon() ||
entity.isDegenerate() ||
// cannot determine issues for incompletely-downloaded relations
!entity.isComplete(graph)) return null;
var sequences = osmJoinWays(entity.members, graph);