Class EventThemeTransform

java.lang.Object
org.gvsig.fmap.dal.feature.AbstractFeatureStoreTransform
org.gvsig.app.eventtheme.dal.feature.EventThemeTransform
All Implemented Interfaces:
Cloneable, org.gvsig.fmap.dal.feature.FeatureStoreTransform, org.gvsig.tools.lang.Cloneable, org.gvsig.tools.persistence.Persistent

public class EventThemeTransform extends org.gvsig.fmap.dal.feature.AbstractFeatureStoreTransform
This class implements a transformation for a events theme. The original DataStore have to have a couple of attributes, one with the X coordinate and the second one with the Y coordinate. The result of the transformation is a DataStore that has a new geometric attribute and its value is a point with the coordinates specified in the original DataStore.
Author:
Jorge Piera
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static int
    Max number of features used for initial estimation of extent.
    static final String
     

    Fields inherited from class org.gvsig.fmap.dal.feature.AbstractFeatureStoreTransform

    ABSTRACT_FEATURESTORE_DYNCLASS_NAME, descripcion, METADATA_DEFINITION_NAME, name
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    applyTransform(org.gvsig.fmap.dal.feature.Feature source, org.gvsig.fmap.dal.feature.EditableFeature target)
     
     
    org.gvsig.fmap.dal.feature.FeatureType
    getSourceFeatureTypeFrom(org.gvsig.fmap.dal.feature.FeatureType targetFeatureType)
     
    boolean
     
    boolean
     
    void
    loadFromState(org.gvsig.tools.persistence.PersistentState state)
     
    static void
     
    void
    saveToState(org.gvsig.tools.persistence.PersistentState state)
     
    void
    setEnvelope(org.gvsig.fmap.geom.primitive.Envelope env)
     
    void
     
    void
    setValues(org.gvsig.fmap.dal.feature.FeatureStore store, String geometryFieldName, String xFieldName, String yFieldName, org.gvsig.crs.projection.lib.Projection projection)
    This method initializes the transformation, sets the name of the parameters and sets the value of the FeatureType returned by the transformation.

    Methods inherited from class org.gvsig.fmap.dal.feature.AbstractFeatureStoreTransform

    apply, clone, getDefaultFeatureType, getDescription, getFeatureStore, getFeatureTypes, getName, getSourceMetadata, revoke, setDynValue, setFeatureStore, setFeatureTypes, setSourceMetadata

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • PERSISTENCE_DEFINITION_NAME

      public static final String PERSISTENCE_DEFINITION_NAME
      See Also:
    • MAX_INI_FEATURES

      public static int MAX_INI_FEATURES
      Max number of features used for initial estimation of extent. Many other features will be ignored simply with "iter.next()"
  • Constructor Details

    • EventThemeTransform

      public EventThemeTransform()
  • Method Details

    • setValues

      public void setValues(org.gvsig.fmap.dal.feature.FeatureStore store, String geometryFieldName, String xFieldName, String yFieldName, org.gvsig.crs.projection.lib.Projection projection) throws org.gvsig.fmap.dal.exception.DataException
      This method initializes the transformation, sets the name of the parameters and sets the value of the FeatureType returned by the transformation.
      Parameters:
      store - The original store.
      geometryFieldName - The field that contains the geometric attribute.
      xFieldName - The field that contains the X coordinate.
      yFieldName - The field that contains the Y coordinate.
      projection -
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • setUp

      public void setUp() throws Exception
      Throws:
      Exception
    • setEnvelope

      public void setEnvelope(org.gvsig.fmap.geom.primitive.Envelope env)
    • applyTransform

      public void applyTransform(org.gvsig.fmap.dal.feature.Feature source, org.gvsig.fmap.dal.feature.EditableFeature target) throws org.gvsig.fmap.dal.exception.DataException
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • getSourceFeatureTypeFrom

      public org.gvsig.fmap.dal.feature.FeatureType getSourceFeatureTypeFrom(org.gvsig.fmap.dal.feature.FeatureType targetFeatureType)
    • isTransformsOriginalValues

      public boolean isTransformsOriginalValues()
      Specified by:
      isTransformsOriginalValues in interface org.gvsig.fmap.dal.feature.FeatureStoreTransform
      Overrides:
      isTransformsOriginalValues in class org.gvsig.fmap.dal.feature.AbstractFeatureStoreTransform
    • registerPersistent

      public static void registerPersistent()
    • saveToState

      public void saveToState(org.gvsig.tools.persistence.PersistentState state) throws org.gvsig.tools.persistence.exception.PersistenceException
      Specified by:
      saveToState in interface org.gvsig.tools.persistence.Persistent
      Overrides:
      saveToState in class org.gvsig.fmap.dal.feature.AbstractFeatureStoreTransform
      Throws:
      org.gvsig.tools.persistence.exception.PersistenceException
    • loadFromState

      public void loadFromState(org.gvsig.tools.persistence.PersistentState state) throws org.gvsig.tools.persistence.exception.PersistenceException
      Specified by:
      loadFromState in interface org.gvsig.tools.persistence.Persistent
      Overrides:
      loadFromState in class org.gvsig.fmap.dal.feature.AbstractFeatureStoreTransform
      Throws:
      org.gvsig.tools.persistence.exception.PersistenceException
    • getDynValue

      public Object getDynValue(String name) throws org.gvsig.tools.dynobject.exception.DynFieldNotFoundException
      Specified by:
      getDynValue in interface org.gvsig.fmap.dal.feature.FeatureStoreTransform
      Overrides:
      getDynValue in class org.gvsig.fmap.dal.feature.AbstractFeatureStoreTransform
      Throws:
      org.gvsig.tools.dynobject.exception.DynFieldNotFoundException
    • hasDynValue

      public boolean hasDynValue(String name)
      Specified by:
      hasDynValue in interface org.gvsig.fmap.dal.feature.FeatureStoreTransform
      Overrides:
      hasDynValue in class org.gvsig.fmap.dal.feature.AbstractFeatureStoreTransform