20 #include <QApplication>
28 : QDialog( parent, fl )
39 if ( theMessage.isEmpty() )
42 QString format(
"<h2>%1</h2>%2 %3" );
43 QString header = tr(
"Define this layer's coordinate reference system:" );
44 QString sentence1 = tr(
"This layer appears to have no projection specification." );
45 QString sentence2 = tr(
"By default, this layer will now have its projection set to that of the project, "
46 "but you may override this by selecting a different projection below." );
47 textEdit->setHtml( format.arg( header ).arg( sentence1 )
52 textEdit->setHtml( theMessage );
63 projectionSelector->setSelectedAuthId( QString(
"EPSG:%1" ).arg( theId ) );
68 projectionSelector->setSelectedCrsName( theName );
73 projectionSelector->setSelectedCrsId( theID );
78 projectionSelector->setSelectedAuthId( theID );
84 return projectionSelector->selectedProj4String();
90 return projectionSelector->selectedCrsId();
95 QString authid = projectionSelector->selectedAuthId();
96 if ( authid.startsWith(
"EPSG:", Qt::CaseInsensitive ) )
97 return authid.mid( 5 ).toLong();
104 return projectionSelector->selectedAuthId();
109 projectionSelector->setOgcWmsCrsFilter( crsFilter );