When i draw rectangle / polygons, a “geometry” layer is created. The default attributes in this vector file are “geometry” and “style_css”. How do i add new fields to it, for example a “name” attribute and display the name as a label on the viewer?
I prefer to modify the snap-desktop code to add this attribute, would like to know which function(s) to modify… Otherwise a manual method can do as well… I attempted loading a csv file with the attributes I need, but i realized I can’t modify it through the rectangle / polygon drawing tools.
What I needed was already available in parts in different function (eg attribute table with label for Pins / GCP), I just needed to combine it with the rectangle/polygon drawing somehow, say via a plugin or modifying the source code. So wondering which is a better option