Skip to content

Commit

Permalink
removes symbology which may cause problems with new/old symbology
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15292 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
cfarmer committed Feb 28, 2011
1 parent 9c0e058 commit 6720f15
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions python/plugins/fTools/tools/doMeanCoords.py
Expand Up @@ -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 )

Expand Down

0 comments on commit 6720f15

Please sign in to comment.