org.geotoolkit.metadata.iso.spatial
Class DefaultGridSpatialRepresentation

Object
  extended by AbstractMetadata
      extended by ModifiableMetadata
          extended by MetadataEntity
              extended by AbstractSpatialRepresentation
                  extended by DefaultGridSpatialRepresentation
All Implemented Interfaces:
Serializable, Cloneable, LenientComparable, IdentifiedObject, GridSpatialRepresentation, SpatialRepresentation
Direct Known Subclasses:
DefaultGeorectified, DefaultGeoreferenceable

@ThreadSafe
public class DefaultGridSpatialRepresentation
extends AbstractSpatialRepresentation
implements GridSpatialRepresentation

Basic information required to uniquely identify a resource or resources.

Since:
2.1
Version:
3.19
Author:
Martin Desruisseaux (IRD, Geomatys), Touraïvane (IRD), Cédric Briançon (Geomatys)
See Also:
Serialized Form
Module:
metadata/geotk-metadata (download)    View source code for this class

Field Summary
 
Fields inherited from class MetadataEntity
identifiers
 
Fields inherited from class AbstractMetadata
LOGGER
 
Constructor Summary
DefaultGridSpatialRepresentation()
          Constructs an initially empty grid spatial representation.
DefaultGridSpatialRepresentation(GridSpatialRepresentation source)
          Constructs a metadata entity initialized with the values from the specified metadata.
DefaultGridSpatialRepresentation(int numberOfDimensions, List<? extends Dimension> axisDimensionsProperties, CellGeometry cellGeometry, boolean transformationParameterAvailable)
          Creates a grid spatial representation initialized to the given values.
 
Method Summary
static DefaultGridSpatialRepresentation castOrCopy(GridSpatialRepresentation object)
          Returns a Geotk metadata implementation with the same values than the given arbitrary implementation.
 List<Dimension> getAxisDimensionProperties()
          Returns information about spatial-temporal axis properties.
 CellGeometry getCellGeometry()
          Returns the identification of grid data as point or cell.
 Integer getNumberOfDimensions()
          Returns the number of independent spatial-temporal axes.
 boolean isTransformationParameterAvailable()
          Returns indication of whether or not parameters for transformation exists.
 void setAxisDimensionProperties(List<? extends Dimension> newValues)
          Sets the information about spatial-temporal axis properties.
 void setCellGeometry(CellGeometry newValue)
          Sets identification of grid data as point or cell.
 void setNumberOfDimensions(Integer newValue)
          Sets the number of independent spatial-temporal axes.
 void setTransformationParameterAvailable(boolean newValue)
          Sets indication of whether or not parameters for transformation exists.
 
Methods inherited from class AbstractSpatialRepresentation
castOrCopy
 
Methods inherited from class MetadataEntity
getIdentifier, getIdentifierMap, getIdentifiers, getStandard
 
Methods inherited from class ModifiableMetadata
checkWritePermission, clone, collectionType, copyCollection, copyList, copySet, freeze, isModifiable, nonNullCollection, nonNullList, nonNullSet, prune, unmodifiable
 
Methods inherited from class AbstractMetadata
asMap, asTree, asTreeTable, equals, equals, getInterface, hashCode, isEmpty, parse, toString
 
Methods inherited from class Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultGridSpatialRepresentation

public DefaultGridSpatialRepresentation()
Constructs an initially empty grid spatial representation.


DefaultGridSpatialRepresentation

public DefaultGridSpatialRepresentation(GridSpatialRepresentation source)
Constructs a metadata entity initialized with the values from the specified metadata.

Parameters:
source -
Since:
2.4

DefaultGridSpatialRepresentation

public DefaultGridSpatialRepresentation(int numberOfDimensions,
                                        List<? extends Dimension> axisDimensionsProperties,
                                        CellGeometry cellGeometry,
                                        boolean transformationParameterAvailable)
Creates a grid spatial representation initialized to the given values. This is a convenience constructor. The argument types don't need to match exactly the types expected by getters and setters.

Parameters:
numberOfDimensions - The number of independent spatial-temporal axes.
axisDimensionsProperties - Information about spatial-temporal axis properties.
cellGeometry - Identification of grid data as point or cell.
transformationParameterAvailable - Indication of whether or not parameters for transformation exists.
Method Detail

castOrCopy

public static DefaultGridSpatialRepresentation castOrCopy(GridSpatialRepresentation object)
Returns a Geotk metadata implementation with the same values than the given arbitrary implementation. If the given object is null, then this method returns null. Otherwise if the given object is already a Geotk implementation, then the given object is returned unchanged. Otherwise a new Geotk implementation is created and initialized to the attribute values of the given object, using a shallow copy operation (i.e. attributes are not cloned).

This method checks for the Georectified and Georeferenceable sub-interfaces. If one of those interfaces is found, then this method delegates to the corresponding castOrCopy static method. If the given object implements more than one of the above-cited interfaces, then the castOrCopy method to be used is unspecified.

Parameters:
object - The object to get as a Geotk implementation, or null if none.
Returns:
A Geotk implementation containing the values of the given object (may be the given object itself), or null if the argument was null.
Since:
3.18

getNumberOfDimensions

@ValueRange(minimum=0.0)
public Integer getNumberOfDimensions()
Returns the number of independent spatial-temporal axes.

Specified by:
getNumberOfDimensions in interface GridSpatialRepresentation

setNumberOfDimensions

public void setNumberOfDimensions(Integer newValue)
Sets the number of independent spatial-temporal axes.

Parameters:
newValue - The new number of dimension.

getAxisDimensionProperties

public List<Dimension> getAxisDimensionProperties()
Returns information about spatial-temporal axis properties.

Specified by:
getAxisDimensionProperties in interface GridSpatialRepresentation

setAxisDimensionProperties

public void setAxisDimensionProperties(List<? extends Dimension> newValues)
Sets the information about spatial-temporal axis properties.

Parameters:
newValues - The new axis dimension properties.

getCellGeometry

public CellGeometry getCellGeometry()
Returns the identification of grid data as point or cell.

Specified by:
getCellGeometry in interface GridSpatialRepresentation

setCellGeometry

public void setCellGeometry(CellGeometry newValue)
Sets identification of grid data as point or cell.

Parameters:
newValue - The new cell geometry.

isTransformationParameterAvailable

public boolean isTransformationParameterAvailable()
Returns indication of whether or not parameters for transformation exists.

Specified by:
isTransformationParameterAvailable in interface GridSpatialRepresentation

setTransformationParameterAvailable

public void setTransformationParameterAvailable(boolean newValue)
Sets indication of whether or not parameters for transformation exists.

Parameters:
newValue - true if the transformation parameters are available.


Copyright © 2009-2012 Geotoolkit.org. All Rights Reserved.