[Qgis-user] digitizing locations (Vol 226, Issue 2)

Garth Fletcher garth at jacqcad.com
Mon Dec 2 14:27:40 PST 2024


The shapefile you created from your .csv contains only Attributes, NO 
Geometry.
I don't know of a way to easily add geometries, e.g., coordinates.

You could have as easily used Layer > Data Source Manager > Delimited Text
to read in the .csv into an attributes-only layer.  Lets name it "ATTRIB".

A way I would approach it is to create a new point shapefile with an 
attribute which will match an attribute in your .csv or ATTRIB layer.

You are looking in your .csv  or ATTRIB for a field whose values are 
unique to each record.
If the unique field is too verbose, or doesn't exist, then you could add 
a new field to the attributes-only layer in which you place a unique number.

Then create your point shapefile, adding the same type of field, maybe 
naming it "KEY".

As you digitize each location, set its "KEY" value to the same value as 
you have in the .csv
(which is why I recommend using a simple number rather than having to 
type in a long name)

When done, double-click on your new points layer, in its Layer 
Properties dialog scroll down to Joins
to create (+) a new Join.  Specify the attributes-only layer as the 
"Join layer", the name of its matching column
in "Join Field", and the name of the "Target Field" (which would be 
'KEY') in your points layer.

Your points layer, in addition to the location geometry, will  now also 
include all the attributes from your attributes-only layer.


On 12/2/24 3:00 PM, qgis-user-request at lists.osgeo.org wrote:
>    I have a csv file with data about various mines. It includes descriptions
> of locality  but no coordinates. I have added this file to qgis and created
> a shapefile. I now want to add the coordinates of each mine by searching
> for its locality on a basemap in qgis then clicking on the map to add the
> coordinates to the shapefile attribute table.  Is this possible or do I
> have to search for each location on Google Earth, for example, then write
> out the coordinates and add them to the attribute table manually?

-- 
Garth Fletcher



More information about the QGIS-User mailing list