Skip to content

Commit daeffb0

Browse files
committed
fixes #1364
1 parent 61e22f4 commit daeffb0

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# version 1.1-1
22

3+
* `st_graticule()` simplifies output lines; #1364
4+
35
* `dplyr::count()` and `dplyr::tally()` no longer preserve geometries; #2596
46

57
* better handle graticules crossing the antemeridian; #2561

R/graticule.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ st_graticule = function(x = c(-180, -90, 180, 90), crs = st_crs(x),
190190
if (! missing(x)) # cut out box:
191191
df = suppressMessages(st_intersection(df, st_polygonize(box[1])))
192192

193+
df = st_line_merge(st_cast(df, "MULTILINESTRING"))
193194
df = st_cast(st_cast(df, "MULTILINESTRING"), "LINESTRING", warn = FALSE)
194195
graticule_attributes(df)
195196
}

0 commit comments

Comments
 (0)