[QGIS Commit] r9348 - trunk/qgis/src/gui
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Thu Sep 18 06:13:33 EDT 2008
Author: homann
Date: 2008-09-18 06:13:33 -0400 (Thu, 18 Sep 2008)
New Revision: 9348
Modified:
trunk/qgis/src/gui/qgsprojectionselector.cpp
Log:
Do not ask for EPSG ID, it is not in custom projections anyway.
Modified: trunk/qgis/src/gui/qgsprojectionselector.cpp
===================================================================
--- trunk/qgis/src/gui/qgsprojectionselector.cpp 2008-09-18 09:17:12 UTC (rev 9347)
+++ trunk/qgis/src/gui/qgsprojectionselector.cpp 2008-09-18 10:13:33 UTC (rev 9348)
@@ -529,7 +529,7 @@
}
// Set up the query to retrieve the projection information needed to populate the list
- QString mySql = "select description, srs_id, epsg, is_geo, name, parameters from vw_srs ";
+ QString mySql = "select description, srs_id from vw_srs ";
mySql += "where ";
mySql += sqlFilter;
@@ -541,8 +541,10 @@
while ( sqlite3_step( myPreparedStatement ) == SQLITE_ROW )
{
newItem = new QTreeWidgetItem( mUserProjList, QStringList( QString::fromUtf8(( char * )sqlite3_column_text( myPreparedStatement, 0 ) ) ) );
+ // EPSG for user projections is not always defined in some dbases.
+ // It's also not written from customprojections dialog.
// display the epsg (field 2) in the second column of the list view
- newItem->setText( EPSG_COLUMN, QString::fromUtf8(( char * )sqlite3_column_text( myPreparedStatement, 2 ) ) );
+ // newItem->setText( EPSG_COLUMN, QString::fromUtf8(( char * )sqlite3_column_text( myPreparedStatement, 2 ) ) );
// display the qgis srs_id (field 1) in the third column of the list view
newItem->setText( QGIS_CRS_ID_COLUMN, QString::fromUtf8(( char * )sqlite3_column_text( myPreparedStatement, 1 ) ) );
}
More information about the QGIS-commit
mailing list