We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8ba849 commit 0944f44Copy full SHA for 0944f44
src/extras/BuildingShapeUtils.js
@@ -49,6 +49,20 @@ class BuildingShapeUtils extends ShapeUtils {
49
return elements[0].getAttribute('ref') === elements[elements.length - 1].getAttribute('ref');
50
}
51
52
+ /**
53
+ * Check if a way is self-intersecting.
54
+ *
55
+ * @param {DOM.Element} way - OSM XML way element.
56
57
+ * @return {boolean}
58
+ */
59
+ static isSelfIntersecting(way) {
60
+ if (isClosed(way))){
61
+ // Drop the final node.
62
+ }
63
+ // Check if the same node ref appears multiple times
64
65
+
66
/**
67
* Walk through an array and seperate any closed ways.
68
* Attempt to find matching open ways to enclose them.
0 commit comments