org.geotools.metadata.iso.identification
Class ResolutionImpl

java.lang.Object
  extended byorg.geotools.metadata.iso.MetadataEntity
      extended byorg.geotools.metadata.iso.identification.ResolutionImpl
All Implemented Interfaces:
java.lang.Cloneable, org.opengis.metadata.identification.Resolution, java.io.Serializable

public class ResolutionImpl
extends MetadataEntity
implements org.opengis.metadata.identification.Resolution

Level of detail expressed as a scale factor or a ground distance.

Since:
2.1
Version:
$Id: ResolutionImpl.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Martin Desruisseaux, Toura?vane
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.geotools.metadata.iso.MetadataEntity
LOGGER
 
Constructor Summary
ResolutionImpl()
          Constructs an initially empty Resolution.
 
Method Summary
 boolean equals(java.lang.Object object)
          Compares this Resolution with the specified object for equality.
protected  void freeze()
          Declares this metadata and all its attributes as unmodifiable.
 double getDistance()
          Ground sample distance.
 double getEquivalentScale()
          Level of detail expressed as the scale of a comparable hardcopy map or chart.
 int hashCode()
          Returns a hash code value for this resolution.
 void setDistance(double newValue)
          Set the ground sample distance.
 void setEquivalentScale(double newValue)
          Set the level of detail expressed as the scale of a comparable hardcopy map or chart.
 java.lang.String toString()
          Returns a string representation of this resolution.
 
Methods inherited from class org.geotools.metadata.iso.MetadataEntity
appendLineSeparator, checkWritePermission, copyCollection, isModifiable, nonNullCollection, unmodifiable, unmodifiable
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResolutionImpl

public ResolutionImpl()
Constructs an initially empty Resolution.

Method Detail

getEquivalentScale

public double getEquivalentScale()
Level of detail expressed as the scale of a comparable hardcopy map or chart. This value should be between 0 and 1. Only one of equivalent scale and ground sample distance may be provided.

Specified by:
getEquivalentScale in interface org.opengis.metadata.identification.Resolution

setEquivalentScale

public void setEquivalentScale(double newValue)
Set the level of detail expressed as the scale of a comparable hardcopy map or chart.


getDistance

public double getDistance()
Ground sample distance. Only one of equivalent scale and ground sample distance may be provided.

Specified by:
getDistance in interface org.opengis.metadata.identification.Resolution

setDistance

public void setDistance(double newValue)
Set the ground sample distance.


freeze

protected void freeze()
Declares this metadata and all its attributes as unmodifiable.

Overrides:
freeze in class MetadataEntity

equals

public boolean equals(java.lang.Object object)
Compares this Resolution with the specified object for equality.


hashCode

public int hashCode()
Returns a hash code value for this resolution.


toString

public java.lang.String toString()
Returns a string representation of this resolution.



Copyright © GeoTools. All Rights Reserved.