<div dir="ltr">Thanks for all the feedback. I will work through all the suggestions and see which works best for me.<br></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Tue, 3 Dec 2024 at 08:21, DelazJ via QGIS-User <<a href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
Le 3 décembre 2024 00:36:20 GMT+01:00, Ludwig Kniprath via QGIS-User <<a href="mailto:qgis-user@lists.osgeo.org" target="_blank">qgis-user@lists.osgeo.org</a>> a écrit :<br>
>Hi Pat,<br>
><br>
><br>
>Step 1 (already done): import csv as "Delimited Text Layer". Since there are no coordinates this results in a geometry-less layer.<br>
><br>
>Step 2: export and load the just imported csv as vector-layer (GeoPackage, Shape), geometry-type "Point", desired projection. This results in a Point-Layer with the same features and attributes as the csv but still without valid geometries.<br>
><br>
>Step 3: Update the empty geometries with valid points. Sadly there is a lack in QGis, edit existing geometries => OK, creating new features with geometries => OK, update geometries in geometry-less features => not supported out-of-the-box.<br>
><br>
Actually QGIS supports this with the "Add part" tool from the Advanced digitizing toolbar. Just select feature in table and digitize. Worth reading <<a href="https://docs.qgis.org/3.34/en/docs/user_manual/working_with_vector/editing_geometry_attributes.html#add-part" rel="noreferrer" target="_blank">https://docs.qgis.org/3.34/en/docs/user_manual/working_with_vector/editing_geometry_attributes.html#add-part</a>><br>
<br>
Regards,<br>
Harrissou<br>
<br>
>So I (not Anthropic Claude 😉) wrote a script, attached as python file.<br>
><br>
>Operating instructions:<br>
><br>
>1: Load script into python console<br>
><br>
>2: activate the exported vector-layer from step 2<br>
><br>
>3. run the script<br>
><br>
>4. open attribute-table<br>
><br>
>5. select the desired feature in table<br>
><br>
>6. digitize the point-geometry for the selected feature by click on map<br>
><br>
>7. repeat steps 5 and 6 as often as you like<br>
><br>
>8. stop and save edits<br>
><br>
>Afterwards the features have valid geometries and can be edited with QGis on-board tools<br>
><br>
>Note:<br>
><br>
>The script does not write coordinates to the attribute-table but creates point-geometries. You can afterwards extract x- and y-coordinates into according fields by QGis-Field-Calculator.<br>
><br>
>hth<br>
><br>
>Ludwig<br>
><br>
>Am 02.12.24 um 14:08 schrieb Pat Brown via QGIS-User:<br>
>> Hi<br>
>> 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?<br>
>> <br>
>> Thanks<br>
>> <br>
>> Paddy<br>
>> <br>
>> _______________________________________________<br>
>> QGIS-User mailing list<br>
>> <a href="mailto:QGIS-User@lists.osgeo.org" target="_blank">QGIS-User@lists.osgeo.org</a><br>
>> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
>> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
_______________________________________________<br>
QGIS-User mailing list<br>
<a href="mailto:QGIS-User@lists.osgeo.org" target="_blank">QGIS-User@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote></div>