Skip to content

Commit

Permalink
select appropriate extent
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@4802 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek committed Feb 6, 2006
1 parent 04d3255 commit bbf7791
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/providers/wms/qgswmsprovider.cpp
Expand Up @@ -1277,11 +1277,14 @@ void QgsWmsProvider::parseLayer(QDomElement const & e, QgsWmsLayerProperty& laye
//extentForLayer[ layerProperty.name ] = layerProperty.ex_GeographicBoundingBox;
if ( layerProperty.crs.size() > 0 )
{
// TODO: find the correct bounding box
if ( layerProperty.boundingBox.size() > 0 )
for ( int i = 0; i < layerProperty.boundingBox.size(); i++ )
{
extentForLayer[ layerProperty.name ] =
layerProperty.boundingBox[0].box;
std::set<QString>::iterator it = layerProperty.crs.begin();
if ( layerProperty.boundingBox[i].crs == *it )
{
extentForLayer[ layerProperty.name ] =
layerProperty.boundingBox[i].box;
}
}
}

Expand Down

0 comments on commit bbf7791

Please sign in to comment.