Class SpatialDomainTypeBinding

  extended by AbstractComplexBinding
      extended by SpatialDomainTypeBinding
All Implemented Interfaces:
Binding, ComplexBinding

public class SpatialDomainTypeBinding
extends AbstractComplexBinding

Binding object for the type

  <complexType name="SpatialDomainType">
          <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>
          <element maxOccurs="unbounded" ref="gml:Envelope"/>
          <element maxOccurs="unbounded" minOccurs="0" ref="gml:Grid"/>
          <element maxOccurs="unbounded" minOccurs="0" ref="gml:Polygon"/>

Field Summary
Fields inherited from interface Binding
Constructor Summary
Method Summary
 int getExecutionMode()
          This implementation returns Binding.OVERRIDE.
 QName getTarget()
 Class getType()
 Object parse(ElementInstance instance, Node node, Object value)
Methods inherited from class AbstractComplexBinding
encode, getProperties, getProperties, getProperty, initialize, initializeChildContext
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public SpatialDomainTypeBinding()
Method Detail


public QName getTarget()
The qualified name of the target for the binding.


public Class getType()

The java type this binding maps to.


public Object parse(ElementInstance instance,
                    Node node,
                    Object value)
             throws Exception

Specified by:
parse in interface ComplexBinding
parse in class AbstractComplexBinding
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.
The parsed object, or null if the component could not be parsed.
Exception - Strategy objects should not attempt to handle any exceptions.


public int getExecutionMode()
Description copied from class: AbstractComplexBinding
This implementation returns Binding.OVERRIDE.

Subclasses should override to change this behaviour.

Specified by:
getExecutionMode in interface Binding
getExecutionMode in class AbstractComplexBinding
The execution mode of the binding, one of the constants AFTER, BEFORE, or OVERRIDE.
See Also:
Binding.AFTER, Binding.BEFORE, Binding.OVERRIDE

Copyright © 1996-2014 Geotools. All Rights Reserved.