Skip to content

Commit

Permalink
Fix for part of ticket #247 (unable to create a custom projection)
Browse files Browse the repository at this point in the history
Also move some debugging output to QgsLogger


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5778 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Sep 7, 2006
1 parent aaf5b9c commit ecd23cc
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/gui/qgscustomprojectiondialog.cpp
Expand Up @@ -14,9 +14,9 @@
//qgis includes
#include "qgis.h" //<--magick numbers
#include "qgsapplication.h"
#include "qgslogger.h"

//qt includes
#include <QDir>
#include <QFileInfo>
#include <QMessageBox>

Expand Down Expand Up @@ -61,7 +61,10 @@ QgsCustomProjectionDialog::QgsCustomProjectionDialog(QWidget *parent, Qt::WFlags
//getProjList();
//getEllipsoidList();
mRecordCountLong=getRecordCount();
on_pbnFirst_clicked();
if (mRecordCountLong > 0)
on_pbnFirst_clicked();
else
on_pbnNew_clicked();
}

QgsCustomProjectionDialog::~QgsCustomProjectionDialog()
Expand Down Expand Up @@ -982,7 +985,7 @@ void QgsCustomProjectionDialog::cboProjectionFamily_highlighted( const QString &

QString QgsCustomProjectionDialog::getProjFromParameters()
{
std::cout << "QgsCustomProjectionDialog::getProjFromParameters()" << std::endl;
QgsLogger::debug("QgsCustomProjectionDialog::getProjFromParameters()");
QString myProj4String = leParameters->text();
QRegExp myProjRegExp( "\\+proj=[a-zA-Z]*" );
int myStart= 0;
Expand All @@ -1002,7 +1005,7 @@ QString QgsCustomProjectionDialog::getProjFromParameters()

QString QgsCustomProjectionDialog::getEllipseFromParameters()
{
std::cout << "QgsCustomProjectionDialog::getEllipseFromParameters()" << std::endl;
QgsLogger::debug("QgsCustomProjectionDialog::getEllipseFromParameters()");
QString myProj4String = leParameters->text();
QRegExp myEllipseRegExp( "\\+ellps=[a-zA-Z0-9\\-_]*" );
int myStart= 0;
Expand Down

0 comments on commit ecd23cc

Please sign in to comment.