Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Each Analysis MUST implement a class which extends ncsa.analysis.maeviz.ogrescript.tasks.core.SimpleFeatureTask or ncsa.analysis.maeviz.ogrescript.tasks.core.SimpleFeatureCollectionTask. If the Task class generate more then one feature, the later class must be used. In the future a choice of base class based on the specific implementation required will be available.

...

Code Block
protected abstract void preProcess() throws ScriptExecutionException;
    protected abstract void handleFeature( IProgressMonitor monitor ) throws ScriptExecutionException;

...

Code Block
resultMap.put( COL_LS_SLIGHT, dmg[0] );
resultMap.put( COL_LS_MODERATE, dmg[1] );

Note: if the class extends SimpleFeatureCollectionTask, the member, resultMapList which is a LinkedList of resultMap, must be used to store the result of each feature in feature colleciton.

As a best practice, add public final static constants for each column in the Feature. These column names MUST match the fields as defined in the gisSchema for the created dataset.

...