Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I'm new working with QGIS 1.8.0 and wanted to know if its possible to subdivide a map (shapefile, which is round-like) into small squares but following the outer round contour of the map? I tried with the vector grid tool but the subdivision does not limit to the map and I get only a big square. Any ideas?

Sample Image

share|improve this question
    
please provide a sketch of your desired result –  underdark Jul 17 '13 at 15:09
add comment

1 Answer

up vote 5 down vote accepted

Create a vector grid using the "extents from layer" and specifying the grid size. In the example below I've used 10km x 10km grid squares. Make sure to output the grid as polygons, not as lines.

Vector > Research Tools > Vector grid

vector grid dialog

This will produce a regular grid with the specified extents and cell size:

inputs

Next, you need to intersect the layer you want to subdivide with the grid.

Vector > Geoprocessing Tools > Intersect

intersect

The result is shown below. I imagine this is what it would look like if you hit an apple hard enough with a tennis racket. Each part of the intersected features will have all of the attributes from the input layers.

result

share|improve this answer
    
+1 Great step by step instructions. –  Aaron Jul 17 '13 at 15:27
    
Very, very good explained thank you! The only thing is that the loading bar in the pop up window stays at 100% and then it crashes, any other tip?! sorry... –  user20159 Jul 17 '13 at 17:23
    
it doesn't crash, it does creates another .shp file but when I open it its blank... –  user20159 Jul 17 '13 at 17:50
    
Its working now, very strange, but thanks so much anyways! I got the image! –  user20159 Jul 17 '13 at 19:31
add comment

Your Answer

 
discard

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.