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 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.
|
Object |
getDynValue(String name)
Get the metadata value for the name
name . |
FeatureType |
getSourceFeatureTypeFrom(FeatureType targetFeatureType)
Returns the original store
FeatureType that replaces
targetFeatureType of this FeatureStoreTransform's |
boolean |
hasDynValue(String name)
Return true is the value
name has a value in the metadata
Overwrite this method to support that this transform overwrite the values
of the statore's metadata. |
void |
initialize(FeatureStore store,
String geometryFieldName,
String xFieldName,
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. |
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) |
clone, getDefaultFeatureType, getDescription, getFeatureStore, getFeatureTypes, getName, getSourceMetadata, setDynValue, setFeatureStore, setFeatureTypes, setSourceMetadata
public static final String PERSISTENCE_DEFINITION_NAME
public static int MAX_INI_FEATURES
public void initialize(FeatureStore store, String geometryFieldName, String xFieldName, 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.DataException
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.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 Object getDynValue(String name) throws DynFieldNotFoundException
AbstractFeatureStoreTransform
name
.
Overwrite this method to support that this transform overwrite the values
of the statore's metadata.getDynValue
in interface FeatureStoreTransform
getDynValue
in class AbstractFeatureStoreTransform
DynFieldNotFoundException
{#Metadata.getDynValue}
public boolean hasDynValue(String name)
AbstractFeatureStoreTransform
name has a value in the metadata
Overwrite this method to support that this transform overwrite the values
of the statore's metadata.
hasDynValue
in interface FeatureStoreTransform
hasDynValue
in class AbstractFeatureStoreTransform
{#Metadata.hasDynValue}