grass-gxw.dtd 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  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 (session?, layer_manager?, display*)>
  12. <!ELEMENT session (database, location, mapset)>
  13. <!ELEMENT database (#PCDATA)>
  14. <!ELEMENT location (#PCDATA)>
  15. <!ELEMENT mapset (#PCDATA)>
  16. <!-- a layer_manager defines properties of Layer Manager
  17. GUI component
  18. element added 2008/04
  19. -->
  20. <!ELEMENT layer_manager (cwd?)>
  21. <!-- window dimenstion (x, y (ur), width, heigth -->
  22. <!ATTLIST layer_manager dim CDATA #IMPLIED>
  23. <!-- value of current working directory
  24. -->
  25. <!ELEMENT cwd (#PCDATA)>
  26. <!-- a display element defines map layer connected to given
  27. map display widnow
  28. render, mode and showCompExtent (added 2004/08)
  29. -->
  30. <!ELEMENT display (projection?, (group|layer)*, nviz_state?)>
  31. <!ATTLIST display render (0 | 1) #IMPLIED>
  32. <!ATTLIST display mode (0 | 1 | 2 | 3 | 4 | 5 | 6) #IMPLIED>
  33. <!ATTLIST display showCompExtent (0 | 1) #IMPLIED>
  34. <!ATTLIST display constrainRes (0 | 1) #IMPLIED>
  35. <!-- window dimenstion (x, y (ur), width, heigth -->
  36. <!ATTLIST display dim CDATA #IMPLIED>
  37. <!ATTLIST display extent CDATA #IMPLIED>
  38. <!ATTLIST display viewMode (2d | 3d) #IMPLIED>
  39. <!-- projection (statusbar coordinates)
  40. -->
  41. <!ELEMENT projection (value?)>
  42. <!ATTLIST projection epsg CDATA #IMPLIED>
  43. <!-- group of map layers
  44. -->
  45. <!ELEMENT group (layer*)>
  46. <!ATTLIST group name CDATA #REQUIRED>
  47. <!ATTLIST group checked (0 | 1) #REQUIRED>
  48. <!-- map layer
  49. -->
  50. <!ELEMENT layer (selected?, task?, nviz?)>
  51. <!ATTLIST layer type CDATA #REQUIRED>
  52. <!ATTLIST layer name CDATA #REQUIRED>
  53. <!ATTLIST layer checked (0 | 1) #REQUIRED>
  54. <!ATTLIST layer opacity CDATA #IMPLIED>
  55. <!-- task describes the interface of a single
  56. GRASS command.
  57. -->
  58. <!ELEMENT task (flag*, parameter*)>
  59. <!ATTLIST task name CDATA #REQUIRED>
  60. <!-- layer selected (added 2008/04)
  61. -->
  62. <!ELEMENT selected EMPTY>
  63. <!-- a parameter must have a name and a value
  64. -->
  65. <!ELEMENT parameter (value)>
  66. <!ATTLIST parameter name CDATA #REQUIRED>
  67. <!-- value of parameter
  68. -->
  69. <!ELEMENT value (#PCDATA)>
  70. <!-- enabled flag
  71. -->
  72. <!ELEMENT flag EMPTY>
  73. <!ATTLIST flag name CDATA #REQUIRED>
  74. <!-- *********************** Vector digitizer *********************** -->
  75. <!-- vdigit layer properties
  76. -->
  77. <!ELEMENT vdigit (geometryAttribute?)>
  78. <!-- geometry attribute parameter
  79. -->
  80. <!ELEMENT geometryAttribute EMPTY>
  81. <!ATTLIST parameter type (length | area | perimeter) #REQUIRED>
  82. <!ATTLIST parameter column CDATA #REQUIRED>
  83. <!ATTLIST parameter units CDATA #IMPLIED>
  84. <!-- *********************** Nviz *********************** -->
  85. <!-- nviz layer properties
  86. -->
  87. <!ELEMENT nviz (surface? | (vlines | vpoints)?)>
  88. <!-- nviz surface properties
  89. -->
  90. <!ELEMENT surface (attribute*, draw?, position?)>
  91. <!-- nviz surface attribute parameter
  92. -->
  93. <!ELEMENT attribute (value)>
  94. <!ATTLIST attribute name CDATA #REQUIRED>
  95. <!ATTLIST attribute map (0 | 1) #REQUIRED>
  96. <!-- nviz surface draw mode parameter
  97. -->
  98. <!ELEMENT draw (resolution*, wire-color?)>
  99. <!ATTLIST draw mode (coarse | fine | both) #IMPLIED>
  100. <!ATTLIST draw style (wire | surface) #IMPLIED>
  101. <!ATTLIST draw shading (gouraud | flat) #IMPLIED>
  102. <!-- nviz surface draw resolution
  103. -->
  104. <!ELEMENT resolution (value)>
  105. <!ATTLIST resolution type (fine | coarse) #IMPLIED>
  106. <!-- nviz surface wire color
  107. -->
  108. <!ELEMENT wire_color (value)>
  109. <!-- nviz surface position
  110. -->
  111. <!ELEMENT position (x, y, z)>
  112. <!-- nviz surface position coordinate
  113. -->
  114. <!ELEMENT x (#PCDATA)>
  115. <!ELEMENT y (#PCDATA)>
  116. <!ELEMENT z (#PCDATA)>
  117. <!-- nviz vector lines element
  118. -->
  119. <!ELEMENT vlines (color?, width?, mode?, height?)>
  120. <!-- nviz vector points element
  121. -->
  122. <!ELEMENT vpoints (color?, width?, mode?, height?, size?)>
  123. <!ATTLIST vpoints marker (x | box | sphere | cube | diamond | dtree | ctree | aster | gyro | histogram) #REQUIRED>
  124. <!-- nviz vector elements
  125. -->
  126. <!ELEMENT color (value)>
  127. <!ELEMENT width (value)>
  128. <!ELEMENT height (value)>
  129. <!ELEMENT mode (map*)>
  130. <!ELEMENT map (name, checked)>
  131. <!ELEMENT name (#PCDATA)>
  132. <!ELEMENT checked (0 | 1)>
  133. <!ATTLIST mode type (flat | surface) #REQUIRED>
  134. <!ELEMENT size (value)>
  135. <!-- nviz state properties
  136. -->
  137. <!ELEMENT nviz_state (view, light, constant_planes?)>
  138. <!-- nviz view position
  139. -->
  140. <!ELEMENT view (v_position, persp, v_height, twist, z-exag, focus, background_color)>
  141. <!ELEMENT v_position (x, y)>
  142. <!ELEMENT persp (value, step, min, max)>
  143. <!ELEMENT v_height (value, step, min, max)>
  144. <!ELEMENT twist (value, step, min, max)>
  145. <!ELEMENT z-exag (value, step, min, max)>
  146. <!ELEMENT focus (x, y, z)>
  147. <!ELEMENT background_color (value)>
  148. <!ELEMENT step (#PCDATA)>
  149. <!ELEMENT min (#PCDATA)>
  150. <!ELEMENT max (#PCDATA)>
  151. <!-- nviz light
  152. -->
  153. <!ELEMENT light (l_position, bright, ambient, color)>
  154. <!ELEMENT l_position (x, y, z)>
  155. <!ELEMENT bright (value)>
  156. <!ELEMENT ambien (value)>
  157. <!ELEMENT color (value)>
  158. <!-- nviz constant planes
  159. -->
  160. <!ELEMENT constant_planes (plane*)>
  161. <!ELEMENT plane (height, fine_resolution, color)>
  162. <!ELEMENT fine_resolution (#PCDATA)>