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, setSourceMetadataequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloneQuietly, cloneQuietlypublic 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 - DataExceptionpublic void setUp()
throws java.lang.Exception
FeatureStoreTransformjava.lang.Exceptionpublic void setEnvelope(Envelope env)
public void applyTransform(Feature source, EditableFeature target) throws DataException
FeatureStoreTransformsource - feature whose data will be used as sourcetarget - feature in which the source data will be copiedDataExceptionpublic FeatureType getSourceFeatureTypeFrom(FeatureType targetFeatureType)
FeatureStoreTransformFeatureType that replaces
targetFeatureType of this FeatureStoreTransform'sFeatureTypepublic boolean isTransformsOriginalValues()
FeatureStoreTransformFeatureType definitions is changed.isTransformsOriginalValues in interface FeatureStoreTransformisTransformsOriginalValues in class AbstractFeatureStoreTransformFeatureStoreTransforms#isTransformsOriginalValues()}public static void registerPersistent()
public void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentsaveToState in class AbstractFeatureStoreTransformPersistenceExceptionpublic void loadFromState(PersistentState state) throws PersistenceException
PersistentloadFromState in interface PersistentloadFromState in class AbstractFeatureStoreTransformPersistenceExceptionpublic java.lang.Object getDynValue(java.lang.String name)
throws DynFieldNotFoundException
getDynValue in interface FeatureStoreTransformgetDynValue in class AbstractFeatureStoreTransformDynFieldNotFoundExceptionpublic boolean hasDynValue(java.lang.String name)
hasDynValue in interface FeatureStoreTransformhasDynValue in class AbstractFeatureStoreTransform