Skip to content

Commit

Permalink
vector layer same name as file
Browse files Browse the repository at this point in the history
  • Loading branch information
nkarasiak committed Feb 22, 2016
1 parent 33ce567 commit 426a832
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion historical_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,8 @@ def runClassify(self):
classifyProgress.addStep()

# Add layer
self.iface.addVectorLayer(temp,'Vectorized class','ogr')
layerName=os.path.basename(os.path.splitext(temp)[0])
self.iface.addVectorLayer(temp,layerName,'ogr')
self.iface.messageBar().pushMessage("New vector : ",outShp, 3, duration=10)
classifyProgress.reset()

Expand Down

0 comments on commit 426a832

Please sign in to comment.