LCC XML Document Values Element - USEPA/ATtILA2 GitHub Wiki

Values Element

Basic structure of ATtILA's Land Cover Classification schema XML document: Values element

<values>
	<value Id="" Name="" excluded="">
		<coefficient Id="" value="" />
	</value>
</values>

The Values element defines the set of values that can exist in a land cover raster. This element is required by ATtILA to parse the XML document, but it can be empty (i.e., it does not have to contain any <value> elements). Value elements are only necessary in two cases:

  1. if the user wants to exclude the area occupied by a given grid value when determining a reporting unit's effective area (e.g., basing metric calculations on the land area in a reporting unit vs. the total area of the reporting unit), or
  2. if the user is planning to calculate any metrics with the Land Cover Coefficient Calculator. In this case <value> elements should be added where coefficient weights are known (e.g., the nitrogen loading coefficient for a particular agriculture type).

NOTE: Although values are not necessary in the XML document, if one is using the LCC Editor to construct an LCC XML document, you will be required to have value elements defined in order to assign values to a class element (see Classes Element).

If any <value> element is provided, it must have the Id attribute. The attributes, Name and excluded, are allowed, but are not necessary. Properties for the <value> element attributes are:

  • Id - integer
  • Name - text (optional, can be the empty string, "")
  • excluded - boolean (optional, "true" or "false" or "1" or "0")

Example Values element with two <value> elements:

<values> 
    <value Id="11" Name="Open Water" excluded="true" />
	<value Id="41" Name="Deciduous Forest" />
</values>

Id Attribute

Id is an integer value representing a grid code that may be found in a land cover raster. Values included in the LCC XML document can span the range of expected values of a particular land cover dataset (e.g., NLCD, C-CAP, MULC), but all of the values provided in the document do not have to exist in the actual land cover layer. This is often the case when a national-level land cover coding schema is selected by the user, but the input land cover raster has been clipped to a regional study area.

A potentially more important issue is when all the values located in a land cover raster are not accounted for in the LCC XML document. ATtILA will examine all of the values provided in the LCC XML document from both the Values section of the document and those provided in the Classes Element section and compare them to those found in the land cover raster. Any values in the grid not found in the LCC XML document will be reported to the user with a warning message in the tool's View Details box and the Geoprocessing > History window. The user can then determine if the reported values were accidentally omitted from the LCC XML document or incorrectly recorded. A report of missing values may also indicate that the wrong LCC Schema was selected for the input raster layer, or that the wrong raster layer was input for the selected LCC Schema.

Name Attribute (optional)

Name is a text string of any length used to supply a more detailed description of the grid code and/or provide other useful information regarding the value. The Name attribute may be an empty string (e.g., Name="").

excluded Attribute (optional)

The attribute, excluded, is used to identify grid codes whose area is to be excluded from the reporting unit's effective area calculation. Effective area can be thought of as the area of interest within a reporting unit that the user wishes to use for percentage based metric calculations. For example, the user may be interested in basing their metric calculations on just the land area in a reporting unit versus the overall total area of the reporting unit. To make the effective area equal to that of the land area, the user would set the excluded attribute of any water related grid value to "true".

The default setting for the excluded attribute is excluded="false" (i.e., if no excluded attribute is provided in the <value> element, the area associated with that grid value is not excluded from the reporting unit's effective area calculation). When all excluded attributes are tagged as 'false', the effective area is equal to the total overall area of the reporting unit.

CAUTION: any value tagged as excluded = "true", should not be used in any <class> element definition within the LCC XML document. The <class> element is discussed in the Classes Element section.


Value Elements with Coefficient Elements

A Value element can also contain one or more Coefficient elements. These Coefficient elements are optional unless the user is planning on generating metrics using the Land Cover Coefficient Calculator tool. See the caution note below for more specifics on when <coefficient> elements must be supplied. If any <coefficient> element is provided, it needs to contain the following attributes:

  • Id - text (Either 'NITROGEN', 'PHOSPHORUS', or 'IMPERVIOUS').
  • value - decimal

Example Values element with one <value> element with two <coefficient> elements:

<coefficients>
	<coefficient Id="NITROGEN" Name="Estimated Nitrogen Loading Based on Land Cover" apField="A" fieldName="N_Load" />
	<coefficient Id="PHOSPHORUS" Name="Estimated Phosphorus Loading Based on Land Cover" apField="" fieldName="P_Load" />
</coefficients>

<values>
	<value Id="41" Name="Deciduous Forest">
		<coefficient Id="NITROGEN" value="2.447" />
		<coefficient Id="PHOSPHORUS" value="0.089" />
	</value>
</values>

Coefficient Element: Id Attribute

Id is a text string used to reference a <coefficient> element within the LCC XML document's Coefficients Element section. This text string needs to match the Id attribute for that <coefficient> element exactly. At present, the text string for this attribute is restricted to equal either 'NITROGEN', 'PHOSPHORUS', or 'IMPERVIOUS'. In future releases of ATtILA, we plan to allow the user to use any string for the this element's Id attribute as long as it matches an Id attribute found in a corresponding <coefficient> element. See the discussion on the attribute, method, in Coefficients Element for more details on this.

Coefficient Element: value Attribute

The attribute value is a decimal number representing the coefficient weighting factor assigned to a land cover/land use type. Values for NITROGEN and PHOSPHOROUS should be given in kg per hectare per year. Values for IMPERVIOUS should represent percentages.

CAUTION: For any coefficient-based metric the user selects to calculate when running the Land Cover Coefficient Calculator tool, that coefficient <element> must be present in all of the <value> elements provided in the <values> element. Not all values in the input land cover raster need to be accounted for in the LCC XML document when using the Land Cover Coefficient Calculator tool, but if a value is included, its <value> element must contain the corresponding <coefficient> element for the desired metric.

XML Note>

  • XML is case-sensitive and care should be used when editing the LCC XML documents using a text editor. Wherever possible, element and attribute names for the document have been defined using lowercase characters. The only current exceptions are the attributes "Id" and "Name" in the Coefficients, Values, and Classes elements. If editing an LCC XML document outside of the Land Cover Classification Editor, these attributes should be capitalized wherever they appear.

  • You may notice that in the Metadata element, the <name> element is lowercase. The distinction here is that "name" in the Metadata element pertains to an element, and that the capitalization rule only applies to an element's attributes.


arrow_up Top of the page     |     arrow_left Coefficients Element     |     arrow_right Classes Element


⚠️ **GitHub.com Fallback** ⚠️