Skip to content

Commit

Permalink
Fix QGIS Server build error
Browse files Browse the repository at this point in the history
  • Loading branch information
rldhont committed Nov 14, 2016
1 parent 968e02d commit b13b4f9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/server/qgswfsserver.cpp
Expand Up @@ -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 );
}
Expand Down

0 comments on commit b13b4f9

Please sign in to comment.