Salome HOME
porting on linux
[modules/hydro.git] / src / HYDROData / HYDROData_LandCoverMap.cxx
index f709b378cf92bca158f93bea3d210d1001d1ad29..c582b16fcc4143a2842f97b97fa89f57f3de270b 100644 (file)
@@ -1259,13 +1259,13 @@ void HYDROData_LandCoverMap::UpdateLocalCS( double theDx, double theDy )
   SetShape( aLocatedShape );
 }
 
-void HYDROData_LandCoverMap::ClassifyPoints( const std::vector<gp_Pnt2d>& thePoints, std::vector<std::set <QString> >& theTypes ) const
+void HYDROData_LandCoverMap::ClassifyPoints( const std::vector<gp_XY>& thePoints, std::vector<std::set <QString> >& theTypes ) const
 {
   HYDROData_LCM_FaceClassifier FC(this);
   FC.Classify(thePoints, theTypes, NULL);
 }
 
-void HYDROData_LandCoverMap::ClassifyPoints( const std::vector<gp_Pnt2d>& thePoints,  
+void HYDROData_LandCoverMap::ClassifyPoints( const std::vector<gp_XY>& thePoints,  
   Handle(HYDROData_StricklerTable) theTable, 
   std::vector<double>& theCoeffs, double DefValue, bool UseMax ) const
 {
@@ -1286,9 +1286,9 @@ void HYDROData_LandCoverMap::ClassifyPoints( const std::vector<gp_Pnt2d>& thePoi
         C1.push_back(theTable->Get( *it, DefValue ));
       double Val;
       if (UseMax)
-        Val = *(std::max_element(std::begin(C1), std::end(C1)));
+        Val = *(std::max_element( C1.begin(), C1.end() ) );
       else
-        Val = *(std::min_element(std::begin(C1), std::end(C1)));
+        Val = *(std::min_element( C1.begin(), C1.end() ) );
       theCoeffs[i] = Val;
     }
   }