- Messages
- 1,588
- Country
Ah, good eye. I corrected but still get the following error at the detection step:
11:07 AM SceneryProcessor Error System.IO.InvalidDataException: Unexpected image type Emgu.CV.Image`2[Emgu.CV.Structure.Gray,System.Byte]
at ASToFra.scenProc.Steps.DetectFeatures.Process(List`1 cells, String[] arguments)
at ASToFra.scenProc.Processor.SceneryProcessor.Process()
at ASToFra.scenProc.Processor.SceneryProcessor.ProcessConfig(String filename, List`1 commands)
For Method 1, here is a screenshot:
The following steps were used for the above results:
ImportGDAL|B:\CA\Section_74\Images\CA_BS32_DEM.tif|*|NOREPROJ|String;CENTER|elev
ImportGDAL|B:\CA\Section_74\Images\CA_BS32.tif|*|NOREPROJ|String;type|image
ProcessElevationRaster|type="elev"|SLOPE|String;type|slope
SplitGrid|LOD13|*
DetectFeatures|type="image"|B:\CA\Section_74\_Control Data\CA_Section_74_TFE_Water.tf2|String;WatType|water|NONE
AddAttributeSampleRaster|type="water"|type="slope"|CENTER|slope
# Unload all features where the slope is above a certain threshold
UnloadFeatures|slope_0>1
MergeGrid
ExportOGR|WatType="water"AND FAREA>200|ESRI Shapefile|B:\CA\Section_74\Masks Water Tests\CA_BS32_WM_CENT_1_200.shp|water
It almost appears at the Unload step, anything greater than 1% is retained, not removed... the opposite? As you can see those slopes are way greater than 1%.
11:07 AM SceneryProcessor Error System.IO.InvalidDataException: Unexpected image type Emgu.CV.Image`2[Emgu.CV.Structure.Gray,System.Byte]
at ASToFra.scenProc.Steps.DetectFeatures.Process(List`1 cells, String[] arguments)
at ASToFra.scenProc.Processor.SceneryProcessor.Process()
at ASToFra.scenProc.Processor.SceneryProcessor.ProcessConfig(String filename, List`1 commands)
For Method 1, here is a screenshot:
The following steps were used for the above results:
ImportGDAL|B:\CA\Section_74\Images\CA_BS32_DEM.tif|*|NOREPROJ|String;CENTER|elev
ImportGDAL|B:\CA\Section_74\Images\CA_BS32.tif|*|NOREPROJ|String;type|image
ProcessElevationRaster|type="elev"|SLOPE|String;type|slope
SplitGrid|LOD13|*
DetectFeatures|type="image"|B:\CA\Section_74\_Control Data\CA_Section_74_TFE_Water.tf2|String;WatType|water|NONE
AddAttributeSampleRaster|type="water"|type="slope"|CENTER|slope
# Unload all features where the slope is above a certain threshold
UnloadFeatures|slope_0>1
MergeGrid
ExportOGR|WatType="water"AND FAREA>200|ESRI Shapefile|B:\CA\Section_74\Masks Water Tests\CA_BS32_WM_CENT_1_200.shp|water
It almost appears at the Unload step, anything greater than 1% is retained, not removed... the opposite? As you can see those slopes are way greater than 1%.
Last edited: