Skip to content
Permalink
Browse files

Fix QGIS Server build error

  • Loading branch information
rldhont committed Nov 14, 2016
1 parent 968e02d commit b13b4f942d113cae2281b544029bcfcbc09b1473
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/server/qgswfsserver.cpp
@@ -1218,16 +1218,16 @@ void QgsWfsServer::startGetFeature( QgsRequestHandler& request, const QString& f
{
if ( crs.isValid() )
{
QgsGeometry* exportGeom = QgsGeometry::fromRect( *rect );
QgsGeometry exportGeom = QgsGeometry::fromRect( *rect );
QgsCoordinateTransform transform;
transform.setSourceCrs( crs );
transform.setDestCRS( QgsCoordinateReferenceSystem( 4326, QgsCoordinateReferenceSystem::EpsgCrsId ) );
transform.setDestinationCRS( QgsCoordinateReferenceSystem( 4326, QgsCoordinateReferenceSystem::EpsgCrsId ) );
try
{
if ( exportGeom->transform( transform ) == 0 )
rect = new QgsRectangle( exportGeom->boundingBox() );
if ( exportGeom.transform( transform ) == 0 )
rect = new QgsRectangle( exportGeom.boundingBox() );
}
catch ( QgsCsException &cse )
catch ( QgsException &cse )
{
Q_UNUSED( cse );
}

0 comments on commit b13b4f9

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