Skip to content
Permalink
Browse files

Fix for Ticket #1881. This allows to change the srs for wms based in …

…geoserver.

git-svn-id: http://svn.osgeo.org/qgis/trunk@11460 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
gcontreras
gcontreras committed Aug 21, 2009
1 parent e246c67 commit 8b5d9fa98e401c386d01654960a0a15f975ae9e3
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/gui/qgsprojectionselector.cpp
@@ -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;

0 comments on commit 8b5d9fa

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