Skip to content
Permalink
Browse files

Two errors fixed in georef plugin:

1) Iterator/delete bug
2) Now setting sourceSRS to the same as destSRS after adding the layer into
   georef plugin window, which now disables any transformation of the raster.


git-svn-id: http://svn.osgeo.org/qgis/branches/Release-0_8_0@6385 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
homann
homann committed Jan 2, 2007
1 parent e1af3f3 commit b65c11557e927b84a753fb289aaa8cb6a1d7f6a6
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/plugins/georeferencer/qgspointdialog.cpp
@@ -136,6 +136,12 @@ QgsPointDialog::QgsPointDialog(QString layerPath, QgisIface* theQgisInterface,
QgsMapLayerRegistry* registry = QgsMapLayerRegistry::instance();
registry->addMapLayer(layer, FALSE);


// Set source SRS same as dest SRS, so that we don't do any transformation.
// Dest SRS is set by project defaults
// The CoordinateTransform should now be shortcircuited.
layer->coordinateTransform()->setSourceSRS(layer->coordinateTransform()->destSRS());

// add layer to map canvas
std::deque<QString> layers;
layers.push_back(layer->getLayerID());
@@ -459,8 +465,8 @@ void QgsPointDialog::deleteDataPoint(QgsPoint& coords)
#endif
if ((x*x + y*y) < maxDistSqr)
{
mPoints.erase(it);
delete *it;
mPoints.erase(it);
mCanvas->refresh();
break;
}

0 comments on commit b65c115

Please sign in to comment.
You can’t perform that action at this time.