-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
only index features strictly within tile boundaries
Instead of indexing all features for querying, index only those that are actually within the tile boundaries. This prevents duplicate results from being returned for point features. This is only a partial fix for the duplicate results problem (lines and polygons can still return duplicate results).
- Loading branch information
Showing
3 changed files
with
32 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 24 additions & 50 deletions
74
test/integration/query-tests/edge-cases/box-cutting-antimeridian-z0/expected.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,28 @@ | ||
[ | ||
{ | ||
"properties": { | ||
"id": "B" | ||
}, | ||
"type": "Feature", | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ | ||
90, | ||
0 | ||
] | ||
} | ||
{ | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ | ||
90, | ||
0 | ||
] | ||
}, | ||
{ | ||
"properties": { | ||
"id": "C" | ||
}, | ||
"type": "Feature", | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ | ||
270, | ||
0 | ||
] | ||
} | ||
}, | ||
{ | ||
"properties": { | ||
"id": "B" | ||
}, | ||
"type": "Feature", | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ | ||
-270, | ||
0 | ||
] | ||
} | ||
"type": "Feature", | ||
"properties": { | ||
"id": "B" | ||
} | ||
}, | ||
{ | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ | ||
-90, | ||
0 | ||
] | ||
}, | ||
{ | ||
"properties": { | ||
"id": "C" | ||
}, | ||
"type": "Feature", | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ | ||
-90, | ||
0 | ||
] | ||
} | ||
"type": "Feature", | ||
"properties": { | ||
"id": "C" | ||
} | ||
] | ||
} | ||
] |
37 changes: 2 additions & 35 deletions
37
test/integration/query-tests/edge-cases/null-island/expected.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,13 @@ | ||
[ | ||
{ | ||
"properties": {}, | ||
"type": "Feature", | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ | ||
0, | ||
0 | ||
] | ||
} | ||
}, | ||
{ | ||
"properties": {}, | ||
"type": "Feature", | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ | ||
0, | ||
0 | ||
] | ||
} | ||
}, | ||
{ | ||
"properties": {}, | ||
"type": "Feature", | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ | ||
0, | ||
0 | ||
] | ||
} | ||
}, | ||
{ | ||
"properties": {}, | ||
}, | ||
"type": "Feature", | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ | ||
0, | ||
0 | ||
] | ||
} | ||
"properties": {} | ||
} | ||
] |