org.gvsig.app.eventtheme.dal.feature
Class EventThemeTransform
java.lang.Object
org.gvsig.fmap.dal.feature.AbstractFeatureStoreTransform
org.gvsig.app.eventtheme.dal.feature.EventThemeTransform
- All Implemented Interfaces:
- java.lang.Cloneable, org.gvsig.fmap.dal.feature.FeatureStoreTransform, 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
| Fields inherited from class org.gvsig.fmap.dal.feature.AbstractFeatureStoreTransform |
ABSTRACT_FEATURESTORE_DYNCLASS_NAME, descripcion, METADATA_DEFINITION_NAME, name |
|
Method Summary |
void |
applyTransform(org.gvsig.fmap.dal.feature.Feature source,
org.gvsig.fmap.dal.feature.EditableFeature target)
|
java.lang.Object |
getDynValue(java.lang.String name)
|
org.gvsig.fmap.dal.feature.FeatureType |
getSourceFeatureTypeFrom(org.gvsig.fmap.dal.feature.FeatureType targetFeatureType)
|
boolean |
hasDynValue(java.lang.String name)
|
void |
initialize(org.gvsig.fmap.dal.feature.FeatureStore store,
java.lang.String geometryFieldName,
java.lang.String xFieldName,
java.lang.String yFieldName,
org.cresques.cts.IProjection projection)
This method initializes the transformation, sets the name of the parameters and
sets the value of the FeatureType returned by the transformation. |
boolean |
isTransformsOriginalValues()
|
void |
loadFromState(org.gvsig.tools.persistence.PersistentState state)
|
static void |
registerPersistent()
|
void |
saveToState(org.gvsig.tools.persistence.PersistentState state)
|
| Methods inherited from class org.gvsig.fmap.dal.feature.AbstractFeatureStoreTransform |
clone, getDefaultFeatureType, getDescription, getFeatureStore, getFeatureTypes, getName, getSourceMetadata, setDynValue, setFeatureStore, setFeatureTypes, setSourceMetadata |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PERSISTENCE_DEFINITION_NAME
public static final java.lang.String PERSISTENCE_DEFINITION_NAME
- See Also:
- Constant Field Values
EventThemeTransform
public EventThemeTransform()
initialize
public void initialize(org.gvsig.fmap.dal.feature.FeatureStore store,
java.lang.String geometryFieldName,
java.lang.String xFieldName,
java.lang.String yFieldName,
org.cresques.cts.IProjection 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.
- Throws:
org.gvsig.fmap.dal.exception.DataException
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()
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 java.lang.Object getDynValue(java.lang.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(java.lang.String name)
- Specified by:
hasDynValue in interface org.gvsig.fmap.dal.feature.FeatureStoreTransform- Overrides:
hasDynValue in class org.gvsig.fmap.dal.feature.AbstractFeatureStoreTransform
Copyright © 2004-2013 gvSIG. All Rights Reserved.