22QgsProcessingFeatureSourceOptionsWidget::QgsProcessingFeatureSourceOptionsWidget( QWidget *parent )
27 mFeatureLimitSpinBox->setClearValue( 0, tr(
"Not set" ) );
28 mFeatureLimitSpinBox->clear();
30 mComboInvalidFeatureFiltering->addItem( tr(
"Use Default" ) );
42 mComboInvalidFeatureFiltering->setCurrentIndex( mComboInvalidFeatureFiltering->findData( QVariant() ) );
44 mComboInvalidFeatureFiltering->setCurrentIndex( mComboInvalidFeatureFiltering->findData( check ) );
47void QgsProcessingFeatureSourceOptionsWidget::setFeatureLimit(
int limit )
49 mFeatureLimitSpinBox->setValue( limit );
57bool QgsProcessingFeatureSourceOptionsWidget::isOverridingInvalidGeometryCheck()
const
59 return mComboInvalidFeatureFiltering->currentData().isValid();
62int QgsProcessingFeatureSourceOptionsWidget::featureLimit()
const
64 return mFeatureLimitSpinBox->value() > 0 ? mFeatureLimitSpinBox->value() : -1;
InvalidGeometryCheck
Handling of features with invalid geometries.
@ GeometryNoCheck
No invalid geometry checking.
@ GeometryAbortOnInvalid
Close iterator on encountering any features with invalid geometry. This requires a slow geometry vali...
@ GeometrySkipInvalid
Skip any features with invalid geometry. This requires a slow geometry validity check for every featu...