mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
fix windows build
This commit is contained in:
parent
5d1eb4e0d9
commit
b6d8331429
@ -311,6 +311,7 @@ IF (PEDANTIC)
|
||||
ADD_DEFINITIONS( /wd4100 ) # unused formal parameters
|
||||
ADD_DEFINITIONS( /wd4127 ) # constant conditional expressions (used in Qt template classes)
|
||||
ADD_DEFINITIONS( /wd4231 ) # nonstandard extension used : 'identifier' before template explicit instantiation (used in Qt template classes)
|
||||
ADD_DEFINITIONS( /wd4244 ) # conversion from '...' to '...' possible loss of data
|
||||
ADD_DEFINITIONS( /wd4251 ) # needs to have dll-interface to be used by clients of class (occurs in Qt template classes)
|
||||
ADD_DEFINITIONS( /wd4275 ) # non dll-interface class '...' used as base for dll-interface class '...'
|
||||
ADD_DEFINITIONS( /wd4505 ) # unreferenced local function has been removed (QgsRasterDataProvider::extent)
|
||||
|
@ -440,14 +440,11 @@ class QgsGeometry
|
||||
* @note python binding added in 1.6
|
||||
**/
|
||||
void validateGeometry( QList<QgsGeometry::Error> &errors /Out/ );
|
||||
|
||||
/** compute the unary union on a list of geometries. May be faster than an iterative union on a set of geometries.
|
||||
@param geometryList a list of QgsGeometry* as input
|
||||
@returns the new computed QgsGeometry, or null
|
||||
*/
|
||||
static QgsGeometry *unaryUnion( const QList<QgsGeometry*>& geometryList ) /Factory/;
|
||||
}; // class QgsGeometry
|
||||
|
||||
/** namespace where QgsGeometry-based algorithms lie */
|
||||
namespace QgsGeometryAlgorithms
|
||||
{
|
||||
/** compute the unary union on a list of geometries. May be faster than an iterative union on a set of geometries.
|
||||
@param geometryList a list of QgsGeometry* as input
|
||||
@returns the new computed QgsGeometry, or null
|
||||
*/
|
||||
QgsGeometry* unaryUnion( const QList<QgsGeometry*>& geometryList );
|
||||
};
|
||||
|
@ -6397,10 +6397,7 @@ QgsGeometry* QgsGeometry::convertToPolygon( bool destMultipart )
|
||||
}
|
||||
}
|
||||
|
||||
namespace QgsGeometryAlgorithms
|
||||
{
|
||||
|
||||
QgsGeometry* unaryUnion( const QList<QgsGeometry*>& geometryList )
|
||||
QgsGeometry *QgsGeometry::unaryUnion( const QList<QgsGeometry*> &geometryList )
|
||||
{
|
||||
QList<GEOSGeometry*> geoms;
|
||||
foreach( QgsGeometry* g, geometryList )
|
||||
@ -6414,5 +6411,3 @@ QgsGeometry* unaryUnion( const QList<QgsGeometry*>& geometryList )
|
||||
ret->fromGeos( unioned );
|
||||
return ret;
|
||||
}
|
||||
|
||||
}// QgsGeometryAlgorithms
|
||||
|
@ -486,6 +486,12 @@ class CORE_EXPORT QgsGeometry
|
||||
**/
|
||||
void validateGeometry( QList<Error> &errors );
|
||||
|
||||
/** compute the unary union on a list of geometries. May be faster than an iterative union on a set of geometries.
|
||||
@param geometryList a list of QgsGeometry* as input
|
||||
@returns the new computed QgsGeometry, or null
|
||||
*/
|
||||
static QgsGeometry *unaryUnion( const QList<QgsGeometry*>& geometryList );
|
||||
|
||||
private:
|
||||
// Private variables
|
||||
|
||||
@ -679,14 +685,4 @@ class CORE_EXPORT QgsConstWkbPtr
|
||||
inline operator const unsigned char *() const { return mP; }
|
||||
};
|
||||
|
||||
/** namespace where QgsGeometry-based algorithms lie */
|
||||
namespace QgsGeometryAlgorithms
|
||||
{
|
||||
/** compute the unary union on a list of geometries. May be faster than an iterative union on a set of geometries.
|
||||
@param geometryList a list of QgsGeometry* as input
|
||||
@returns the new computed QgsGeometry, or null
|
||||
*/
|
||||
QgsGeometry* unaryUnion( const QList<QgsGeometry*>& geometryList );
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -224,7 +224,7 @@ void QgsInvertedPolygonRenderer::stopRender( QgsRenderContext& context )
|
||||
if ( mPreprocessingEnabled )
|
||||
{
|
||||
// compute the unary union on the polygons
|
||||
QScopedPointer<QgsGeometry> unioned( QgsGeometryAlgorithms::unaryUnion( cit->geometries ) );
|
||||
QScopedPointer<QgsGeometry> unioned( QgsGeometry::unaryUnion( cit->geometries ) );
|
||||
// compute the difference with the extent
|
||||
QScopedPointer<QgsGeometry> rect( QgsGeometry::fromPolygon( mExtentPolygon ) );
|
||||
QgsGeometry *final = rect->difference( const_cast<QgsGeometry*>(unioned.data()) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user