<div dir="ltr">Nyall and Nicholas (earlier) and qgis list --<div><br></div><div>This is fantastic information.  I'm going to dive in and see what I can discover.  Automatic conversion of the model to Python script is definitely neat! Really appreciate this awesome forum and the availability of QGIS!</div><div><br></div><div>Best to all,</div><div>Steve</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 21, 2021 at 7:24 PM Nyall Dawson <<a href="mailto:nyall.dawson@gmail.com">nyall.dawson@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">On Thu, 22 Apr 2021 at 06:43, wxgis <<a href="mailto:thinjogger@gmail.com" target="_blank">thinjogger@gmail.com</a>> wrote:<br>
><br>
> Hi -<br>
> Wondering if there is existing Python(3) script code that can take an (ESRI)<br>
> shape file as input and then calculate latitude/longitude/elevation values<br>
> for country boundaries.  For example, if the input file is a SHP file for<br>
> France, the output would be the lat/lon/elevation values for the country<br>
> boundaries.  I am quite new to QGIS, looking at version 3.18 (so only know<br>
> about ESRI shape files, maybe there are other types of SHP files?), and read<br>
> that in QGIS  I can edit the attribute table for a given layer and add<br>
> latitude/longitude attributes, but I am hoping to this more<br>
> programmatically, using the QGIS Python console.  I gladly welcome any ideas<br>
> on this.<br>
<br>
If you're new to this then I'd suggest skipping the Python part and<br>
instead making a graphical model using Processing tools to do what you<br>
want. The visual aspect of making models will help guide you through<br>
the process, and there's plently of video tutorials on Youtube showing<br>
how to do this.<br>
<br>
You can even then take the model and automatically convert it directly<br>
to a Python script with a single button click!<br>
<br>
Hope that helps,<br>
Nyall<br>
</blockquote></div>