[Qgis-user] Vertex tool not working on lines when style with 'attribute' assigned

Peter Cornelissen peter at cornelissen.org.uk
Fri May 24 11:31:41 PDT 2019


Hi

I have reported it as a bug, but as yet no resolution or acknowledgement that it is a bug. I was offered possible solutions but in the end it was not really answering the problem I have and since then it is just there as an open issue.

I'm not really at a level to be quite sure what you mean by using a 'virtual' field, could you please explain? The attribute method I am using was a solution given to me by someone else and as I say it worked fine when first used in version 2.8.

Peter
________________________________
From: Nicolas Cadieux <nicolas.cadieux at archeotec.ca>
Sent: 24 May 2019 18:04
To: Peter Cornelissen
Cc: qgis-user at lists.osgeo.org
Subject: Re: [Qgis-user] Vertex tool not working on lines when style with 'attribute' assigned

Hi,

This looks like a good bug report! I would do one.  Have you tried making a virtual field with the attributes?  This way, you can query two fields and not an attribute and a field. The end result would be the same but perhaps, without a bug... I have been doing that with no trouble for a couples of weeks now for a project.  Never tried doing it your way exactly.

Nicolas

Le 24 mai 2019 à 06:35, Peter Cornelissen <peter at cornelissen.org.uk<mailto:peter at cornelissen.org.uk>> a écrit :

Has anyone else come across this?

Personally I think this is a bug or possibly something wrong with my installation, but I've not had any confirmation from the QGIS team.

If I have a styled line or polygon and use the 'attribute' expression in the filter, then once the shapefile has been saved, closed and then re-opened, then the vertex editor does not work and I cannot edit any of the lines or polygons in the shapefile and the only way I can is to open the same shapefile without a style of with one not using attribute in the filter. I use the same shapefile numerous times and use the layer name to  display specific lines as relevant to that layer. E.g. the table has a field called Plan1801, so the layer name starts Plan1801. An example of the style is: attribute($currentfeature, left(@layer_name,8)) = 'Y' AND Type = 'Chalk'), so if a record in the shapefile table has a 'Y' in the Plan1801 column and 'Chalk' in the type column it will display as that style. If I change the style to Plan1801 ='Y' AND Type = 'Chalk' the vertex editor works fine.

There maybe another way around this, but there are approx. 20 different styles for the lines and a similar number for the polygons used in each layer and getting on for 30 layers (and growing) using it so I do not want to have create dedicated styles for each layer or have a separate shapefile for each layer. If there is, I have not as yet found one.

Any help would be appreciated.

I am now using version 3.6.3, but the problem has been there at least since 3.6.0, possibly earlier (not there in the old node editor in 2.8, but I know that was a completely different beast).

Peter Cornelissen
_______________________________________________
Qgis-user mailing list
Qgis-user at lists.osgeo.org<mailto:Qgis-user at lists.osgeo.org>
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user<https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fqgis-user&data=02%7C01%7C%7C5a09d6805b7b4f1a418208d6e06a03fe%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636943143275617809&sdata=CEi6MC6ByLP3YrWtgC2sGyhGwSCrahae5eBMqvgYddY%3D&reserved=0>
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user<https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fqgis-user&data=02%7C01%7C%7C5a09d6805b7b4f1a418208d6e06a03fe%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636943143275627815&sdata=s0G%2BIalLzVVvUpoXsRk2EvL5tNsv0WBAg5wr%2B%2BePbco%3D&reserved=0>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20190524/1b10cd7e/attachment.html>


More information about the Qgis-user mailing list