public class EventThemeTransform
extends org.gvsig.fmap.dal.feature.AbstractFeatureStoreTransform
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.| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_INI_FEATURES
Max number of features used for initial estimation of extent.
|
static java.lang.String |
PERSISTENCE_DEFINITION_NAME |
| Constructor and Description |
|---|
EventThemeTransform() |
| Modifier and Type | Method and Description |
|---|---|
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) |
boolean |
isTransformsOriginalValues() |
void |
loadFromState(org.gvsig.tools.persistence.PersistentState state) |
static void |
registerPersistent() |
void |
saveToState(org.gvsig.tools.persistence.PersistentState state) |
void |
setEnvelope(org.gvsig.fmap.geom.primitive.Envelope env) |
void |
setUp() |
void |
setValues(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. |
apply, clone, getDefaultFeatureType, getDescription, getFeatureStore, getFeatureTypes, getName, getSourceMetadata, revoke, setDynValue, setFeatureStore, setFeatureTypes, setSourceMetadatapublic static int MAX_INI_FEATURES
public static final java.lang.String PERSISTENCE_DEFINITION_NAME
public void applyTransform(org.gvsig.fmap.dal.feature.Feature source,
org.gvsig.fmap.dal.feature.EditableFeature target)
throws org.gvsig.fmap.dal.exception.DataException
org.gvsig.fmap.dal.exception.DataExceptionpublic java.lang.Object getDynValue(java.lang.String name)
throws org.gvsig.tools.dynobject.exception.DynFieldNotFoundException
getDynValue in interface org.gvsig.fmap.dal.feature.FeatureStoreTransformgetDynValue in class org.gvsig.fmap.dal.feature.AbstractFeatureStoreTransformorg.gvsig.tools.dynobject.exception.DynFieldNotFoundExceptionpublic org.gvsig.fmap.dal.feature.FeatureType getSourceFeatureTypeFrom(org.gvsig.fmap.dal.feature.FeatureType targetFeatureType)
public boolean hasDynValue(java.lang.String name)
hasDynValue in interface org.gvsig.fmap.dal.feature.FeatureStoreTransformhasDynValue in class org.gvsig.fmap.dal.feature.AbstractFeatureStoreTransformpublic boolean isTransformsOriginalValues()
isTransformsOriginalValues in interface org.gvsig.fmap.dal.feature.FeatureStoreTransformisTransformsOriginalValues in class org.gvsig.fmap.dal.feature.AbstractFeatureStoreTransformpublic void loadFromState(org.gvsig.tools.persistence.PersistentState state)
throws org.gvsig.tools.persistence.exception.PersistenceException
loadFromState in interface org.gvsig.tools.persistence.PersistentloadFromState in class org.gvsig.fmap.dal.feature.AbstractFeatureStoreTransformorg.gvsig.tools.persistence.exception.PersistenceExceptionpublic static void registerPersistent()
public void saveToState(org.gvsig.tools.persistence.PersistentState state)
throws org.gvsig.tools.persistence.exception.PersistenceException
saveToState in interface org.gvsig.tools.persistence.PersistentsaveToState in class org.gvsig.fmap.dal.feature.AbstractFeatureStoreTransformorg.gvsig.tools.persistence.exception.PersistenceExceptionpublic void setEnvelope(org.gvsig.fmap.geom.primitive.Envelope env)
public void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void setValues(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
FeatureType returned by the
transformation.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 - org.gvsig.fmap.dal.exception.DataExceptionCopyright © 2025 gvSIG Association. All rights reserved.