help for rendering s57 file

المشرف العام

Administrator
طاقم الإدارة
I am working on a specific project based on QT 4.5 and QGis API C++ 2.8.2

I have a S57 File, I want to load it, and render it into a canvasMy canvas is created, the build and link is ok,no error, read file is good, but rendering notWhen I launch my application I can see the qDebug when reading each data of the s57 File layername and geometrytype.I suppose I forget something, can you tell me what ?I have no idea.so here is what I have written :

void CMyQgsS57::load(QString mFileName) { qDebug() subLayers(); QString layertype = lprovider->storageType(); QString uri = mypLayer->source(); for( int i = 0 ; i < sublayers.size() ; i++){ QString lNomCouche = sublayers.at( i ).split(":").at(1); QString lNomCarte = uri.split("/").last(); QString composedURI; composedURI = uri + "|layername=" + lNomCouche; if( mListLayerAdded.contains( lNomCouche ) || true ) { QgsVectorLayer *layer = new QgsVectorLayer( composedURI, lNomCouche, lprovider->name() ); qDebug()
 
أعلى