Salome HOME
ImportFromFile()
[modules/hydro.git] / src / HYDROData / HYDROData_CalculationCase.cxx
index 2b2cb691e5bee23e8a99022e5ca121c982c91734..fef44bd1741569f6fb7ffead13ba75e45e49d84e 100644 (file)
@@ -905,18 +905,18 @@ double HYDROData_CalculationCase::GetStricklerCoefficientForPoint( const gp_XY&
   return aCoeff;
 }
 
-bool HYDROData_CalculationCase::GetStricklerCoefficientForPoints(const std::vector<gp_Pnt2d>& thePoints,
-  std::vector<double>& theCoeffs, double DefValue, bool UseMax )
+std::vector<double> HYDROData_CalculationCase::GetStricklerCoefficientForPoints(const std::vector<gp_XY>& thePoints,
+  double DefValue, bool UseMax ) const
 {
-
   Handle( HYDROData_LandCoverMap ) aLCM = GetLandCoverMap();
   Handle( HYDROData_StricklerTable ) aTable = GetStricklerTable();
+  std::vector<double> theCoeffs;
   if( aLCM.IsNull() || aTable.IsNull() )
-    return false;
+    return theCoeffs;
 
   aLCM->ClassifyPoints(thePoints, aTable, theCoeffs, DefValue, UseMax );
 
-  return true;
+  return theCoeffs;
 }
 
 Handle(HYDROData_Region) HYDROData_CalculationCase::GetRegionFromPoint( const gp_XY& thePoint ) const