0

following the question:

Getting polygons from PNG images for the QGIS Shapefiles

I attended to digitalize the following PNG image in QGIS 3.8 following this instruction:

https://www.qgistutorials.com/en/docs/digitizing_basics.html

which is valid for version 2.2 (2+)

In the result some steps don't match to the 3.8 version, therefore I have a few doubts/problems, that I already encountered:

  1. I cannot manage with snapping options, as error occur: enter image description here

  2. The edit toolbar doesn't match with the tutorial for 2.2 enter image description here I should have an option to drawing the polyline and polygon, which doesn't appear here. In turn I can only draw the straight line from the topleft corner of the map. enter image description here enter image description here

  3. Settings don't provide the "Snapping options"

  4. I have no option for drawing (redrawing) the existing lines on the PDF image

Is anyone able to give me some hint?

UPDATE:

Even if I activate the Snapping toolbar I am still unable to draw the lines. I can only mark the polygons as per in the image below:

enter image description here

3

Looks like you have a 'line type' of layer so I don't think you can draw polygon in it, only lines.

You can add the snapping toolbar by right clicking on around the top right of the QGIS window (next to all the icons) and activate it.

| improve this answer | |
  • The snapping toolbar works, although it doesn't really help. Sticking to your advice I understood, that I need an older version of QGIS then. – MKR Dec 12 '19 at 15:51
  • 1
    Everything you can do with the QGIS 2 snapping menu is in the QGIS 3 toolbar – Mr_Yum Dec 12 '19 at 15:53
1

Here are a few tips and pieces of advice that should help you:

  • Snapping only works to snap to vector layers. You're trying to digitize a line from a raster image. QGIS can't snap to the line in the image because it's raster data, not vector data. You may look at the image and see a line with vertices and segments, but QGIS only sees pixels. So you will have to do the digitizing manually.

  • The point of using the snapping tool in your second tutorial, is to snap features together as you create them. After you already have one line, the second line (or polygon) can then snap to the first line, which makes sure you don't have any gaps of overlaps.

  • As Mr_Yum pointed out, most vector formats can only store one type of geometry per vector layer. So if you want to digitize lines and polygons, you need two separate vector layers (one polygon layer and one line layer).

  • The pdf looks like it was originally created using vector data. If you can obtain the original vector data, you won't have to digitize it from the pdf. I can't tell what type of information those polygons are, but it's possible that that data is publicly available. If you think the original data might be publicly available somewhere (but you don't know where), try asking on Open Data Stackexchange for help finding it.

  • If you have a touchscreen, you might find the Freehand Editing plugin makes it easier to digitize the features. This plugin lets you digitize a feature by drawing it with a stylus instead of clicking for each vertex.

  • Reverting to an older version of QGIS. No version of QGIS has the ability to extract this type of vector features out of a raster image like the one you have. You will always have to do it manually.

| improve this answer | |

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.