Salome HOME
debug of DTM object
[modules/hydro.git] / src / HYDRO_tests / test_HYDROData_LandCoverMap.cxx
index 94b63b91910ee6dc19432b2ef43b823271260b83..895a52b601a3cc7bd619854a5a3cd6ab4c55ab03 100644 (file)
@@ -148,7 +148,7 @@ void test_HYDROData_LandCoverMap::test_incomplete_split()
   TopoDS_Wire aWire = Wire( QList<double>() << 10 << 40 << 30 << 10 << 40 << 10, false );
   aPolyline->SetShape( aWire );
 
-  CPPUNIT_ASSERT_EQUAL( true, aMap->Split( aPolyline ) );
+  CPPUNIT_ASSERT_EQUAL( false, aMap->Split( aPolyline ) );
 
   TestViewer::show( aMap->GetShape(), AIS_Shaded, true, "LandCoverMap_Split_2" );
   TestViewer::show( aWire, 0, true, Qt::green );
@@ -904,14 +904,13 @@ void test_HYDROData_LandCoverMap::test_shp_loop_back()
 
   //This test verify only some geom data (shp+shx) without any dbf reading/writing 
   {
-    DEBTRACE("aFFileName: " << aFFileName.toStdString());
-    DEBTRACE("aSFileName: " << aSFileName.toStdString());
+    //DEBTRACE("aFFileName: " << aFFileName.toStdString());
+    //DEBTRACE("aSFileName: " << aSFileName.toStdString());
     Handle(HYDROData_Document) aDoc = HYDROData_Document::Document(1);
     HYDROData_ShapeFile anImporter;
     QStringList PolygonList;
     TopTools_SequenceOfShape PolygonFaces;
     int Type = -1;
-    DEBTRACE("---");
 
     //import LCM from file (#2-4; #12-14 polygons)
     CPPUNIT_ASSERT( anImporter.ImportPolygons(aDoc, aFFileName, PolygonList, PolygonFaces, Type));
@@ -924,7 +923,6 @@ void test_HYDROData_LandCoverMap::test_shp_loop_back()
     aMapFace2ST.Add( TopoDS::Face( PolygonFaces(12) ), "" );
     aMapFace2ST.Add( TopoDS::Face( PolygonFaces(13) ), "" );
     aMapFace2ST.Add( TopoDS::Face( PolygonFaces(14) ), "" );
-    DEBTRACE("---");
 
     LCM->StoreLandCovers(aMapFace2ST);
     LCM->SetName("lcm_1");
@@ -936,9 +934,8 @@ void test_HYDROData_LandCoverMap::test_shp_loop_back()
     //export lcm
     HYDROData_ShapeFile anExporter;
     QStringList aNonExpList;
-    anExporter.Export(aSFileName, LCM, aNonExpList);
+    anExporter.Export(aDoc, aSFileName, LCM, aNonExpList);
     CPPUNIT_ASSERT (aNonExpList.empty());
-    DEBTRACE("---");
 
     aDoc->Close();
   }