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 20b4043
Showing 1 changed file with 2 additions and 2 deletions.
@@ -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.