README 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. Graphical index images
  2. ======================
  3. General
  4. -------
  5. Clipped part from grass_structure.png with Locations, Mapsets and data
  6. types.
  7. Alternative (can be also alternative for display):
  8. g.region n=224940 s=224590 w=638450 e=638840
  9. d.shade shade=elevation_shade color=elevation # opacity 90%
  10. d.vect map=firestations color=45:107:168 fill_color=30:144:255 width=2 icon=basic/circle size=15
  11. d.vect map=schools color=208:208:0 fill_color=yellow width=2 icon=basic/triangle size=15
  12. d.vect map=hospitals color=136:0:0 fill_color=213:21:21 width=2 icon=basic/box size=15
  13. Raster
  14. ------
  15. d.rast.num -a -f map=elevation grid_color=179:179:179 precision=0
  16. Vector
  17. ------
  18. g.region n=224940 s=224590 w=638450 e=638840
  19. v.buffer input="streams" layer="-1" output="streams_buffer" distance=20
  20. d.vect map=census color=142:142:0 fill_color=255:255:167 width=2
  21. d.vect map=streams_buffer color=11:185:11 fill_color=11:185:11 width=1
  22. d.vect map=streams color=30:144:255 width=4
  23. Database
  24. --------
  25. streams attributes screenshot
  26. DIR="../trunk-commands/doc/"
  27. for FILE in *.png; do convert $FILE -resize 200x200 $DIR/`basename -s .png $FILE`.jpg; done;
  28. Display
  29. -------
  30. g.region n=226640 s=222860 w=631260 e=637170
  31. d.rast map=elevation_shade
  32. d.rast map=lakes
  33. d.vect map=schools color=16:70:123 fill_color=30:144:255 width=1 icon=basic/triangle size=10
  34. d.vect map=roadsmajor color=255:151:38 width=4
  35. d.vect map=roadsmajor color=255:172:82 width=2
  36. GUI
  37. ---
  38. * Ubuntu 14.04 with Unity
  39. * landclass, roadsmajor, elevation
  40. * query map dialog active
  41. * Search modules tab active (with open subtrees)
  42. Imagery
  43. -------
  44. # this takes some time, perhaps the region below would be enough
  45. g.region -p raster=ortho_2001_t792_1m
  46. i.group group=ortho_group input=ortho_2001_t792_1m
  47. i.segment group=ortho_group output=ortho_segs_final threshold=0.25 min=10
  48. g.region n=221100 s=219700 w=638616 e=639316 -p
  49. d.mon start=cairo output=gi_imagery.png width=500 height=500
  50. d.frame left -c at=0,100,0,50d.rast ortho_2001_t792_1m
  51. d.rast ortho_2001_t792_1m
  52. d.frame right -c at=0,100,50,100
  53. d.rast ortho_segs_final
  54. d.mon stop=cairo
  55. Temporal
  56. --------
  57. Done in GUI.
  58. g.region raster=landuse
  59. r.mapcalc "a1 = 10"
  60. r.mapcalc "a2 = 20"
  61. r.mapcalc "a3 = 30"
  62. r.mapcalc "a4 = 40"
  63. m.nviz.image elevation_map=a1,a2,a3,a4 mode=fine,fine,fine,fine resolution_fine=1,6,1,1 resolution_coarse=9,9,9,9 shading=gouraud,gouraud,gouraud,gouraud style=surface,surface,surface,surface wire_color=136:136:136,136:136:136,136:136:136,136:136:136 color_map=landuse,landuse,landuse,landuse \
  64. position=0.03,0.31 height=92 perspective=36 twist=-99 zexag=200.000000 focus=1071,9393,30 \
  65. light_position=-0.57,0.75,0.80 light_brightness=80 light_ambient=20 light_color=255:255:255 \
  66. output=nviz_output format=ppm size=872,586
  67. Miscellaneous
  68. -------------
  69. Taken from d.rhumbline.