mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-10-31 00:06:02 -04:00 
			
		
		
		
	For non-point geometry subclasses (points are always valid!) we now cache the results of a geometry validity check. Subsequent checks utilise the cached result wherever possible. Because QgsGeometry/QgsFeature objects are implicitly shared, this means that we avoid a *lot* of duplicate validity checks as features and geometries are thrown around during processing model execution.
		
			
				
	
	
		
			47 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| /************************************************************************
 | |
|  * This file has been generated automatically from                      *
 | |
|  *                                                                      *
 | |
|  * src/core/geometry/qgssurface.h                                       *
 | |
|  *                                                                      *
 | |
|  * Do not edit manually ! Edit header and run scripts/sipify.pl again   *
 | |
|  ************************************************************************/
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| class QgsSurface: QgsAbstractGeometry
 | |
| {
 | |
| 
 | |
| %TypeHeaderCode
 | |
| #include "qgssurface.h"
 | |
| %End
 | |
|   public:
 | |
| 
 | |
|     virtual QgsPolygon *surfaceToPolygon() const = 0 /Factory/;
 | |
| %Docstring
 | |
| Gets a polygon representation of this surface.
 | |
| Ownership is transferred to the caller.
 | |
| %End
 | |
| 
 | |
|     virtual QgsRectangle boundingBox() const;
 | |
| 
 | |
|     virtual bool isValid( QString &error /Out/, int flags = 0 ) const;
 | |
| 
 | |
| 
 | |
| 
 | |
|   protected:
 | |
| 
 | |
|     virtual void clearCache() const;
 | |
| 
 | |
| 
 | |
| };
 | |
| 
 | |
| /************************************************************************
 | |
|  * This file has been generated automatically from                      *
 | |
|  *                                                                      *
 | |
|  * src/core/geometry/qgssurface.h                                       *
 | |
|  *                                                                      *
 | |
|  * Do not edit manually ! Edit header and run scripts/sipify.pl again   *
 | |
|  ************************************************************************/
 |