Skip to content

Commit 256c704

Browse files
Added disjoint relation (#8)
1 parent 1bc1d50 commit 256c704

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

geojson/geojson_shapes_util.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,11 @@ func filterShapes(shape index.GeoJSON,
206206
return shape.Contains(shapeInDoc)
207207
}
208208

209+
if relation == "disjoint" {
210+
intersects, err := shape.Intersects(shapeInDoc)
211+
return !intersects, err
212+
}
213+
209214
return false, fmt.Errorf("unknown relation: %s", relation)
210215
}
211216

0 commit comments

Comments
 (0)