r.tileset.html 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <H2>DESCRIPTION</H2>
  2. <EM>r.tileset</EM> generates sets of tiles in another projection that cover a region in this projection with adequate resolution. By default the current region and its resolution are used, the bounds and resolution of another region can be used via the region option.
  3. <H2>NOTES</H2>
  4. <EM>r.tileset</EM> does not make "optimal" tilings (as few tiles of the largest size less than the maximums). This means that from latitude longitude projection to an appropriate projection for a region, in the degenerate case, it may create tiles demanding up to twice the necessary information. Furthermore, generating a tiling near a divergant point of a source projection, such as the poles of a cylindrical source projections, results in divergence of the tile set.
  5. <p>Not generating "optimal" tilings may have another consequence; the aspect ratio of cells in the destination region will not necessarily carry over to the source region and generated tiles may have cells of strange aspect ratios. This might be a problem for some map request services presenting data in an inappropriate projection or with strict constraints on cell aspect ratio.
  6. <H2>OUTPUT FORMAT</H2>
  7. Each tile is listed on a seperate line in the output. The lines are formatted as follows:
  8. <dl>
  9. <dt>
  10. <span class="code"><tt>
  11. 5|125|45|175|80|100
  12. </tt></span>
  13. <dd>
  14. This is the default output format. It is the tile's minimum x coordinate, minimum y coordinate, maximum x coordinate, maximum y coordinate, width in cells, and height in cells seperated by the "|" character. The fields can be seperated by a different character by changing the fs option.
  15. <p>
  16. <dt>
  17. <span class="code"><tt>
  18. w=5;s=125;e=45;n=175;cols=80;rows=100;
  19. </tt></span>
  20. <dd>
  21. This is output in a format convinent for setting variables in a shell script.
  22. <p>
  23. <dt>
  24. <span class="code"><tt>
  25. bbox=5,125,45,175&amp;width=80&amp;height=100
  26. </tt></span>
  27. <dd>
  28. This is output in a format convinent for requesting data from some http services.
  29. <p>
  30. </dl>
  31. <H2>EXAMPLES</H2>
  32. <dl>
  33. <dt>
  34. <span class="code"><tt>
  35. r.tileset sourceproj=+init=epsg:4326 maxrows=1024 maxcols=2048
  36. </tt></span>
  37. <dd> Generates tiles in latitude longitude that cover the current region, each tile will be less than 1024 cells high and 2048 cells across. The bounds and sizes of tiles in the output are seperated by |
  38. <p>
  39. <dt>
  40. <span class="code"><tt>
  41. r.tileset sourceproj=+init=epsg:4326 overlap=2 -w region=ne-rio
  42. </tt></span>
  43. <dd>Generates tiles in latitude longitude projection that cover the named region "ne-rio". The tiles will have 2 cells of overlap. The output format will be strings like the bbox requests for WMS servers.
  44. <p>
  45. <dt>
  46. <span class="code"><tt>
  47. r.tileset sourceproj=`g.proj -j location=IrishGrid` maxrows=400 maxcols=300 overlap=3 -g
  48. </tt></span>
  49. <dd>Generates tiles in the projection of the location "IrishGrid". Each tile will be less than 300x400 cells in size, with 3 cells of overlap in the top and right sides of each tile. The output is in a format where each line is in shell script style. The substitution <code>`g.proj -j location=IrishGrid`</code> will only work in a unix style shell.
  50. </dl>
  51. <H2>REQUIRED PROGRAMS</H2>
  52. <EM>r.tileset</EM> requires the following programs to work:
  53. <dl>
  54. <dt>cs2cs
  55. <dd>The coordinate system transformation program from Proj4.
  56. <dt>bc
  57. <dd>A calculator program
  58. <dt>sed, grep
  59. <dd>Unix string processing and search programs
  60. </dl>
  61. <H2>BUGS</H2>
  62. <ul>
  63. <li><EM>r.tileset</EM> does not know about meridians that "wrap-around" in projections.
  64. </ul>
  65. <H2>AUTHORS</H2>
  66. Cedric Shock
  67. <p><i>Last changed: $Date$</i>