genTile.Rd 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/genTile.R
  3. \name{genTile}
  4. \alias{genTile}
  5. \title{Generate Global Tiling System}
  6. \usage{
  7. genTile(tileSize = 1, offset = 0, StartNameFrom = c(0, 0),
  8. extent = list(xmin = -180, xmax = 180, ymin = -90, ymax = 90))
  9. }
  10. \arguments{
  11. \item{tileSize}{\code{numeric}, size of a single tile in degrees (EPSG:4326).}
  12. \item{offset}{\code{numeric}, shifts the tiling system in upper-left
  13. direction.}
  14. \item{StartNameFrom}{\code{numeric}. \code{c(Lat-Direction,Lon-Direction)}
  15. start number in the naming of the tiles.}
  16. \item{extent}{\code{list}. Tile system extent information, basically the
  17. coverage of the data on server.}
  18. }
  19. \value{
  20. A \code{matrix}.
  21. }
  22. \description{
  23. This function generates a matrix with bounding box information for a
  24. global tiling system (based on Lat/Lon).
  25. }
  26. \examples{
  27. # 1x1 degree tiling system
  28. e1 <- genTile()
  29. head(e1)
  30. # 10x10 degree tiling system with offset to be aligned to Geoland2 Dataset
  31. e2 <- genTile(tileSize = 10, offset = (1/112) / 2)
  32. head(e2)
  33. # Tiling system for SRTMv4 data (CGIAR-CSI)
  34. e3 <- genTile(tileSize = 5, StartNameFrom = c(1, 1),
  35. extent = list(xmin = -180, xmax = 180, ymin = -60,ymax = 60))
  36. head(e3)
  37. }
  38. \seealso{
  39. \code{\link{getTile}}.
  40. }
  41. \author{
  42. Matteo Mattiuzzi
  43. }