public class GDALWarpActor extends TypedAtomicActor
This actor provides projection capabilities provided through the GDAL GIS library. It attempts to find the projected file in the kepler file cache before doing the projection. If the file is found, the projection is not performed but the cached file is passed on. The file is cached by it's filename (minus the extension after the '.') and the output format so the cached result can be read from the cache with a tuple like {outputFilename.substring(0, outputFilename.lastIndexOf(".")), outputFormat}.
The parameters inputParams and outputParams must be of the form used when
passing values to the -s_srs and -t_srs params on the gdalwarp command line
See the gdalwarp docs for more info.
http://www.remotesensing.org/gdal/gdalwarp.html
Note that the 'cache options' parameter has a choice of 'no cache'. This option will not only not store files in the cache, but it will also ignore previously stored cache items. It can thus be used to force a new calculation even if the item was previousl cached (Dan Higgins)
Entity.ContainedObjectsIterator| Modifier and Type | Field and Description |
|---|---|
StringParameter |
cacheOutput
how to use the cache, if at all
|
TypedIOPort |
inputFilename
the filename of the input file
|
StringParameter |
inputParams
The -s_srs params from the command line.
|
TypedIOPort |
outputCachename |
TypedIOPort |
outputCacheType |
TypedIOPort |
outputFilename
the filename (cacheid) of the outputfile
|
Parameter |
outputFilenameTokenProductionRate
production rate param to handle the multiport input
|
StringParameter |
outputFormat
The format of the output file taken from the list provided by gdalwarp
--formats on the command line
|
StringParameter |
outputParams
the -t_srs params from the cammand line.
|
TypedIOPort |
trigger
trigger
|
_typesValid_actorFiringListeners, _initializables, _notifyingActorFiring, _stopRequested_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKSCOMPLETED, NOT_READY, STOP_ITERATING| Constructor and Description |
|---|
GDALWarpActor(CompositeEntity container,
java.lang.String name)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
connectionsChanged(Port port)
Notify this entity that the links to the specified port have been
altered.
|
void |
fire()
Fire
|
void |
initialize()
Initialize
|
boolean |
prefire()
Prefire
|
_containedTypeConstraints, _customTypeConstraints, _defaultTypeConstraints, _fireAt, _fireAt, attributeTypeChanged, clone, clone, isBackwardTypeInferenceEnabled, newPort, typeConstraintList, typeConstraints_actorFiring, _actorFiring, _declareDelayDependency, addActorFiringListener, addInitializable, createReceivers, declareDelayDependency, getCausalityInterface, getDirector, getExecutiveDirector, getManager, inputPortList, isFireFunctional, isStrict, iterate, newReceiver, outputPortList, postfire, preinitialize, pruneDependencies, recordFiring, removeActorFiringListener, removeDependency, removeInitializable, setContainer, stop, stopFire, terminate, wrapup_adjustDeferrals, _checkContainer, _getContainedObject, _propagateExistence, getContainer, instantiate, isAtomic, isOpaque, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, propagateExistence, setName_addPort, _description, _exportMoMLContents, _removePort, _validateSettables, connectedPortList, connectedPorts, containedObjectsIterator, getAttribute, getPort, getPorts, linkedRelationList, linkedRelations, portList, removeAllPorts, setClassDefinition, uniqueName_setParent, exportMoML, getChildren, getElementName, getParent, getPrototypeList, isClassDefinition, isWithinClassDefinition_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _containedDecorators, _copyChangeRequestList, _debug, _debug, _debug, _debug, _debug, _executeChangeRequests, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _notifyHierarchyListenersAfterChange, _notifyHierarchyListenersBeforeChange, _propagateValue, _removeAttribute, _splitName, _stripNumericSuffix, addChangeListener, addDebugListener, addHierarchyListener, attributeChanged, attributeDeleted, attributeList, attributeList, decorators, deepContains, depthInHierarchy, description, description, event, executeChangeRequests, exportMoML, exportMoML, exportMoML, exportMoML, exportMoMLPlain, getAttribute, getAttributes, getChangeListeners, getClassName, getDecoratorAttribute, getDecoratorAttributes, getDerivedLevel, getDerivedList, getDisplayName, getFullName, getModelErrorHandler, getName, getName, getSource, handleModelError, isDeferringChangeRequests, isOverridden, isPersistent, lazyContainedObjectsIterator, message, notifyOfNameChange, propagateValue, propagateValues, removeAttribute, removeChangeListener, removeDebugListener, removeHierarchyListener, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setDisplayName, setModelErrorHandler, setPersistent, setSource, sortContainedObjects, toplevel, toString, validateSettables, workspaceequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateReceivers, getCausalityInterface, getDirector, getExecutiveDirector, getManager, inputPortList, newReceiver, outputPortListisFireFunctional, isStrict, iterate, postfire, stop, stopFire, terminateaddInitializable, preinitialize, removeInitializable, wrapupdescription, getContainer, getDisplayName, getFullName, getName, getName, setNamegetDerivedLevel, getDerivedList, propagateValuepublic StringParameter inputParams
public StringParameter outputParams
public StringParameter outputFormat
public StringParameter cacheOutput
public TypedIOPort inputFilename
public TypedIOPort outputFilename
public TypedIOPort outputCachename
public TypedIOPort outputCacheType
public TypedIOPort trigger
public Parameter outputFilenameTokenProductionRate
public GDALWarpActor(CompositeEntity container, java.lang.String name) throws NameDuplicationException, IllegalActionException
public void connectionsChanged(Port port)
connectionsChanged in class AtomicActor<TypedIOPort>port - public void initialize() throws IllegalActionException
initialize in interface Initializableinitialize in class AtomicActor<TypedIOPort>IllegalActionException - If a derived class throws it.public boolean prefire() throws IllegalActionException
prefire in interface Executableprefire in class AtomicActor<TypedIOPort>IllegalActionException - Not thrown in this base class.public void fire() throws IllegalActionException
fire in interface Executablefire in class AtomicActor<TypedIOPort>IllegalActionException - Not thrown in this base class.