Handle(HYDROData_LandCoverMap) aMap =
Handle(HYDROData_LandCoverMap)::DownCast( aDoc->CreateObject( KIND_LAND_COVER_MAP ) );
+ QStringList types = aTable->GetTypes();
+ //foreach( QString type, types )
+ // std::cout << type.toStdString() << std::endl;
+
+ QString type7 = types[7];
+ QString type8 = types[8];
+ QString type9 = types[9];
+
TopoDS_Face aLC1 = Face2d( QList<double>() << 12 << 19 << 82 << 9 << 126 << 53 << 107 << 80 << 29 << 75 );
- CPPUNIT_ASSERT_EQUAL( true, aMap->LocalPartition( aLC1, QString::fromLatin1("Forêt et végétation arbustive en mutation")) );
+ CPPUNIT_ASSERT_EQUAL( true, aMap->LocalPartition( aLC1, type7 ) );
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::fromLatin1("Forêts de conifères")) );
+ CPPUNIT_ASSERT_EQUAL( true, aMap->LocalPartition( aLC2, type8 ) );
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::fromLatin1("Forêts de feuillus")) );
+ CPPUNIT_ASSERT_EQUAL( true, aMap->LocalPartition( aLC3, type9 ) );
QString aTmpFileName = "test.telemac";
QString aTmpPath = QDir::tempPath() + "/" + aTmpFileName;