Package org.geotools.wcs.bindings
Class SpatialDomainTypeBinding
- Object
-
- AbstractComplexBinding
-
- SpatialDomainTypeBinding
-
- All Implemented Interfaces:
Binding
,ComplexBinding
public class SpatialDomainTypeBinding extends AbstractComplexBinding
Binding object for the type http://www.opengis.net/wcs:SpatialDomainType.<complexType name="SpatialDomainType"> <annotation> <documentation>Defines the spatial domain of a coverage offering. A server shall describe the spatial domain by its edges, using one or more gml:Envelope elements. The gml:EnvelopeWithTimePeriod element may be used in place of gml:Envelope, to add the time bounds of the coverage offering. Each of these elements describes a bounding box defined by two points in space (or two positions in space and two in time). This bounding box could simply duplicate the information in the lonLatEnvelope of CoverageOfferingBrief; but the intent is to describe the locations in more detail (e.g., in several different CRSs, or several rectangular areas instead of one overall bounding box). In addition, a server can describe the internal grid structure of a coverage offering, using a gml:Grid (or gml:RectifiedGrid) in addition to a gml:Envelope. This element can help clients assess the fitness of the gridded data for their use (e.g. its native resolution, inferred from the offsetVector of a gml:RectifiedGrid), and to formulate grid coverage requests expressed in the internal grid coordinate reference system. Finally, a server can describe the spatial domain by means of a (repeatable) gml:Polygon, representing the polygon(s) covered by the coverage spatial domain. This is particularly useful for areas that are poorly approximated by a gml:Envelope (such as satellite image swaths, island groups, other non-convex areas). </documentation> </annotation> <sequence> <element maxOccurs="unbounded" ref="gml:Envelope"/> <element maxOccurs="unbounded" minOccurs="0" ref="gml:Grid"/> <element maxOccurs="unbounded" minOccurs="0" ref="gml:Polygon"/> </sequence> </complexType>
-
-
Constructor Summary
Constructors Constructor Description SpatialDomainTypeBinding()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getExecutionMode()
This implementation returnsBinding.OVERRIDE
.QName
getTarget()
Class
getType()
Object
parse(ElementInstance instance, Node node, Object value)
-
Methods inherited from class AbstractComplexBinding
encode, getProperties, getProperty, initialize, initializeChildContext
-
-
-
-
Method Detail
-
getTarget
public QName getTarget()
- Returns:
- The qualified name of the target for the binding.
-
getType
public Class getType()
- Returns:
- The java type this binding maps to.
-
parse
public Object parse(ElementInstance instance, Node node, Object value) throws Exception
- Specified by:
parse
in interfaceComplexBinding
- Overrides:
parse
in classAbstractComplexBinding
- Parameters:
instance
- The element being parsed.node
- The node in the parse tree representing the element being parsed.value
- The result of the parse from another strategy in the type hierarchy. Could be null if this is the first strategy being executed.- Returns:
- The parsed object, or null if the component could not be parsed.
- Throws:
Exception
- Strategy objects should not attempt to handle any exceptions.
-
getExecutionMode
public int getExecutionMode()
Description copied from class:AbstractComplexBinding
This implementation returnsBinding.OVERRIDE
.Subclasses should override to change this behaviour.
- Specified by:
getExecutionMode
in interfaceBinding
- Overrides:
getExecutionMode
in classAbstractComplexBinding
- Returns:
- The execution mode of the binding, one of the constants AFTER, BEFORE, or OVERRIDE.
- See Also:
Binding.AFTER
,Binding.BEFORE
,Binding.OVERRIDE
-
-