mach0 / qchainage

Chainage Plugin for QGIS
GNU General Public License v3.0
19 stars 18 forks source link

Only one point is visible #20

Closed Llaves closed 4 years ago

Llaves commented 4 years ago

I am trying to use QChainage on the file below. I leave all settings at default except Advanced->Divide Feature into x parts, which I set to 25. When I run this, the result is a single visible point. When I check the attribute table, there are 25 points, All have FID 0, and only one point (point 4 as it happens) has geometry. The rest have no geometry, as witnessed by selecting right-click->zoom to on the feature. QGIS 3.4.2 on Windows 7 Pro 64 bit.

ContDiv.zip

mach0 commented 4 years ago

Hi and thanks for your report, Just tested with a "normal" linestring and everything worked perfectly. Currently investigating why it does not work on your data. (btw: thanks for the test data). Could take some time as I am busy with work. If you find something just drop me a note here.

HerrRuin commented 4 years ago

Hi Llaves, something is wrong with your geometry of the line. I made a copy of the line inside the shapefile (new fid 3) and with that line it worked as expected. Try yourself.

ContDiv_new.zip

mach0 commented 4 years ago

As @HerrRuin already said - there were a problem inside you geometry. After Converting your testdata using "Multipart to singleparts" than selecting every feature and using "Edit -> Merge selected Features" I was able to divide the geometry into 25 Parts as expected.

Closing this for now as it seems to be a data problem and not a bug in the plugin