I have 3 contour shapefiles with 25m, 50m and 100m equidistance. Now I want to delete in the 25m-shp-file every **50m and **00m contour and in the 50m-shp-file every **00 contour. How can I show them using the field calculator of qgis?
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community
If you have a contour value field, it should be possible to select **50m and **00m contours for later deletion using the following query with the modulo operator:
value % 50 = 0
The simplest method is to simply create a new field based on the modulo operator, %, of the contour value.
A more complex way would be to select the 25 layer, and then select by location all the contours of the 50 layer that overlap the selection.