File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -195,13 +195,19 @@ QString QgsProjectionSelector::ogcWmsCrsFilterAsSqlExpression( QSet<QString> * c
195
195
// iterate through all incoming CRSs
196
196
197
197
QSet<QString>::const_iterator i = crsFilter->begin ();
198
+ QRegExp rx ( " [^0-9]" );
198
199
while ( i != crsFilter->end () )
199
200
{
200
201
QStringList parts = i->split ( " :" );
201
202
202
203
if ( parts.at ( 0 ) == " EPSG" && parts.size () >= 2 )
203
204
{
204
- epsgParts.push_back ( parts.at ( 1 ) );
205
+ // this line is neccesary to make change projection work
206
+ // with geoserver because for some reason geoserver returns
207
+ // EPSG:WGS84(DD) as the first srs and is invalid because the
208
+ // epsg database expect an integer string
209
+ if (rx.indexIn (parts.at ( 1 )) == -1 )
210
+ epsgParts.push_back ( parts.at ( 1 ) );
205
211
}
206
212
207
213
++i;
You can’t perform that action at this time.
0 commit comments