Package org.geotools.ows.wms.xml
Class Dimension
Object
Dimension
Property class for holding and handling of property values declared in Dimension-element of a layer. In WMS 1.3.0
this is expanded to include Extent information documenting the valid data values for this range.
http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd:
<!-- The Dimension element declares the _existence_ of a dimension. -->
<!ELEMENT Dimension EMPTY >
<!ATTLIST Dimension
name CDATA #REQUIRED
units CDATA #REQUIRED
unitSymbol CDATA #IMPLIED>
http://schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xsd:
<element name="Dimension">
<complexType>
<simpleContent>
<extension base="string">
<attribute name="name" type="string" use="required"/>
<attribute name="units" type="string" use="required"/>
<attribute name="unitSymbol" type="string"/>
<attribute name="default" type="string"/>
<attribute name="multipleValues" type="boolean"/>
<attribute name="nearestValue" type="boolean"/>
<attribute name="current" type="boolean"/>
</extension>
</simpleContent>
</complexType>
</element>
According to OpenGIS Web Map Service WMS Implementation Specification - C.2 Declaring dimensions and their allowed value (page 52), the 'units' attribute must not be missing, but its value is allowed to be empty:
If the dimensional quantity has no units (e.g. band number in a multi-wavelength sensor), use the null string: units="".
- Author:
- Per Engstrom, Curalia AB, pereng@gmail.com
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()
getUnits()
boolean
void
setCurrent
(boolean current) void
void
void
void
setUnitSymbol
(String unitSymbol) toString()
-
Field Details
-
name
This name is often used as a lookup key -
units
Must not be missing, but can be empty according to WMS spec 1.3, page 52 -
unitSymbol
-
current
protected boolean current -
extent
Optional Extent as supplied by WMS 1.3.0
-
-
Constructor Details
-
Dimension
-
Dimension
-
-
Method Details