Context-based features are now working

This commit is contained in:
Daniel Girardeau-Montaut
2018-12-15 20:40:58 +01:00
parent ed33d0003a
commit 5dba8e4dee
7 changed files with 421 additions and 112 deletions
+8 -1
View File
@@ -30,6 +30,13 @@ bool NeighborhoodFeature::checkValidity(QString &error) const
return false;
}
if (type == Invalid)
{
assert(false);
error = "invalid feature type";
return false;
}
if (stat != Feature::NO_STAT)
{
error = "Neighborhood features shouldn't be associated to a STAT measure";
@@ -77,7 +84,7 @@ bool NeighborhoodFeature::prepare( const CorePoints& corePoints,
sf1 = PrepareSF(corePoints.cloud, qPrintable(resultSFName));
if (!sf1)
{
error = QString("Failed to prepare scalar %1 @ scale %2").arg(cloud1Label).arg(scale);
error = QString("Failed to prepare scalar %1 @ scale %2").arg(resultSFName).arg(scale);
return false;
}
sourceName = sf1->getName();