aDoc->Close();
}
-#include <QTest>
+
void test_HYDROData_LandCoverMap::test_shp_import_cyp()
{
//TestViewer::eraseAll(true);
Handle(HYDROData_LandCoverMap) LCM = Handle(HYDROData_LandCoverMap)::DownCast( aDoc->CreateObject( KIND_LAND_COVER_MAP ) );
HYDROData_MapOfFaceToStricklerType aMapFace2ST;
- for ( int i = 1; i <= PolygonFaces.Length(); i++ )
+ for ( int i = 1; i <= 20; i++ )
{
TopoDS_Shape aShape = PolygonFaces(i);
if ( aShape.IsNull() )
Handle(HYDROData_LandCoverMap) LCM = Handle(HYDROData_LandCoverMap)::DownCast( aDoc->CreateObject( KIND_LAND_COVER_MAP ) );
HYDROData_MapOfFaceToStricklerType aMapFace2ST;
- for ( int i = 150; i <= 350; i++ )
+ for ( int i = 150; i <= 160; i++ )
{
TopoDS_Shape aShape = PolygonFaces(i);
if ( aShape.IsNull() )
void test_HYDROData_LandCoverMap::test_export_telemac()
{
- return;
Handle(HYDROData_Document) aDoc = HYDROData_Document::Document(1);
Handle(HYDROData_StricklerTable) aTable =
Handle(HYDROData_LandCoverMap)::DownCast( aDoc->CreateObject( KIND_LAND_COVER_MAP ) );
TopoDS_Face aLC1 = Face2d( QList<double>() << 12 << 19 << 82 << 9 << 126 << 53 << 107 << 80 << 29 << 75 );
- CPPUNIT_ASSERT_EQUAL( true, aMap->LocalPartition( aLC1, QString::fromUtf8("Forêt et végétation arbustive en mutation")) );
+ CPPUNIT_ASSERT_EQUAL( true, aMap->LocalPartition( aLC1, QString::fromLatin1("Forêt et végétation arbustive en mutation")) );
TopoDS_Face aLC2 = Face2d( QList<double>() << 21 << 34 << 24 << 25 << 37 << 37 << 40 << 61 <<
44 << 95 << 85 << 100 << 104 << 66 << 107 << 33 <<
128 << 18 << 140 << 50 << 131 << 89 << 104 << 111 <<
31 << 114 );
- CPPUNIT_ASSERT_EQUAL( true, aMap->LocalPartition( aLC2, QString::fromUtf8("Forêts de conifères")) );
+ CPPUNIT_ASSERT_EQUAL( true, aMap->LocalPartition( aLC2, QString::fromLatin1("Forêts de conifères")) );
TopoDS_Face aLC3 = Face2d( QList<double>() << 4 << 54 << 1 << 47 << 51 << 45 <<
127 << 42 << 145 << 43 << 148 << 60 << 90 << 65 );
- CPPUNIT_ASSERT_EQUAL( true, aMap->LocalPartition( aLC3, QString::fromUtf8("Forêts de feuillus")) );
+ CPPUNIT_ASSERT_EQUAL( true, aMap->LocalPartition( aLC3, QString::fromLatin1("Forêts de feuillus")) );
QString aTmpFileName = "test.telemac";
QString aTmpPath = QDir::tempPath() + "/" + aTmpFileName;
#ifdef NDEBUG
int SI = 100;
- int EI = 300;
+ int EI = 110;
#else
- int SI = 150;
- int EI = 200;
+ int SI = 100;
+ int EI = 110;
#endif
for ( int i = SI; i <= EI; i++ )