I have a vector layer in QGIS with 30000 points. I want to delete those with values lower than a specific value. I could not use filter in an edited layer, and I could not filter the layer after editing it.

What can I do?

  • 1
    You are probably working with shapefiles. Save your data to spatialite, and editing and filtering is possible. – AndreJ Sep 21 '17 at 15:26
  • Thanks, I tried but still can not edit and filtering at the same time. – Fernando Sep 21 '17 at 16:37

you can do it by open attribute, then click 'select features using an expression' and then write down 'YOUR_VALUE_FIELD' < "YOUR_OPTIONAL_NUMBER". as the picture below :


if your field is a string type, you must change it to integers by doing the following :

  • ctrl + I
  • Create new field
  • to_int('YOUR_STRING_FIELD')

then it's good to go...

  • I assumed the user is new to Qgis... if not, try AndreJ solution... – Afshin Salehi Sep 21 '17 at 15:59
  • I do not understand, Select by expression does not work either. I can choose the criteria, but it does not select the points. What I did was filter, copy and paste the filtered points to a new layer. Thanks. – Fernando Sep 21 '17 at 16:47
  • I had some experience working with Esri's geodatabase files which couldn't be edited. I must export them in one of the supported files and then edit the exported. – Afshin Salehi Sep 21 '17 at 19:58
  • I have to say the most compatible extension for Qgis is the spatialite database and files. many tutorials are available on the net. remember creating a spatial index for each layer. This makes all tools operate fine without any errors. – Afshin Salehi Sep 21 '17 at 20:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.