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
FieldsModifier and TypeFieldDescriptionstatic intMax number of features used for initial estimation of extent.static final StringFields inherited from class org.gvsig.fmap.dal.feature.AbstractFeatureStoreTransform
ABSTRACT_FEATURESTORE_DYNCLASS_NAME, descripcion, METADATA_DEFINITION_NAME, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTransform(org.gvsig.fmap.dal.feature.Feature source, org.gvsig.fmap.dal.feature.EditableFeature target) getDynValue(String name) org.gvsig.fmap.dal.feature.FeatureTypegetSourceFeatureTypeFrom(org.gvsig.fmap.dal.feature.FeatureType targetFeatureType) booleanhasDynValue(String name) booleanvoidloadFromState(org.gvsig.tools.persistence.PersistentState state) static voidvoidsaveToState(org.gvsig.tools.persistence.PersistentState state) voidsetEnvelope(org.gvsig.fmap.geom.primitive.Envelope env) voidsetUp()voidsetValues(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 theFeatureTypereturned 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
-
Field Details
-
PERSISTENCE_DEFINITION_NAME
- See Also:
-
MAX_INI_FEATURES
public static int MAX_INI_FEATURESMax 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 theFeatureTypereturned 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
- 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:
isTransformsOriginalValuesin interfaceorg.gvsig.fmap.dal.feature.FeatureStoreTransform- Overrides:
isTransformsOriginalValuesin classorg.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:
saveToStatein interfaceorg.gvsig.tools.persistence.Persistent- Overrides:
saveToStatein classorg.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:
loadFromStatein interfaceorg.gvsig.tools.persistence.Persistent- Overrides:
loadFromStatein classorg.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:
getDynValuein interfaceorg.gvsig.fmap.dal.feature.FeatureStoreTransform- Overrides:
getDynValuein classorg.gvsig.fmap.dal.feature.AbstractFeatureStoreTransform- Throws:
org.gvsig.tools.dynobject.exception.DynFieldNotFoundException
-
hasDynValue
- Specified by:
hasDynValuein interfaceorg.gvsig.fmap.dal.feature.FeatureStoreTransform- Overrides:
hasDynValuein classorg.gvsig.fmap.dal.feature.AbstractFeatureStoreTransform
-