Skip to content

Commit

Permalink
build and move test.rbinds.R to old
Browse files Browse the repository at this point in the history
  • Loading branch information
bwcompton committed Aug 10, 2023
1 parent 87f5bba commit 3014921
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 4 deletions.
2 changes: 1 addition & 1 deletion man/get.tile.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/layer.info.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/read.tile.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions old/test.rbinds.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# test.rbinds
# rbind in loop 0.22 s
# make a list and lapply(zl, rbind) 0.11-0.12 s
# do.call('rbind', zl) 0.09-0.11 s <- use this, I guess
# rbind.data.frame fails
# rbindlist fails
# B. Compton, 8 Aug 2023



library(readMVT)
source('r/read.viewport.tiles2.R')


xml <- read.XML('https://umassdsl.webgis1.com/geoserver') # get capabilities of our GeoServer
streamlines <- layer.info(xml, 'testbed:streamlines') # get info for stream linework

nw <- c(6055, 4880)
se <- c(6057, 4883)

system.time(x <- read.viewport.tiles2(streamlines, nw, se, 14))
dim(x$tiles)

0 comments on commit 3014921

Please sign in to comment.