Skip to content

Commit de7be9e

Browse files
author
jef
committed
revert srs related wfs uri changes from r9108 (fixes #1246)
git-svn-id: http://svn.osgeo.org/qgis/trunk@9156 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent ed45af8 commit de7be9e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/plugins/wfs/qgswfssourceselect.cpp

+7-7
Original file line numberDiff line numberDiff line change
@@ -184,22 +184,22 @@ int QgsWFSSourceSelect::getCapabilitiesGET( QString uri, std::list<QString>& typ
184184
abstract = abstractList.at( 0 ).toElement().text();
185185
}
186186

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" );
189189
if ( defaultCRSList.length() > 0 )
190190
{
191191
featureCRSList.push_back( defaultCRSList.at( 0 ).toElement().text() );
192192
}
193193

194-
//OtherCRS
195-
QDomNodeList otherCRSList = featureTypeElem.elementsByTagNameNS( WFS_NAMESPACE, "OtherCRS" );
194+
//OtherSRS
195+
QDomNodeList otherCRSList = featureTypeElem.elementsByTagNameNS( WFS_NAMESPACE, "OtherSRS" );
196196
for ( unsigned int i = 0; i < otherCRSList.length(); ++i )
197197
{
198198
featureCRSList.push_back( otherCRSList.at( i ).toElement().text() );
199199
}
200200

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" );
203203
for ( unsigned int i = 0; i < srsList.length(); ++i )
204204
{
205205
featureCRSList.push_back( srsList.at( i ).toElement().text() );
@@ -358,7 +358,7 @@ void QgsWFSSourceSelect::addLayer()
358358
long epsgNr = mProjectionSelector->getSelectedEpsg();
359359
if ( epsgNr != 0 )
360360
{
361-
crsString = "&CRSNAME=EPSG:" + QString::number( epsgNr );
361+
crsString = "&SRSNAME=EPSG:" + QString::number( epsgNr );
362362
}
363363
}
364364
//add a wfs layer to the map

0 commit comments

Comments
 (0)