Skip to content
Permalink
Browse files
Fix for part of ticket #247 (unable to create a custom projection)
Also move some debugging output to QgsLogger


git-svn-id: http://svn.osgeo.org/qgis/trunk@5778 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Sep 7, 2006
1 parent 69d99b1 commit 7343b6106ef895e1ce9315175485a3e2f21d7d0a
Showing with 7 additions and 4 deletions.
  1. +7 −4 src/gui/qgscustomprojectiondialog.cpp
@@ -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>

@@ -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()
@@ -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;
@@ -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;

0 comments on commit 7343b61

Please sign in to comment.