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 want to divide a shapefile with many tiles into a lot of smaller tiles. I am searching for a smart solution, because manual edits are out of questions Example

Anyone can help or know a nice function?

share|improve this question
    
please excuse me for bringing this thread up again. i have a quite similar problem but one aspect is different. i have got some polygons (parcels of land) and i want to split them up in smaller sections. the problem is that this smaller polygon fields should be parallel to the parcel borders. when i use the vector grid tool, the grid is allways facing north. the second point is, that there are serveral polygons in the same shapefile and all of them need such a grid an every grid should be relatable to the corresponding parcel of land. i have got qgis and (if necessary) arcgis 10 - i there any –  user15373 Feb 20 '13 at 14:36
add comment

4 Answers 4

up vote 6 down vote accepted

Using QGIS you can quickly divide a given shapefile up into regular rectangles as you've shown in your example.

  1. Load the original shapefile;
  2. Use Vector|Research Tools|Vector grid and create a grid of polygons the same extent as your shapefile, with the right distance between divisions ('parameters') selected (100 in my example image below);
  3. Intersect the two layers (Vector|Geoprocessing Tools|Intersect), with the first layer as the original shapefile and the second as your vector grid. The output will be your shapefile chopped up by the boundaries of the vector grid.

share|improve this answer
    
thanks! I will try that –  Curlew Apr 18 '12 at 13:40
add comment

I am assuming that the grid you refer to is a spatial grid of some regular size - 1x1 km or similar. These grid objects (squares) will then have some reference number (eg square_id). Your other data set, the zones, is the one you would like to see combined based on the attributes in the spatial grid. This way you end up with the zones being split in smaller (gridded) pieces retaining both the zone_id and the spatial grid reference attributes.

The intersect functionality does this job. It is available both from within ArcGIS and QGIS. The user documentation for ArcGIS explains it excellently, although the functionality is also supported by QGIS.

share|improve this answer
add comment

You can create a regular grid using the Vector Grid tool. Just specify the feature(s) you want to use for the extent, and the size of each grid cell you want to use. You may have to make sure the python plugins are enabled and the ftools plugins are installed. Then, you might use the intersect tool as suggested by @ragnvald.

The only problem with this approach is that the tiles will not be numbered in a column/row format. Instead, they will be numbered in the order they are created, usually one row at a time from northeast to southwest. If this doesn't fit your needs, try creating a raster version of the data using the rasterize tool. Rasters essentially store data as a georeferenced matrix with a fixed spacing between rows and columns. This data model might make it easier to set up your routing, but you may have a hard time making sure your original data translates in a meaningful way.

There are a number of established techniques for routing on rasters, such as cost paths and flow direction/accumulation (usually treated in hydrology tools). SAGA GIS has more options for these types of analyses, plus better tools for rasterization, but the interface is a little less straightforward than QGIS.

share|improve this answer
add comment

Generating a vector grid is one aspect to this, if I understand you question correctly. If you want to literally split the other features (ie: roads with a grid to have the roads as grid sections) you will want to intersect the road later with the newly created grid layer. This will create sections based on a grid cell. If that collection of roads (which has been divided based on the grid cell) needs to be a single file to itself, then you could perform a split by attribute to a new layer (this function is available in QGIS as a vector plugin, and it will use a attribute value, ie GRIDID, and parse all records in the attribute table with the same GRIDID to its own shapefile. This can be done in batch, making it possible to split up many files like this).

share|improve this answer
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.