Skip to content

Commit

Permalink
add layer with its own CRS when possible (fix #6539)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Oct 18, 2012
1 parent 297c8aa commit 20b4043
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/sextante/core/QGisLayers.py
Expand Up @@ -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)
Expand Down

0 comments on commit 20b4043

Please sign in to comment.