Skip to content
Permalink
Browse files
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
  • Loading branch information
jef committed Aug 24, 2008
1 parent ed45af8 commit de7be9ebfcec9d956165046519452d6e1eaa79de
Showing with 7 additions and 7 deletions.
  1. +7 −7 src/plugins/wfs/qgswfssourceselect.cpp
@@ -184,22 +184,22 @@ int QgsWFSSourceSelect::getCapabilitiesGET( QString uri, std::list<QString>& typ
abstract = abstractList.at( 0 ).toElement().text();
}

//DefaultCRS is always the first entry in the feature crs list
QDomNodeList defaultCRSList = featureTypeElem.elementsByTagNameNS( WFS_NAMESPACE, "DefaultCRS" );
//DefaultSRS is always the first entry in the feature srs list
QDomNodeList defaultCRSList = featureTypeElem.elementsByTagNameNS( WFS_NAMESPACE, "DefaultSRS" );
if ( defaultCRSList.length() > 0 )
{
featureCRSList.push_back( defaultCRSList.at( 0 ).toElement().text() );
}

//OtherCRS
QDomNodeList otherCRSList = featureTypeElem.elementsByTagNameNS( WFS_NAMESPACE, "OtherCRS" );
//OtherSRS
QDomNodeList otherCRSList = featureTypeElem.elementsByTagNameNS( WFS_NAMESPACE, "OtherSRS" );
for ( unsigned int i = 0; i < otherCRSList.length(); ++i )
{
featureCRSList.push_back( otherCRSList.at( i ).toElement().text() );
}

//Support <CRS> for compatibility with older versions
QDomNodeList srsList = featureTypeElem.elementsByTagNameNS( WFS_NAMESPACE, "CRS" );
//Support <SRS> for compatibility with older versions
QDomNodeList srsList = featureTypeElem.elementsByTagNameNS( WFS_NAMESPACE, "SRS" );
for ( unsigned int i = 0; i < srsList.length(); ++i )
{
featureCRSList.push_back( srsList.at( i ).toElement().text() );
@@ -358,7 +358,7 @@ void QgsWFSSourceSelect::addLayer()
long epsgNr = mProjectionSelector->getSelectedEpsg();
if ( epsgNr != 0 )
{
crsString = "&CRSNAME=EPSG:" + QString::number( epsgNr );
crsString = "&SRSNAME=EPSG:" + QString::number( epsgNr );
}
}
//add a wfs layer to the map

0 comments on commit de7be9e

Please sign in to comment.