Skip to content
Permalink
Browse files
python plugins: replace QgsMapRenderer.destinationSrs() with destinat…
…ionCrs() (closes #6391)
  • Loading branch information
jef-n committed Jan 3, 2013
1 parent de54c16 commit f75803ea807ce25b33b4e27519cdd179e5ad0ed0
Showing with 2 additions and 2 deletions.
  1. +1 −1 python/plugins/fTools/tools/doRandPoints.py
  2. +1 −1 python/plugins/fTools/tools/doRegPoints.py
@@ -215,7 +215,7 @@ def randomize(self, inLayer, outPath, minimum, design, value):
points = self.vectorRandom(int(value), inLayer,
ext.xMinimum(), ext.xMaximum(), ext.yMinimum(), ext.yMaximum())
else: points = self.loopThruPolygons(inLayer, value, design)
crs = self.iface.mapCanvas().mapRenderer().destinationSrs()
crs = self.iface.mapCanvas().mapRenderer().destinationCrs()
if not crs.isValid(): crs = None
fields = { 0 : QgsField("ID", QVariant.Int) }
check = QFile(self.shapefileName)
@@ -85,7 +85,7 @@ def accept(self):
crs = mLayer.crs()
else:
boundBox = QgsRectangle(float(self.xMin.text()), float(self.yMin.text()), float(self.xMax.text()), float(self.yMax.text()))
crs = self.mapCanvas.mapRenderer().destinationSrs()
crs = self.mapCanvas.mapRenderer().destinationCrs()
print crs.isValid()
if not crs.isValid(): crs = None
self.regularize(boundBox, outPath, offset, value, self.rdoSpacing.isChecked(), self.spnInset.value(), crs)

0 comments on commit f75803e

Please sign in to comment.