Skip to content

Commit

Permalink
Fix for Ticket #1881. This allows to change the srs for wms based in …
Browse files Browse the repository at this point in the history
…geoserver.

git-svn-id: http://svn.osgeo.org/qgis/trunk@11460 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
gcontreras committed Aug 21, 2009
1 parent e246c67 commit 8b5d9fa
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/gui/qgsprojectionselector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,13 +195,19 @@ QString QgsProjectionSelector::ogcWmsCrsFilterAsSqlExpression( QSet<QString> * c
// iterate through all incoming CRSs

QSet<QString>::const_iterator i = crsFilter->begin();
QRegExp rx( "[^0-9]" );
while ( i != crsFilter->end() )
{
QStringList parts = i->split( ":" );

if ( parts.at( 0 ) == "EPSG" && parts.size() >= 2 )
{
epsgParts.push_back( parts.at( 1 ) );
//this line is neccesary to make change projection work
//with geoserver because for some reason geoserver returns
//EPSG:WGS84(DD) as the first srs and is invalid because the
//epsg database expect an integer string
if(rx.indexIn(parts.at( 1 )) == -1)
epsgParts.push_back( parts.at( 1 ) );
}

++i;
Expand Down

0 comments on commit 8b5d9fa

Please sign in to comment.