+ CPPUNIT_ASSERT_EQUAL (coeffs[3], 98.0);
+ CPPUNIT_ASSERT_EQUAL (coeffs[4], 26.0);
+ CPPUNIT_ASSERT_EQUAL (coeffs[5], 24.0);
+ CPPUNIT_ASSERT_EQUAL (coeffs[6], 98.0);
+
+}
+
+void test_HYDROData_LandCoverMap::test_lcm_classification()
+{
+ Handle(HYDROData_Document) aDoc = HYDROData_Document::Document(1);
+
+ Handle(HYDROData_StricklerTable) aTable =
+ Handle(HYDROData_StricklerTable)::DownCast( aDoc->CreateObject( KIND_STRICKLER_TABLE ) );
+ CPPUNIT_ASSERT_EQUAL( true, aTable->Import( DEF_STR_PATH ) );
+
+ Handle(HYDROData_PolylineXY) ContourP = Handle(HYDROData_PolylineXY)::DownCast( aDoc->CreateObject( KIND_POLYLINEXY ) );
+ ContourP->SetName( "Contour" );
+ ContourP->AddSection( "Section_1", HYDROData_PolylineXY::SECTION_POLYLINE, true );
+ ContourP->AddPoint( 0, gp_XY( 89.57, 81.63 ) );
+ ContourP->AddPoint( 0, gp_XY( 479.59, 81.63 ) );
+ ContourP->AddPoint( 0, gp_XY( 472.79, 671.20 ) );
+ ContourP->AddPoint( 0, gp_XY( 69.16, 696.15 ) );
+ ContourP->Update();
+
+ Handle(HYDROData_PolylineXY) Poly_Sens_TrigoP =
+ Handle(HYDROData_PolylineXY)::DownCast( aDoc->CreateObject( KIND_POLYLINEXY ) );
+ Poly_Sens_TrigoP->SetName( "Poly_Sens_Trigo" );
+ Poly_Sens_TrigoP->SetZLevel( 3 );
+ Poly_Sens_TrigoP->AddSection( "Section_1", HYDROData_PolylineXY::SECTION_POLYLINE, 1 );
+ Poly_Sens_TrigoP->AddPoint( 0, gp_XY( 130.46, 223.57 ) );
+ Poly_Sens_TrigoP->AddPoint( 0, gp_XY( 252.16, 239.58 ) );
+ Poly_Sens_TrigoP->AddPoint( 0, gp_XY( 240.95, 498.99 ) );
+ Poly_Sens_TrigoP->AddPoint( 0, gp_XY( 119.26, 510.20 ) );
+ Poly_Sens_TrigoP->AddPoint( 0, gp_XY( 141.67, 378.89 ) );
+ Poly_Sens_TrigoP->Update();
+
+ Handle(HYDROData_PolylineXY) Polyline_Sens_HoraireP =
+ Handle(HYDROData_PolylineXY)::DownCast( aDoc->CreateObject( KIND_POLYLINEXY ) );
+ Polyline_Sens_HoraireP->SetName( "Polyline_Sens_Horaire" );
+ Polyline_Sens_HoraireP->SetZLevel( 4 );
+ Polyline_Sens_HoraireP->AddSection( "Section_1", HYDROData_PolylineXY::SECTION_POLYLINE, 1 );
+ Polyline_Sens_HoraireP->AddPoint( 0, gp_XY( 313.01, 470.16 ) );
+ Polyline_Sens_HoraireP->AddPoint( 0, gp_XY( 313.01, 627.09 ) );
+ Polyline_Sens_HoraireP->AddPoint( 0, gp_XY( 426.70, 633.49 ) );
+ Polyline_Sens_HoraireP->AddPoint( 0, gp_XY( 442.71, 398.11 ) );
+ Polyline_Sens_HoraireP->Update();
+