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 );
//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));
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");
//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();
}