Package: tilework 1.0.0

Jiaji George Chen

tilework: Extensible Tile Planning and Windowed Parallel Processing

An extensible framework for tile-based processing of large, spatially indexed data. Tile plans are first-class objects describing a set of bounds, which may be regular grids in pixel or coordinate space, tiles centered on supplied points, or adaptive decompositions such as quadtrees. Bounds may carry padding, supplying the overlapping context that neighborhood operations and objects spanning several tiles require. Extraction dispatches on the class of the input, so one plan can window two data sources of differing type together; methods are provided for 'terra' rasters and vector proxies, and other packages can register methods for their own formats. Tiles are processed in parallel through 'future', or optionally 'BiocParallel', and a per-worker initialization step amortizes expensive setup such as loading a model.

Authors:Jiaji George Chen [aut, cre], Ruben Dries [aut]

tilework_1.0.0.tar.gz
tilework_1.0.0.zip(r-4.7-any)tilework_1.0.0.zip(r-4.6-any)tilework_1.0.0.zip(r-4.5-any)
tilework_1.0.0.tgz(r-4.6-any)tilework_1.0.0.tgz(r-4.5-any)
tilework_1.0.0.tar.gz(r-4.7-any)tilework_1.0.0.tar.gz(r-4.6-any)
tilework_1.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
tilework/json (API)

# Install 'tilework' in R:
install.packages('tilework', repos = c('https://drieslab.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/drieslab/tilework/issues

Pkgdown/docs site:https://drieslab.github.io

On CRAN:

Conda:

4.18 score 5 scripts 27 exports 12 dependencies

Last updated from:f4616fa3e8. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK260
source / vignettesOK339
linux-releaseOK239
macos-releaseOK329
macos-oldrelOK298
windows-develOK219
windows-releaseOK211
windows-oldrelOK203
wasm-releaseOK173

Exports:as.polygonscentroidsextext<-freeTilePlangetBoundedDatagetTilegetTileworkJobIDgetTileworkLogDirgetTileworkParMethodintersectiterSplitncolnrowpixelTilePlanplotpointTilePlanquadtreePlanredispatch_tileapplysetTileworkLogDirsetTileworkParMethodshowspatialTilePlantileApplytileGrouptileIteratortilePlan

Dependencies:backportscheckmatecodetoolsdigestfuturefuture.applyglobalslistenvparallellyprogressrRcppterra

Selecting, Grouping, and Iterating Tiles
Overview | Basic tile processing | tileSelection | tileGroup | Parallelization strategies | group_FUN | tileIterator | Manual streaming | With tileApply | setup_FUN for per-worker initialization | Iterator splitting | Choosing between them | Parallelization backends

Last update: 2026-07-31
Started: 2026-04-06

Choosing and Creating a Tile Plan
Overview | spatialTilePlan | pixelTilePlan | pointTilePlan | Coordinate modes: input and output | Same-mode: spatial → spatial | Same-mode: pixel → pixel | Cross-mode: spatial → pixel and pixel → spatial | freeTilePlan and quadtreePlan | Adaptive decomposition with quadtreePlan() | Choosing tile size and padding | Summary

Last update: 2026-04-08
Started: 2026-04-06

Patch-Based Feature Extraction for Machine Learning
Overview | The image and tile plan | Why tile groups? Edge tiles differ in size | Per-worker model initialization | Running inference on one group | Processing all groups and reassembling | Parallelization | Summary

Last update: 2026-04-08
Started: 2026-04-06

Readme and manuals

Help Manual

Help pageTopics
Tile Pads+,pixelTilePlan,numeric-method +,pointTilePlan,numeric-method +,tileGroup,numeric-method +,tilePlan,numeric-method +,tileSelection,numeric-method -,tileGroup,numeric-method -,tilePlan,numeric-method -,tileSelection,numeric-method arith
Coerce a tile plan to polygonsas.polygons as.polygons,freeTilePlan-method as.polygons,pointTilePlan-method as.polygons,spatialTilePlan-method as.polygons,tilePlan-method
Extract Bounds from Tile Objectbracket [ [,freeTilePlan,numeric,numeric,missing-method [,pixelTilePlan,numeric,numeric,missing-method [,pointTilePlan,numeric,missing,missing-method [,spatialTilePlan,numeric,numeric,missing-method [,tileGroup,.index,missing,missing-method [,tileGroup,missing,.index,missing-method [,tileGroup,missing,missing,missing-method [,tileGroup,numeric,.index,missing-method [,tileIterator,missing,missing,missing-method [,tilePlan,missing,missing,logical-method [,tilePlan,missing,missing,missing-method [,tilePlan,missing,numeric,logical-method [,tilePlan,missing,numeric,missing-method [,tilePlan,numeric,missing,logical-method [,tilePlan,numeric,missing,missing-method [,tilePlan,numeric,numeric,logical-method [,tilePlan,numeric,numeric,missing-method [,tileSelection,numeric,missing,logical-method [,tileSelection,numeric,missing,missing-method [<-,tileIterator,missing,missing-method
Combine tileSelectionsc c,tileSelection-method
Get Tile Centroidscentroids centroids,freeTilePlan-method centroids,pixelTilePlan-method centroids,pointTilePlan-method centroids,spatialTilePlan-method centroids,tilePlan-method
Tile Plan Array Characteristicsdim dim,tilePlan-method length length,tileGroup-method length,tileIterator-method length,tilePlan-method length,tileSelection-method length<- length<-,spatialTilePlan-method ncol ncol,tilePlan-method nrow nrow,tilePlan-method
Get and Set Tile Metadata and Params$,freeTilePlan-method $,pixelTilePlan-method $,pointTilePlan-method $,tileGroup-method $,tilePlan-method $,tileSelection-method $<-,freeTilePlan-method $<-,pixelTilePlan-method $<-,pointTilePlan-method $<-,tileGroup-method $<-,tilePlan-method $<-,tileSelection-method dollar
Get and set metadatadouble_bracket [[ [[,tilePlan,missing,character-method [[,tilePlan,missing,missing-method [[,tilePlan,numeric,character-method [[,tilePlan,numeric,missing-method [[<-,tilePlan,missing,character-method [[<-,tilePlan,numeric,character-method
Get and Set Spatial Extentext ext,pointTilePlan-method ext,spatialTilePlan-method ext<- ext<-,pointTilePlan,ANY-method ext<-,spatialTilePlan,ANY-method
Extending {tilework}extending_tilework
Create a Fluid Tile PlanfreeTilePlan
Free Tile PlanfreeTilePlan-class
Get Data Within BoundsgetBoundedData getBoundedData,SpatRaster,numeric-method getBoundedData,SpatRaster,SpatExtent-method getBoundedData,SpatVectorProxy,SpatExtent-method
Get TilegetTile getTile,ANY,tileGroup-method getTile,ANY,tileIterator-method getTile,ANY,tilePlan-method getTile,character,tilePlan-method getTile,SpatRaster,pointTilePlan-method getTile,SpatRaster,tileGroup-method getTile,SpatRaster,tilePlan-method getTile,token,tilePlan-method
Find tiles intersecting a spatial regionintersect intersect,freeTilePlan,ANY-method intersect,spatialTilePlan,ANY-method intersect,tilePlan,ANY-method
Create multiple walkers from a single iteratoriterSplit iterSplit,tileIterator-method
Parallel Processing ParametersgetTileworkParMethod parallel_params setTileworkParMethod
Pixel Tile PlanpixelTilePlan pixelTilePlan-class
Plot a 'tilePlan'plot plot,freeTilePlan,missing-method plot,pixelTilePlan,missing-method plot,pointTilePlan,missing-method plot,tilePlan,missing-method plot,tileSelection,missing-method
Point Tile PlanpointTilePlan pointTilePlan-class
Adaptive Quadtree Tile PlanquadtreePlan
_Developer API_ Redispatch for 'tileApply()'redispatch_tileapply redispatch_tileapply,ANY,ANY-method redispatch_tileapply,ANY,tileGroup-method redispatch_tileapply,ANY,tileIterator-method redispatch_tileapply,character,tileGroup-method redispatch_tileapply,character,tileIterator-method redispatch_tileapply,character,tilePlan-method redispatch_tileapply,character,tileSelection-method redispatch_tileapply,SpatRaster,freeTilePlan-method redispatch_tileapply,SpatRaster,pixelTilePlan-method redispatch_tileapply,SpatRaster,pointTilePlan-method redispatch_tileapply,SpatRaster,spatialTilePlan-method redispatch_tileapply,SpatRaster,tileGroup-method redispatch_tileapply,SpatRaster,tileIterator-method redispatch_tileapply,SpatRaster,tileSelection-method redispatch_tileapply,SpatVector,spatialTilePlan-method redispatch_tileapply,SpatVector,tileGroup-method redispatch_tileapply,SpatVector,tileIterator-method redispatch_tileapply,SpatVector,tileSelection-method
Spatial Tile PlanspatialTilePlan spatialTilePlan-class
Hierarchical Tile Group ProcessingtileApply,token,missing,tileGroup-method tileApply,token,token,tileGroup-method tileApply-group
Streaming Tile Processing with IteratorstileApply,token,missing,tileIterator-method tileApply,token,token,tileIterator-method tileApply-iterator
Basic Tile ProcessingtileApply,token,missing,tilePlan-method tileApply,token,missing,tileSelection-method tileApply,token,token,tilePlan-method tileApply,token,token,tileSelection-method tileApply-plan
Create a Tile GrouptileGroup
Tile GrouptileGroup-class
Stateful Tile Iterator$,tileIterator-method $<-,tileIterator-method tileIterator
tileIteratortileIterator-class
Create a Tiling PlantilePlan
Tile PlantilePlan-class
tilework managementgetTileworkJobID getTileworkLogDir setTileworkLogDir tilework_management
Virtual Class 'tilework'tilework-class
'token' Classtoken-class [,token,missing,missing,missing-method