Skip to content
Permalink
Browse files

removes symbology which may cause problems with new/old symbology

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15292 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
cfarmer
cfarmer committed Feb 28, 2011
1 parent 9c0e058 commit 6720f153666a0228f22caf3f5129336012fcd314
Showing with 2 additions and 11 deletions.
  1. +2 −11 python/plugins/fTools/tools/doMeanCoords.py
@@ -65,17 +65,8 @@ def accept(self):
self.outShape.clear()
addToTOC = QMessageBox.question(self, self.tr("Coordinate statistics"), self.tr("Created output point shapefile:\n%1\n\nWould you like to add the new layer to the TOC?").arg( outPath ), QMessageBox.Yes, QMessageBox.No, QMessageBox.NoButton)
if addToTOC == QMessageBox.Yes:
self.vlayer = QgsVectorLayer(outPath, unicode(outName), "ogr")
if self.vlayer.geometryType() == QGis.Point:
render = QgsSingleSymbolRenderer(QGis.Point)
symbol = QgsSymbol(QGis.Point)
symbol.setFillColor(Qt.red)
symbol.setFillStyle(Qt.SolidPattern)
symbol.setColor(Qt.red)
symbol.setPointSize(5)
render.addSymbol(symbol)
self.vlayer.setRenderer(render)
QgsMapLayerRegistry.instance().addMapLayer(self.vlayer)
vlayer = QgsVectorLayer(outPath, unicode(outName), "ogr")
QgsMapLayerRegistry.instance().addMapLayer(vlayer)
self.progressBar.setValue(0)
self.buttonOk.setEnabled( True )

0 comments on commit 6720f15

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