grass-gxw.dtd 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <!-- grass-gxw.dtd
  2. Copyright (C) 2007-2008 by the GRASS Development Team
  3. Author: Martin Landa <landa.martin gmail.com>
  4. This program is free software under the GPL (>=v2)
  5. Read the file COPYING coming with GRASS for details.
  6. -->
  7. <!--
  8. a grass-gxw defines workspace file content
  9. -->
  10. <!ELEMENT grass-gxw (gxw)>
  11. <!ELEMENT gxw (layer_manager?, display*)>
  12. <!-- a layer_manager defines properties of Layer Manager
  13. GUI component
  14. element added 2008/04
  15. -->
  16. <!ELEMENT layer_manager ANY>
  17. <!-- window dimenstion (x, y (ur), width, heigth -->
  18. <!ATTLIST layer_manager dim CDATA #IMPLIED>
  19. <!-- a display element defines map layer connected to given
  20. map display widnow
  21. render, mode and showCompExtent (added 2004/08)
  22. -->
  23. <!ELEMENT display ((group|layer)*)>
  24. <!ATTLIST display render (0 | 1) #IMPLIED>
  25. <!ATTLIST display mode (0 | 1 | 2 | 3 | 4 | 5 | 6) #IMPLIED>
  26. <!ATTLIST display showCompExtent (0 | 1) #IMPLIED>
  27. <!-- window dimenstion (x, y (ur), width, heigth -->
  28. <!ATTLIST display dim CDATA #IMPLIED>
  29. <!-- group of map layers
  30. -->
  31. <!ELEMENT group (layer*)>
  32. <!ATTLIST group name CDATA #REQUIRED>
  33. <!ATTLIST group checked (0 | 1) #REQUIRED>
  34. <!-- map layer
  35. -->
  36. <!ELEMENT layer (selected?, task?, nviz?)>
  37. <!ATTLIST layer type CDATA #REQUIRED>
  38. <!ATTLIST layer name CDATA #REQUIRED>
  39. <!ATTLIST layer checked (0 | 1) #REQUIRED>
  40. <!ATTLIST layer opacity CDATA #IMPLIED>
  41. <!-- task describes the interface of a single
  42. GRASS command.
  43. -->
  44. <!ELEMENT task (flag*, parameter*)>
  45. <!ATTLIST task name CDATA #REQUIRED>
  46. <!-- layer selected (added 2008/04)
  47. -->
  48. <!ELEMENT selected EMPTY>
  49. <!-- a parameter must have a name and a value
  50. -->
  51. <!ELEMENT parameter (value)>
  52. <!ATTLIST parameter name CDATA #REQUIRED>
  53. <!-- value of parameter
  54. -->
  55. <!ELEMENT value (#PCDATA)>
  56. <!-- enabled flag
  57. -->
  58. <!ELEMENT flag EMPTY>
  59. <!ATTLIST flag name CDATA #REQUIRED>
  60. <!-- *********************** Nviz *********************** -->
  61. <!-- nviz layer properties
  62. -->
  63. <!ELEMENT nviz (surface? | (vlines | vpoints)?)>
  64. <!-- nviz surface properties
  65. -->
  66. <!ELEMENT surface (attribute*, draw?, position?)>
  67. <!-- nviz surface attribute parameter
  68. -->
  69. <!ELEMENT attribute (value)>
  70. <!ATTLIST attribute name CDATA #REQUIRED>
  71. <!ATTLIST attribute map (0 | 1) #REQUIRED>
  72. <!-- nviz surface draw mode parameter
  73. -->
  74. <!ELEMENT draw (resolution*, wire-color?)>
  75. <!ATTLIST draw mode (coarse | fine | both) #IMPLIED>
  76. <!ATTLIST draw style (wire | surface) #IMPLIED>
  77. <!ATTLIST draw shading (gouraud | flat) #IMPLIED>
  78. <!-- nviz surface draw resolution
  79. -->
  80. <!ELEMENT resolution (value)>
  81. <!-- nviz surface wire color
  82. -->
  83. <!ELEMENT wire_color (value)>
  84. <!-- nviz surface position
  85. -->
  86. <!ELEMENT position (x, y, z)>
  87. <!-- nviz surface position coordinate
  88. -->
  89. <!ELEMENT x (#PCDATA)>
  90. <!ELEMENT y (#PCDATA)>
  91. <!ELEMENT z (#PCDATA)>
  92. <!-- nviz vector lines element
  93. -->
  94. <!ELEMENT vlines (color?, width?, mode?, height?)>
  95. <!-- nviz vector points element
  96. -->
  97. <!ELEMENT vpoints (color?, width?, mode?, height?, size?)>
  98. <!ATTLIST vpoints marker (x | box | sphere | cube | diamond | dtree | ctree | aster | gyro | histogram) #REQUIRED>
  99. <!-- nviz vector elements
  100. -->
  101. <!ELEMENT color (value)>
  102. <!ELEMENT width (value)>
  103. <!ELEMENT height (value)>
  104. <!ELEMENT mode (map?)>
  105. <!ATTLIST mode type (flat | surface) #REQUIRED>
  106. <!ELEMENT size (value)>