Skip to content

Commit a04d2a5

Browse files
committed
g
1 parent e626be0 commit a04d2a5

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

R/plot_raster.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,13 +392,14 @@
392392
graphics::rect(x$lim[1], x$lim[3], x$lim[2], x$lim[4], col=x$background, border=x$box)
393393
}
394394
}
395+
try(set.clip(x$lim, x$lonlat))
395396
if (!x$values) {
396-
if (!x$add) try(set.clip(x$lim, x$lonlat))
397+
#if (!x$add) try(set.clip(x$lim, x$lonlat))
397398
return(x)
398399
}
399400
if (!x$legend_only) {
400-
graphics::rasterImage(x$r, x$ext[1], x$ext[3], x$ext[2], x$ext[4], angle = 0, interpolate = x$interpolate)
401401
x <- .plot.axes(x)
402+
graphics::rasterImage(x$r, x$ext[1], x$ext[3], x$ext[2], x$ext[4], angle = 0, interpolate = x$interpolate)
402403
}
403404

404405
if (x$legend_draw) {

R/plot_vector.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,10 +390,10 @@ setMethod("dots", signature(x="SpatVector"),
390390
if (!out$add) {
391391
try(set.clip(out$lim, out$lonlat))
392392
}
393+
out <- .plot.axes(out)
393394
out <- .vplot(x, out, ...)
394395
}
395396

396-
out <- .plot.axes(out)
397397

398398
if (out$legend_draw) {
399399
if (out$legend_type == "continuous") {

src/Makevars.ucrt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ endif
1414

1515
CXX_STD = CXX
1616

17-
all: clean winlibs
17+
#all: clean winlibs
1818

19-
winlibs:
20-
cp -r "$(R_TOOLS_SOFT)/share/gdal" ../inst/
21-
cp -r "$(R_TOOLS_SOFT)/share/proj" ../inst/
19+
#winlibs:
20+
# cp -r "$(R_TOOLS_SOFT)/share/gdal" ../inst/
21+
# cp -r "$(R_TOOLS_SOFT)/share/proj" ../inst/
2222

23-
clean:
24-
rm -f $(SHLIB) $(OBJECTS)
23+
#clean:
24+
# rm -f $(SHLIB) $(OBJECTS)
2525

26-
.PHONY: all winlibs clean
26+
#.PHONY: all winlibs clean
2727

0 commit comments

Comments
 (0)