Skip to content
Permalink
Browse files

fix export

  • Loading branch information
stevenmizuno committed Jan 1, 2018
1 parent 9298050 commit 771288ee158d3ec4335cb11ddcf4b357c93a74a5
Showing with 10 additions and 1 deletion.
  1. +10 −1 src/app/qgsbookmarks.cpp
@@ -387,8 +387,17 @@ void QgsBookmarks::exportToXml()
if ( idx.isValid() )
{
QString value = idx.data( Qt::DisplayRole ).toString();
QDomText idText = doc.createTextNode( value );
QString header = headerList.at( j );
// If it's the EPSG code, convert it to internal srid
if ( header == QStringLiteral( "sr_id" ) )
{
QgsCoordinateReferenceSystem crs;
if ( crs.createFromOgcWmsCrs( value ) )
value = QString::number( crs.srsid( ) );
else
value = QString();
}
QDomText idText = doc.createTextNode( value );
QDomElement id = doc.createElement( header );
id.appendChild( idText );
bookmark.appendChild( id );

0 comments on commit 771288e

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