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 try to explain may problem. I have a big polygon shape (> 200 fields). I have the owners of these fields in a column. I need the seperated shapes for each owner. Is there a tool to do that?

Is it also possible to get an information about the whole area? Like a summary: 201 polygones area: 1450 ha

In Saga I have a tool "Split shapes by attribute". This works fine with the expected result (10 owners: 10 new layers). This tool doesnt work with the sextante plugin.

Thanx!

share|improve this question
    
anything on this tutorial help... qgis.spatialthoughts.com/2012/02/… –  Gerald Jan 28 '13 at 14:22
add comment

2 Answers

up vote 3 down vote accepted

Split Vector Layer tool in Vector menu should do the job of creating separate Shapefiles based on one field but it seems broken in QGIS 1.8. Try experimental Shapefile Splitter plugin which Jake suggested instead.

The number of polygons in a layer is listed in Layer Properties - Metadata tab: "number of features in this layer: x"

With the Statist plugin you also get counts and sums (and unique values and much more) for values in a field of your choice. Set it to the area field, and you'll get the area sum for the layer. (You can calculate area using field calculator if it's not available in the attribute table yet.)

Another alternative might be GroupStats plugin.

share|improve this answer
    
I tried using the Split Vector Layer tool, but it didn't work for me (QGIS hangs without error message). The experimental Shapefile Splitter plugin works flawlessly, though. –  Jake Jan 28 '13 at 14:24
    
Good to know that there is an alternative. I've used the Split Vector Layer tool successfully before. –  underdark Jan 28 '13 at 14:25
    
I have tried the Split vector layer tool. The problem is, that I got just one polygon shape. I expected separeted shapes for each owner. I had to define a name of the result shape. But I have 10 different owners. In Saga I have a tool "Split shapes by attribute". This works fine with the expected result (10 owners: 10 new layers). This tool doesnt work with the sextante plugin. –  Pimpel Jan 28 '13 at 14:39
2  
The Split Vector layer tool expects a directory to be selected where it should write the files to. The name of the shapefiles will be created from the attribute table field you selected. I got it working with a shapefile layer, but not with a spatialite layer. –  Andre Joost Jan 28 '13 at 17:25
add comment

The SAGA algorithm has been removed and there is a native one implemented as an example script in SEXTANTE. It is called "Split vector layer by attribute".

share|improve this answer
    
The resulting files are named, appending a number. You you edit the script and edit the following line: outputFile = output + "_" + str(len(writers)) + ".shp" to suit your needs in case you want a differnt naming –  Victor Olaya Jan 28 '13 at 17:35
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.