@@ -184,22 +184,22 @@ int QgsWFSSourceSelect::getCapabilitiesGET( QString uri, std::list<QString>& typ
184
184
abstract = abstractList.at ( 0 ).toElement ().text ();
185
185
}
186
186
187
- // DefaultCRS is always the first entry in the feature crs list
188
- QDomNodeList defaultCRSList = featureTypeElem.elementsByTagNameNS ( WFS_NAMESPACE, " DefaultCRS " );
187
+ // DefaultSRS is always the first entry in the feature srs list
188
+ QDomNodeList defaultCRSList = featureTypeElem.elementsByTagNameNS ( WFS_NAMESPACE, " DefaultSRS " );
189
189
if ( defaultCRSList.length () > 0 )
190
190
{
191
191
featureCRSList.push_back ( defaultCRSList.at ( 0 ).toElement ().text () );
192
192
}
193
193
194
- // OtherCRS
195
- QDomNodeList otherCRSList = featureTypeElem.elementsByTagNameNS ( WFS_NAMESPACE, " OtherCRS " );
194
+ // OtherSRS
195
+ QDomNodeList otherCRSList = featureTypeElem.elementsByTagNameNS ( WFS_NAMESPACE, " OtherSRS " );
196
196
for ( unsigned int i = 0 ; i < otherCRSList.length (); ++i )
197
197
{
198
198
featureCRSList.push_back ( otherCRSList.at ( i ).toElement ().text () );
199
199
}
200
200
201
- // Support <CRS > for compatibility with older versions
202
- QDomNodeList srsList = featureTypeElem.elementsByTagNameNS ( WFS_NAMESPACE, " CRS " );
201
+ // Support <SRS > for compatibility with older versions
202
+ QDomNodeList srsList = featureTypeElem.elementsByTagNameNS ( WFS_NAMESPACE, " SRS " );
203
203
for ( unsigned int i = 0 ; i < srsList.length (); ++i )
204
204
{
205
205
featureCRSList.push_back ( srsList.at ( i ).toElement ().text () );
@@ -358,7 +358,7 @@ void QgsWFSSourceSelect::addLayer()
358
358
long epsgNr = mProjectionSelector ->getSelectedEpsg ();
359
359
if ( epsgNr != 0 )
360
360
{
361
- crsString = " &CRSNAME =EPSG:" + QString::number ( epsgNr );
361
+ crsString = " &SRSNAME =EPSG:" + QString::number ( epsgNr );
362
362
}
363
363
}
364
364
// add a wfs layer to the map
0 commit comments