Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a 250ms vector grid which covers an area of 88 Sq.kms. For surveying purpose, we would like to retain the vertical lines alone. Is it possible to delete all the horizontal lines from the grid ?

share|improve this question
The lines are broken at each intersection? Can you use a spatialdb or you just use Qgis? – Sergio Aug 26 '14 at 6:23
Using QGIS. There are no nodes at the intersection. It's merely a straight line – saravanaganesh18 Aug 26 '14 at 6:33

Why not just select all horizontal lines, start editing and use the delete features button? You can use the "Select by rectangle" tool, and draw a tall, very thin rectangle between two vertical grid lines to get all horizontals selected

share|improve this answer

Extract centroids of the lines, use the field calculator to create two attributes in the table: one with the x coord and one with the y. If the grid is regular and lines are not broken at each intersection, the horizontal lines must have all the same y coord. Select this points, and use this selection for a spatial query that selects the lines that intersects this points. Delete the lines. With a spatial db could be easier...

share|improve this answer
Works great. Thanks – saravanaganesh18 Aug 26 '14 at 8:38
@saravanaganesh18 please accept the answer if it solved your problem by clicking the tick mark at the left. – underdark Aug 26 '14 at 18:03

Supposed you have created the grid as lines and not polygons:

  • switch the grid layer to edit mode
  • select the rightmost vertical line by rectangle
  • with strg key pressed, unselect that line by clicking on it
  • Press Delete Selected icon.
share|improve this answer
Yep. We are doing the same till now. Just wanna know is it possible to do this through query -> object properties sort of thing – saravanaganesh18 Aug 26 '14 at 6:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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