Skip to content
Permalink
Browse files

add layer with its own CRS when possible (fix #6539)

  • Loading branch information
alexbruy committed Oct 18, 2012
1 parent 297c8aa commit 20b404377c5e7f00a96a3a16cc2c759480b6325b
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/sextante/core/QGisLayers.py
@@ -101,8 +101,8 @@ def load(layer, name = None, crs = None, style = None):
name = path.split(layer)[1]
qgslayer = QgsVectorLayer(layer, name , 'ogr')
if qgslayer.isValid():
if crs != None:
qgslayer.setCrs(crs,False)
if crs is not None and qgslayer.crs() is None:
qgslayer.setCrs(crs, False)
if style == None:
if qgslayer.geometryType == 0:
style = SextanteConfig.getSetting(SextanteConfig.VECTOR_POINT_STYLE)

0 comments on commit 20b4043

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