Skip to content
Permalink
Browse files
Use layername not layerName for xml
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9147 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Aug 24, 2008
1 parent fa9655f commit 2605de99a87566821b6c03920125a8fcb911476d
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/core/qgsmaplayer.cpp
  2. +1 −1 src/core/raster/qgsrasterlayer.cpp
@@ -191,7 +191,7 @@ bool QgsMapLayer::readXML( QDomNode & layer_node )
setMaxScale( element.attribute( "maxScale" ).toFloat() );

// set name
mnl = layer_node.namedItem( "layerName" );
mnl = layer_node.namedItem( "layername" );
mne = mnl.toElement();
setLayerName( mne.text() );

@@ -255,7 +255,7 @@ bool QgsMapLayer::writeXML( QDomNode & layer_node, QDomDocument & document )


// layer name
QDomElement layerName = document.createElement( "layerName" );
QDomElement layerName = document.createElement( "layername" );
QDomText layerNameText = document.createTextNode( name() );
layerName.appendChild( layerNameText );

@@ -4006,7 +4006,7 @@ double QgsRasterLayer::readValue( void *data, GDALDataType type, int index )
Raster layer project file XML of form:
<maplayer type="raster" visible="1" showInOverviewFlag="1">
<layerName>Wynoochee_dem</layerName>
<layername>Wynoochee_dem</layername>
<datasource>/home/mcoletti/mnt/MCOLETTIF8F9/c/Toolkit_Course/Answers/Training_Data/wynoochee_dem.img</datasource>
<zorder>0</zorder>
<transparencyLevelInt>255</transparencyLevelInt>

0 comments on commit 2605de9

Please sign in to comment.