...
Code Block | ||
---|---|---|
| ||
@Override protected void handleFeature( IProgressMonitor monitor ) throws ScriptExecutionException{ resultMap.put( "soiltype", isSoftSoil() ); } /** * Generate a number between 0 and 5 (exclusive) * 0 - Soil Type A * 1 - Soil Type B * 2 - Soil Type C * 3 - Soil Type D * 4 - Soil Type E * @return Soil Type */ private int isSoftSoil() { Random rand = new Random(); return rand.nextInt( 15 ); } |
Analysis Result Type
The next step is to create a result type schema to specify the new fields created by our analysis. This tutorial will not go into detail about the schema file since it is behind the scope of this tutorial.
...