3

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

  • please provide a sketch of your desired result – underdark Jul 17 '13 at 15:09
5

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

  • 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

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.