Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
filereference:fileformat [2014/01/16 21:45] – [ENVI-met Markup Language EML: General concept] enviadmin | filereference:fileformat [2014/03/28 23:11] – enviadmin |
---|
</code> | </code> |
| |
== Remark for ''color'' codes == | |
Color codes like in this example are always stored in RGB data. To understand the concept, the decimal value needs to be converted into a hexadecimal value. In hexadecimal, the colors are coded ''$RRGGBB'' where ''RR'', ''GG'' and ''BB'' are the intensities for the red, green and blue component of the color. Each intensity ranges from ''$00'' (not present) to ''$FF'' (full presence). For example ''$00FF00'' is a full red and in decimal this would be '#65280' like in the example above which gives no clue which color this might be. | |
| |
| |
| |
=== ''matrix-data'' Tags === | === ''matrix-data'' Tags === |
**Modified:** | |
| |
''Matrix-data'' tags hold a comma-seperated set of 2D data. It is similar to the original ENVI-met Matrix-Format but has some important changes: | ''Matrix-data'' tags hold a comma-seperated set of 2D data. It is similar to the original ENVI-met Matrix-Format but has some important changes: |
<code XML> | <code XML> |
<buildings> | <buildings> |
<z-top type="matrix-data" X="40" Y="40"> | <zTop type="matrix-data" dataI="15" dataJ="15"> |
(Example missing) | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 |
</z-top> | 0,20,20,0,0,0,0,0,0,0,0,0,20,20,0 |
| (...) |
| </zTop> |
</buildings> | </buildings> |
</code> | </code> |
| |
The ''matrix-data'' tag allows the definition of a 2D element matrix in the EML file. The attribute required are: | The ''matrix-data'' tag allows the definition of a 2D element matrix in the EML file. The attribute required are: |
* rows: Number of rows following in the matrix | * dataI: Number of elements in each row (=one x-row) |
* colums: Number of columns in the matrix | * dataJ: Number of rows to come (=number of y-elements) |
| |
| No line-breaks are alowed within one row of data. |
| |
No line-breaks are alowed within one row of data. | |
| **Note:** |
| Valid only for PREVIEW applications: This item has been changed. Previous, the dimensions tags have been "columns" ans "rows" but due to missleading interpretation hve been changed. |
| A test was included in the reader routines allowing old file to be read, but only new format are written. |
| |
=== ''spare-matrix-3D'' Tags === | === ''spare-matrix-3D'' Tags === |
| |
These kind of tags only work with items that have explicit defined number of subitems to follow. They will only be interpeted correctly with programs understanding the meaning of such a comma-seperated list. In standard XML, this //collection// would have been splitted into 19 sub-items, one for each soil layer. Each of these sub-items would have its own opening and closing tag. For ENVI-met this was considered as an overkill. Therefor the Multi-Item tags have been introduced. | These kind of tags only work with items that have explicit defined number of subitems to follow. They will only be interpeted correctly with programs understanding the meaning of such a comma-seperated list. In standard XML, this //collection// would have been splitted into 19 sub-items, one for each soil layer. Each of these sub-items would have its own opening and closing tag. For ENVI-met this was considered as an overkill. Therefor the Multi-Item tags have been introduced. |
| |
| |
| === Color encoding === |
| Color codes like in the example above are always stored in plain RGB data. To understand the concept, the decimal value needs to be converted into a hexadecimal value. In hexadecimal, the colors are coded ''$RRGGBB'' where ''RR'', ''GG'' and ''BB'' are the intensities for the red, green and blue component of the color. Each intensity ranges from ''$00'' (not present) to ''$FF'' (full presence). For example ''$00FF00'' is a full red and in decimal this would be '#65280' like in the example above which gives no clue which color this might be. |
| |
| |
| |