Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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

In my QGIS 2.12.3 I want to create shape files of different lakes. I know how to do it one by one and this way, each lake gets a different color. But it should also be possible to create one (Over)-layer with all the lakes and their names below it so that I just have to click and all the lakes appear to disappear at once.

How can I create one shape file with categories?

share|improve this question

Just Add Features in your lake shapefile, you should be able to add as many Lakes as you want in the shapefile, add the attributes of the lakes as required (either on first creating the shapefile or later on by editing the attribute table)

You can assign names to the lakes or categorize them anyway you want by adding an column in the attribute table (By right clicking you shapefile, going to properties then Field and add new column) Assign the lakes different colors just categorize them using that column.

share|improve this answer

If you have many shps, you may merge them together. If their table schema is the same you may symbolize the merged shp by categories, see steps below.

  1. Right click on layer name in the Layers panel and select Properties
  2. Select the Style tab, Categorized drop down, and select the field that has the lake name names defined in the Column drop down
  3. Then click the Classify button and change the various name symbol, size, and color as needed
share|improve this answer

If you already created individual shapefiles, you could use the Merge Shapefiles to One... tool from the toolbar (Vector > Data Management Tools > Merge Shapefiles to One...) to merge all your shapefiles. If each shapefile contains a Name field, the final merged shapefile will also contain a Name field with all lakes and their associated name.

You can also show names by enabling Labels through the Layers Properties.

share|improve this answer
1  
Perfect, it worked!! Thanks to everyone! – Freya Feb 9 at 13:40
    
@Freya - Awesome, glad you solved your problem =) – Joseph Feb 9 at 13:43

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.