-
Notifications
You must be signed in to change notification settings - Fork 944
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #886 from uq-eresearch/fix-bbox-clip-point-interse…
…ction Fix bbox-clip point intersection handling
- Loading branch information
Showing
3 changed files
with
192 additions
and
1 deletion.
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
83 changes: 83 additions & 0 deletions
83
packages/turf-bbox-clip/test/in/polygon-point-intersection.geojson
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 |
---|---|---|
@@ -0,0 +1,83 @@ | ||
{ | ||
"type": "FeatureCollection", | ||
"features": [ | ||
{ | ||
"type": "Feature", | ||
"properties": {}, | ||
"geometry": { | ||
"type": "Polygon", | ||
"coordinates": [ | ||
[ | ||
[ | ||
115.872872384, | ||
-31.977789227500004 | ||
], | ||
[ | ||
115.87413347200001, | ||
-31.978896027 | ||
], | ||
[ | ||
115.874207392, | ||
-31.978955634 | ||
], | ||
[ | ||
115.874293312, | ||
-31.978886666 | ||
], | ||
[ | ||
115.875, | ||
-31.9782948325 | ||
], | ||
[ | ||
115.873511744, | ||
-31.977027638 | ||
], | ||
[ | ||
115.8731464, | ||
-31.977071372 | ||
], | ||
[ | ||
115.872185504, | ||
-31.9771863865 | ||
], | ||
[ | ||
115.872872384, | ||
-31.977789227500004 | ||
] | ||
] | ||
] | ||
} | ||
}, | ||
{ | ||
"type": "Feature", | ||
"properties": {}, | ||
"geometry": { | ||
"type": "Polygon", | ||
"coordinates": [ | ||
[ | ||
[ | ||
115.875, | ||
-31.98 | ||
], | ||
[ | ||
115.880, | ||
-31.98 | ||
], | ||
[ | ||
115.880, | ||
-31.975 | ||
], | ||
[ | ||
115.875, | ||
-31.975 | ||
], | ||
[ | ||
115.875, | ||
-31.98 | ||
] | ||
] | ||
] | ||
} | ||
} | ||
] | ||
} |
106 changes: 106 additions & 0 deletions
106
packages/turf-bbox-clip/test/out/polygon-point-intersection.geojson
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 |
---|---|---|
@@ -0,0 +1,106 @@ | ||
{ | ||
"type": "FeatureCollection", | ||
"features": [ | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"stroke": "#080", | ||
"fill": "#080", | ||
"stroke-width": 6, | ||
"fill-opacity": 0.1 | ||
}, | ||
"geometry": { | ||
"type": "Polygon", | ||
"coordinates": [ | ||
[ | ||
[ | ||
115.872872384, | ||
-31.977789227500004 | ||
], | ||
[ | ||
115.87413347200001, | ||
-31.978896027 | ||
], | ||
[ | ||
115.874207392, | ||
-31.978955634 | ||
], | ||
[ | ||
115.874293312, | ||
-31.978886666 | ||
], | ||
[ | ||
115.875, | ||
-31.9782948325 | ||
], | ||
[ | ||
115.873511744, | ||
-31.977027638 | ||
], | ||
[ | ||
115.8731464, | ||
-31.977071372 | ||
], | ||
[ | ||
115.872185504, | ||
-31.9771863865 | ||
], | ||
[ | ||
115.872872384, | ||
-31.977789227500004 | ||
] | ||
] | ||
] | ||
} | ||
}, | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"stroke": "#F00", | ||
"fill": "#F00", | ||
"stroke-width": 6, | ||
"fill-opacity": 0.1 | ||
}, | ||
"geometry": { | ||
"type": "Polygon", | ||
"coordinates": [] | ||
} | ||
}, | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"stroke": "#00F", | ||
"fill": "#00F", | ||
"stroke-width": 3, | ||
"fill-opacity": 0.1 | ||
}, | ||
"geometry": { | ||
"type": "Polygon", | ||
"coordinates": [ | ||
[ | ||
[ | ||
115.875, | ||
-31.98 | ||
], | ||
[ | ||
115.880, | ||
-31.98 | ||
], | ||
[ | ||
115.880, | ||
-31.975 | ||
], | ||
[ | ||
115.875, | ||
-31.975 | ||
], | ||
[ | ||
115.875, | ||
-31.98 | ||
] | ||
] | ||
] | ||
} | ||
} | ||
] | ||
} |