mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-09 00:08:52 -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( /wd4100 ) # unused formal parameters
|
||||||
ADD_DEFINITIONS( /wd4127 ) # constant conditional expressions (used in Qt template classes)
|
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( /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( /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( /wd4275 ) # non dll-interface class '...' used as base for dll-interface class '...'
|
||||||
ADD_DEFINITIONS( /wd4505 ) # unreferenced local function has been removed (QgsRasterDataProvider::extent)
|
ADD_DEFINITIONS( /wd4505 ) # unreferenced local function has been removed (QgsRasterDataProvider::extent)
|
||||||
|
@ -440,14 +440,11 @@ class QgsGeometry
|
|||||||
* @note python binding added in 1.6
|
* @note python binding added in 1.6
|
||||||
**/
|
**/
|
||||||
void validateGeometry( QList<QgsGeometry::Error> &errors /Out/ );
|
void validateGeometry( QList<QgsGeometry::Error> &errors /Out/ );
|
||||||
}; // 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.
|
/** 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
|
@param geometryList a list of QgsGeometry* as input
|
||||||
@returns the new computed QgsGeometry, or null
|
@returns the new computed QgsGeometry, or null
|
||||||
*/
|
*/
|
||||||
QgsGeometry* unaryUnion( const QList<QgsGeometry*>& geometryList );
|
static QgsGeometry *unaryUnion( const QList<QgsGeometry*>& geometryList ) /Factory/;
|
||||||
};
|
}; // class QgsGeometry
|
||||||
|
|
||||||
|
@ -6397,10 +6397,7 @@ QgsGeometry* QgsGeometry::convertToPolygon( bool destMultipart )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace QgsGeometryAlgorithms
|
QgsGeometry *QgsGeometry::unaryUnion( const QList<QgsGeometry*> &geometryList )
|
||||||
{
|
|
||||||
|
|
||||||
QgsGeometry* unaryUnion( const QList<QgsGeometry*>& geometryList )
|
|
||||||
{
|
{
|
||||||
QList<GEOSGeometry*> geoms;
|
QList<GEOSGeometry*> geoms;
|
||||||
foreach( QgsGeometry* g, geometryList )
|
foreach( QgsGeometry* g, geometryList )
|
||||||
@ -6414,5 +6411,3 @@ QgsGeometry* unaryUnion( const QList<QgsGeometry*>& geometryList )
|
|||||||
ret->fromGeos( unioned );
|
ret->fromGeos( unioned );
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
}// QgsGeometryAlgorithms
|
|
||||||
|
@ -486,6 +486,12 @@ class CORE_EXPORT QgsGeometry
|
|||||||
**/
|
**/
|
||||||
void validateGeometry( QList<Error> &errors );
|
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:
|
||||||
// Private variables
|
// Private variables
|
||||||
|
|
||||||
@ -679,14 +685,4 @@ class CORE_EXPORT QgsConstWkbPtr
|
|||||||
inline operator const unsigned char *() const { return mP; }
|
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
|
#endif
|
||||||
|
@ -224,7 +224,7 @@ void QgsInvertedPolygonRenderer::stopRender( QgsRenderContext& context )
|
|||||||
if ( mPreprocessingEnabled )
|
if ( mPreprocessingEnabled )
|
||||||
{
|
{
|
||||||
// compute the unary union on the polygons
|
// 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
|
// compute the difference with the extent
|
||||||
QScopedPointer<QgsGeometry> rect( QgsGeometry::fromPolygon( mExtentPolygon ) );
|
QScopedPointer<QgsGeometry> rect( QgsGeometry::fromPolygon( mExtentPolygon ) );
|
||||||
QgsGeometry *final = rect->difference( const_cast<QgsGeometry*>(unioned.data()) );
|
QgsGeometry *final = rect->difference( const_cast<QgsGeometry*>(unioned.data()) );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user