qgis / qgis4.0_api

Tracker for QGIS 4.0 API related issues and developer discussion
3 stars 1 forks source link

Don't force normalize QgsRectangles #118

Open nyalldawson opened 3 years ago

nyalldawson commented 3 years ago

Current QgsRectangle constructors force a normalization step on the rectangle. This is non-free, and the cost adds up when a lot of rectangles are created. This should be an optional step which isn't enforced by the constructor -- in many cases you can be certain in advance that the rectangle is normalized, OR you may not WANT the forced normalisation!