Skip to content

Commit e7a68ba

Browse files
author
homann
committedSep 18, 2008
Do not ask for EPSG ID, it is not in custom projections anyway.
git-svn-id: http://svn.osgeo.org/qgis/trunk@9348 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent e47f314 commit e7a68ba

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎src/gui/qgsprojectionselector.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ void QgsProjectionSelector::loadUserCrsList( QSet<QString> * crsFilter )
529529
}
530530

531531
// Set up the query to retrieve the projection information needed to populate the list
532-
QString mySql = "select description, srs_id, epsg, is_geo, name, parameters from vw_srs ";
532+
QString mySql = "select description, srs_id from vw_srs ";
533533
mySql += "where ";
534534
mySql += sqlFilter;
535535

@@ -541,8 +541,10 @@ void QgsProjectionSelector::loadUserCrsList( QSet<QString> * crsFilter )
541541
while ( sqlite3_step( myPreparedStatement ) == SQLITE_ROW )
542542
{
543543
newItem = new QTreeWidgetItem( mUserProjList, QStringList( QString::fromUtf8(( char * )sqlite3_column_text( myPreparedStatement, 0 ) ) ) );
544+
// EPSG for user projections is not always defined in some dbases.
545+
// It's also not written from customprojections dialog.
544546
// display the epsg (field 2) in the second column of the list view
545-
newItem->setText( EPSG_COLUMN, QString::fromUtf8(( char * )sqlite3_column_text( myPreparedStatement, 2 ) ) );
547+
// newItem->setText( EPSG_COLUMN, QString::fromUtf8(( char * )sqlite3_column_text( myPreparedStatement, 2 ) ) );
546548
// display the qgis srs_id (field 1) in the third column of the list view
547549
newItem->setText( QGIS_CRS_ID_COLUMN, QString::fromUtf8(( char * )sqlite3_column_text( myPreparedStatement, 1 ) ) );
548550
}

0 commit comments

Comments
 (0)
Please sign in to comment.