Merge two or more polygons, points or polyline of Shapefile

Merge two or more polygons, points or polyline of Shapefile in QGIS. Do you want to merge features of to combine them into one feature and to maintain its database dbf values along with it. QGIS – Quantum Geographic information system is of the most important for geographers and with the help of this tool I would demonstrate you to merge features within same layer. You can also have a look on how to merge more than two shapefiles.

If you haven’t installed QGIS, lets install Latest Quantum GIS first and open it up. Here are the steps to merge features of shapefile in QGIS.

Merge two or more polygons, points or polyline of Shapefile in QGIS:

We can merge two features in Shapefile in QGIS easily. Let’s say I have a Shapefile states.shp and I want to merge two states. Open up your QGIS tool.

1.) Select the layer and click the toggle edit button from the toolbar.

Merge two or more polygons, points or polyline of Shapefile2.) Click on select tool from toolbar as indicated in the image.

Merge two or more polygons, points or polyline of Shapefile
Merge two or more polygons, points or polyline of Shapefile

3.) Press control (ctrl) key and click on the features you want to merge to select them.

Merge two or more polygons, points or polyline of Shapefile

4.) Click on the Edit option where you can find find merge selected features.

Merge two or more polygons, points or polyline of Shapefile
Merge two or more polygons, points or polyline of Shapefile

5.) You will see this window after selecting merge selected button.

Merge two or more polygons, points or polyline of Shapefile

6.) In the above dialogue box you can see there are three columns and four rows. In the first row you can select options for the fields so that what value you want to assign for the merged feature. Go ahead and try the given options.

7.) In the last row you can see the option you selected or you can delete that value by simply double clicking on the field and press delete from keyboard. After you are done you can click ok.

8.) You can see the features are merged. you can also check attribute table.

9.) click on save layer edits buttons and then click on toggle editing button if you are done.

Merge two or more polygons, points or polyline of Shapefile
Merge two or more polygons, points or polyline of Shapefile

That is all about merging two features of shapefile whether it is polygon, polyline or point features. If you are getting any problem in performing the above steps, do comment below, we would try to solve the problem by discussing over here.

Digitization in QGIS – Exploring tools for Digitizing

Digitization in QGIS – Exploring tools for Digitizing. Digitization is one of the important tasks for a GIS specialist. Digitization is a process of converting raster data to vector data. For this task QGIS provides many tools for efficient digitization. Digitization (or vectorization) should be clean and a copy of the raster data so that the information of the map does not change. Also consider to see other QGIS tutorials.

Digitization in QGIS – Exploring tools for Digitizing

  • Check if Digitizing Toolbox is activated

Here we will explore tools provided by QGIS for efficient digitization. First check your digitizing tool box is activated, if not then you can activate it using following process.

Click view tab in the menu bar and click toolbar and then check digitizing and advance digitizing tool box.
Digitization in QGIS - Exploring tools for Digitizing

 

Digitization in QGIS - Exploring tools for Digitizing

 

  • Create Layer:

Now add some layers for drawing. Click layer in the menu bar, select create layer and select new spatialite layer.

You can select new shapefile layer if you have to digitize a single feature like some places or roads or buildings. We are selecting new spatialite layer because we will be drawing more than one feature in single file and it is easy to transfer this file.

Click ‘…’ browse button and save your database. Give name to your layer, select type of layer and specify attributes and their type such as text or numerals and click add attributes to the list and click OK. Specify CRS of the layer same as the CRS of Raster data.

Digitization in QGIS - Exploring tools for Digitizing
Digitization in QGIS – Exploring tools for Digitizing
  • Snapping Tool :

Snapping is an operation to move, match and coincide exactly between two features.

To set snapping option, Click setting in the menu bar and click options then select digitizing and in the box of snapping select default snapping mode, snapping tolerance and search radius for vector edits.

Digitization in QGIS - Exploring tools for Digitizing

  • Draw Create and Edit Features:

a.) lets draw some feature. If there are more than one layer then select the layer which you want to edit and Click toggle editing in digitization toolbox. As you click a pencil will appear with the name of the layer which you are editing.

Digitization in QGIS - Exploring tools for Digitizing

 

Digitization in QGIS - Exploring tools for Digitizing

 

 

 

b.) Click on add feature tool in digitization tool box.

Digitization in QGIS - Exploring tools for Digitizing

 

c.) After drawing your feature right click to stop drawing, as you stop a pop up will ask you the value for the attributes, give appropriate value to the attributes and click OK. Click on save layer edits to save your edits.

Digitization in QGIS - Exploring tools for Digitizing

  • Move Feature:

You can move your feature completely by selecting the tool image provided below.

Digitization in QGIS - Exploring tools for Digitizing

  • Delete or Join Node feature:

To Delete any node or you want to Join two nodes then you can use node tool as shown in the image below. Click on the node tool in the digitization tool box.

Digitization in QGIS - Exploring tools for Digitizing

Now select the feature you want to edit.

Digitization in QGIS - Exploring tools for Digitizing
Digitization in QGIS – Exploring tools for Digitizing

All the vertex(nodes) are highlighted with red color.  Select the vertex or node you want to delete. Simply press the delete button.

To join two nodes select a node and drag the node to the other node and it will snap to the other node. Since we have set default snapping option it will snap to the other node properly. If snapping was not set it would never snap to the feature properly. You can also snap to any segment of line also.

Exploring Advanced Digitizing Tool in QGIS:

Now let’s explore advance digitizing tools. We will start with rotate feature tool.

  • Rotate Feature Tool:

Digitization in QGIS - Exploring tools for Digitizing

a.) First of all save your edits if any, then select the feature or features and click rotate feature tool. As you click on the tool a plus sign or anchor point is generated around which feature will rotate. If you want to change the anchor point press ctrl and click on the place where you want the anchor point. To rotate drag the feature selected.

Digitization in QGIS - Exploring tools for Digitizing
Digitization in QGIS – Exploring tools for Digitizing

b.) You will see a popup when you start rotating the feature named user input. In first text box you can enter the angle manually with which you want to rotate and in the second text box you can select difference between two shifts.

Digitization in QGIS - Exploring tools for Digitizing

c.) After rotating click save edits.

  • Simplify feature tool

a.) Next is simplify feature tool. If you want to reduce some nodes from your feature you can use this tool.

Digitization in QGIS - Exploring tools for Digitizing

b.) Click on the feature you want to simplify. A popup named simplification tool will open.

Digitization in QGIS - Exploring tools for Digitizing
Digitization in QGIS – Exploring tools for Digitizing

c.) You can select tolerance and unit as per your convenience.

  • Add Ring Tool:

Digitization in QGIS - Exploring tools for Digitizing

a.) Ring can be add only to polygon or multipolygon feature. Inside the polygon draw the shape.

Digitization in QGIS - Exploring tools for Digitizing
Digitization in QGIS – Exploring tools for Digitizing

b.) Finish the shape by right click. Save your edits.

Digitization in QGIS - Exploring tools for Digitizing

 

  • Add part tool:

To use Add Part tool your feature type should be multipolygon. If you add part to the polygon it would draw the feature but won’t save the edits.

a.) Select the feature first and then click add part tool.

Digitization in QGIS - Exploring tools for Digitizing
Digitization in QGIS – Exploring tools for Digitizing

b.) Draw your part and to finish right click. The added part should be a polygon only otherwise it will show error. Save your edits.

Digitization in QGIS - Exploring tools for Digitizing

  • Fill Ring Tool:
Digitization in QGIS - Exploring tools for Digitizing
Fill Ring QGIS

a.) Draw the shape. This shape should be inside a complete part.

Fill Ring Tool QGIS - Digitization in QGIS - Exploring tools for Digitizing
Fill Ring Tool QGIS

b.) The shape you draw will be a different feature.

Fill Ring Tool QGIS - Digitization in QGIS - Exploring tools for Digitizing
Fill Ring Tool QGIS – Digitization in QGIS – Exploring tools for Digitizing
  • Delete Part Tool:

Delete Part - Digitization in QGIS - Exploring tools for Digitizing

Click on the part you want to delete.

Delete Part - Digitization in QGIS - Exploring tools for Digitizing
Delete Part – Digitization in QGIS – Exploring tools for Digitizing
  • Reshape Feature Tool:

Reshape Feature - Digitization in QGIS - Exploring tools for Digitizing

 

Draw shape as shown in figure. First click inside the feature and then click outside the feature and then inside the feature. We don’t need to complete the shape.

Reshape Feature - Digitization in QGIS - Exploring tools for Digitizing

  • Offset Curve Tool:

Offset Curve Tool - Digitization in QGIS - Exploring tools for Digitizing

Offset curve is used to create parallel shift of line feature. In edit mode click offset curve and click on the feature then drag the feature to your desired position.

29 - Offset Curve Tool - Digitization in QGIS - Exploring tools for Digitizing

30 - Offset Curve Tool - Digitization in QGIS - Exploring tools for Digitizing
Offset Curve Tool – Digitization in QGIS – Exploring tools for Digitizing
  • Split Feature Tool:

31 - Split Feature Tool - Digitization in QGIS - Exploring tools for Digitizing

Draw a line across the feature.

32- Split Feature Tool - Digitization in QGIS - Exploring tools for Digitizing

Split Feature Tool - Digitization in QGIS - Exploring tools for Digitizing
Split Feature Tool – Digitization in QGIS – Exploring tools for Digitizing

You can see the feature is splitted.

34- Split Feature Tool - Digitization in QGIS - Exploring tools for Digitizing

  • Split Part Tool:

35- Split Part Tool - Digitization in QGIS - Exploring tools for DigitizingSplit Part tool is used to increase parts in a feature.

36- Split Part Tool - Digitization in QGIS - Exploring tools for Digitizing

37 Split Part Tool - Digitization in QGIS - Exploring tools for Digitizing

  • Merge Selected Feature:

38 Merge Selected Feature - Digitization in QGIS - Exploring tools for Digitizing

To merge different feature into one feature we can use this tool. To use this tool select the features you want to merge and click on the merge selected feature tool.

39 Merge Selected Feature - Digitization in QGIS - Exploring tools for Digitizing

  • Merge Attribute of Selected Feature:

40 Merge Attributes Selected Feature - Digitization in QGIS - Exploring tools for Digitizing

That’s all. This is really a large set of tools provided in QGIS for Digitizing. Hope this article would be helpful for you, to introduce the digitizing tools. If you want to add more, which i might be missing you may comment below. Also if you have any doubt related to any tool, do Comment below so that we may discuss over it.