Closed havatv closed 4 years ago
What do you mean by binary raster image? Right now plugin works only with images with standard RGB color space. If you work with image that have only black and white pixels I suggest you to convert it into RGB (which obviously means increase in size) and try again.
OK. I got an error message when I tried a grayscale image, so I binarised it. Will try with an RGB image. No error message with RGB, but I don't know how to get the semi-automatic tracing to start. Is there a user manual / help page somewhere? And where can I find the information that only RGB images are supported?
It is written on the github page. There you can find a gif showing a process of tracing.
https://github.com/mkondratyev85/raster_tracer
To switch between 'trace' mode and 'semi-automatic' mode you can press a
key.
It' also useful to select a colour you would like to trace with colour-picker as shown on the gif.
I am still not able to get the tracing to work.
When trying to save, I get the following error message:
2020-07-23T08:34:24 WARNING Commit errors:
ERROR: 3 feature(s) not added - geometry type is not compatible with the current layer.
That's clearly some bug in raster_tracer. Could you share your raster map so I reproduce the bug on my laptop? mkondratyev85@gmail.com
The error message points to a geometry type problem. The problem seems to be that the feature geometries generated are not of type LineString, but MultiLineString. If I specify the geometry of the (memory) layer to be MultiLineString (instead of LineString), the plugin works as demonstrated in the github animation.
Could it be an idea to create help for the plugin, and add a "Help" button for it in the "GUI"? Then the users of the plugin would not have to consult github to get the information that they need to use the plugin.
The issue is closed after #18
I am using QGIS 3.14 on Ubuntu 18.04, and downloaded the plugin from plugins.qgis.org today. I receive the following error message when trying to start tracing by clicking on any location in a binary raster image.