-
Notifications
You must be signed in to change notification settings - Fork 943
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support GeometryCollection in @turf/line-chunk. (#726)
- Loading branch information
1 parent
910d5f5
commit 46b8502
Showing
7 changed files
with
750 additions
and
27 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
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
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
43 changes: 43 additions & 0 deletions
43
packages/turf-line-chunk/test/in/GeometryCollection.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,43 @@ | ||
{ | ||
"type": "GeometryCollection", | ||
"geometries": [ | ||
{ | ||
"type": "LineString", | ||
"coordinates": [ | ||
[ | ||
-86.28524780273438, | ||
40.250184183819854 | ||
], | ||
[ | ||
-85.98587036132812, | ||
40.17887331434696 | ||
], | ||
[ | ||
-85.97213745117188, | ||
40.08857859823707 | ||
], | ||
[ | ||
-85.77987670898438, | ||
40.15578608609647 | ||
] | ||
] | ||
}, | ||
{ | ||
"type": "LineString", | ||
"coordinates": [ | ||
[ | ||
-86.29348754882811, | ||
40.17362690655496 | ||
], | ||
[ | ||
-86.23580932617188, | ||
39.891826241725596 | ||
], | ||
[ | ||
-85.93643188476562, | ||
39.95606977009003 | ||
] | ||
] | ||
} | ||
] | ||
} |
57 changes: 57 additions & 0 deletions
57
packages/turf-line-chunk/test/out/GeometryCollection.longer.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,57 @@ | ||
{ | ||
"type": "FeatureCollection", | ||
"features": [ | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"stroke": "#F00", | ||
"stroke-width": 6 | ||
}, | ||
"geometry": { | ||
"type": "LineString", | ||
"coordinates": [ | ||
[ | ||
-86.285248, | ||
40.250184 | ||
], | ||
[ | ||
-85.98587, | ||
40.178873 | ||
], | ||
[ | ||
-85.972137, | ||
40.088579 | ||
], | ||
[ | ||
-85.779877, | ||
40.155786 | ||
] | ||
] | ||
} | ||
}, | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"stroke": "#F00", | ||
"stroke-width": 6 | ||
}, | ||
"geometry": { | ||
"type": "LineString", | ||
"coordinates": [ | ||
[ | ||
-86.293488, | ||
40.173627 | ||
], | ||
[ | ||
-86.235809, | ||
39.891826 | ||
], | ||
[ | ||
-85.936432, | ||
39.95607 | ||
] | ||
] | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.