Package org.geotools.ows.wms.xml
Class Dimension
- Object
- 
- Dimension
 
- 
 public class Dimension extends Object 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 SummaryFields Modifier and Type Field Description protected booleancurrentprotected ExtentextentOptional Extent as supplied by WMS 1.3.0protected StringnameThis name is often used as a lookup keyprotected StringunitsMust not be missing, but can be empty according to WMS spec 1.3, page 52protected StringunitSymbol
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ExtentgetExtent()StringgetName()StringgetUnits()StringgetUnitSymbol()booleanisCurrent()voidsetCurrent(boolean current)voidsetExtent(Extent extent)voidsetName(String name)voidsetUnits(String units)voidsetUnitSymbol(String unitSymbol)StringtoString()
 
- 
- 
- 
Field Detail- 
nameprotected String name This name is often used as a lookup key
 - 
unitsprotected String units Must not be missing, but can be empty according to WMS spec 1.3, page 52
 - 
unitSymbolprotected String unitSymbol 
 - 
currentprotected boolean current 
 - 
extentprotected Extent extent Optional Extent as supplied by WMS 1.3.0
 
- 
 - 
Method Detail- 
getNamepublic String getName() 
 - 
setNamepublic void setName(String name) 
 - 
getUnitspublic String getUnits() 
 - 
setUnitspublic void setUnits(String units) 
 - 
getUnitSymbolpublic String getUnitSymbol() 
 - 
setUnitSymbolpublic void setUnitSymbol(String unitSymbol) 
 - 
isCurrentpublic boolean isCurrent() 
 - 
setCurrentpublic void setCurrent(boolean current) 
 - 
getExtentpublic Extent getExtent() 
 - 
setExtentpublic void setExtent(Extent extent) 
 
- 
 
-