Skip to content
Permalink
Browse files

WMS layer: add CRS for project layer group

  • Loading branch information
marco
marco committed Jul 27, 2011
1 parent b6b65fd commit a1cc666472a9e0e5d390fe501bd08781051a2350
Showing with 10 additions and 0 deletions.
  1. +10 −0 src/mapserver/qgsprojectparser.cpp
@@ -101,6 +101,16 @@ void QgsProjectParser::layersAndStylesCapabilities( QDomElement& parentElement,
layerParentTitleElem.appendChild( layerParentTitleText );
layerParentElem.appendChild( layerParentTitleElem );

QSet<QString> crsSet = supportedOutputCrsSet();
QSet<QString>::const_iterator crsIt = crsSet.constBegin();
for(; crsIt != crsSet.constEnd(); ++crsIt )
{
QDomElement crsElem = doc.createElement("CRS");
QDomText crsText = doc.createTextNode( *crsIt );
crsElem.appendChild( crsText );
layerParentElem.appendChild( crsElem );
}

//Map rectangle. If not empty, this will be set for every layer (instead of the bbox that comes from the data)
QgsRectangle mapExtent = mapRectangle();
QgsCoordinateReferenceSystem mapCRS;

0 comments on commit a1cc666

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