public class EventThemeTransform extends 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 |
ABSTRACT_FEATURESTORE_DYNCLASS_NAME, descripcion, METADATA_DEFINITION_NAME, name
Constructor and Description |
---|
EventThemeTransform() |
Modifier and Type | Method and Description |
---|---|
void |
applyTransform(Feature source,
EditableFeature target)
Applies this transform between two features, copying the source data to
the target feature.
|
java.lang.Object |
getDynValue(java.lang.String name) |
FeatureType |
getSourceFeatureTypeFrom(FeatureType targetFeatureType)
Returns the original store
FeatureType that replaces
targetFeatureType of this FeatureStoreTransform's |
boolean |
hasDynValue(java.lang.String name) |
boolean |
isTransformsOriginalValues()
Retruns true if this make changes of any attributes values or false if
only
FeatureType definitions is changed. |
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
static void |
registerPersistent() |
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setEnvelope(Envelope env) |
void |
setUp()
This method must perform the necessary actions to set up the transformation.
|
void |
setValues(FeatureStore store,
java.lang.String geometryFieldName,
java.lang.String xFieldName,
java.lang.String yFieldName,
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, setSourceMetadata
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cloneQuietly, cloneQuietly
public static final java.lang.String PERSISTENCE_DEFINITION_NAME
public static int MAX_INI_FEATURES
public void setValues(FeatureStore store, java.lang.String geometryFieldName, java.lang.String xFieldName, java.lang.String yFieldName, IProjection projection) throws 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
- DataException
public void setUp() throws java.lang.Exception
FeatureStoreTransform
java.lang.Exception
public void setEnvelope(Envelope env)
public void applyTransform(Feature source, EditableFeature target) throws DataException
FeatureStoreTransform
source
- feature whose data will be used as sourcetarget
- feature in which the source data will be copiedDataException
public FeatureType getSourceFeatureTypeFrom(FeatureType targetFeatureType)
FeatureStoreTransform
FeatureType
that replaces
targetFeatureType of this FeatureStoreTransform'sFeatureType
public boolean isTransformsOriginalValues()
FeatureStoreTransform
FeatureType
definitions is changed.isTransformsOriginalValues
in interface FeatureStoreTransform
isTransformsOriginalValues
in class AbstractFeatureStoreTransform
FeatureStoreTransforms#isTransformsOriginalValues()}
public static void registerPersistent()
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
saveToState
in class AbstractFeatureStoreTransform
PersistenceException
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
loadFromState
in class AbstractFeatureStoreTransform
PersistenceException
public java.lang.Object getDynValue(java.lang.String name) throws DynFieldNotFoundException
getDynValue
in interface FeatureStoreTransform
getDynValue
in class AbstractFeatureStoreTransform
DynFieldNotFoundException
public boolean hasDynValue(java.lang.String name)
hasDynValue
in interface FeatureStoreTransform
hasDynValue
in class AbstractFeatureStoreTransform