<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">Good pointers Nyall,<div><br><div>I need to start working with this stuff.  <br><br><div dir="ltr">Nicolas Cadieux<div><a href="https://gitlab.com/njacadieux">https://gitlab.com/njacadieux</a></div></div><div dir="ltr"><br><blockquote type="cite">Le 21 avr. 2021 à 21:24, Nyall Dawson <nyall.dawson@gmail.com> a écrit :<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><span>On Thu, 22 Apr 2021 at 06:43, wxgis <thinjogger@gmail.com> wrote:</span><br><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Hi -</span><br></blockquote><blockquote type="cite"><span>Wondering if there is existing Python(3) script code that can take an (ESRI)</span><br></blockquote><blockquote type="cite"><span>shape file as input and then calculate latitude/longitude/elevation values</span><br></blockquote><blockquote type="cite"><span>for country boundaries.  For example, if the input file is a SHP file for</span><br></blockquote><blockquote type="cite"><span>France, the output would be the lat/lon/elevation values for the country</span><br></blockquote><blockquote type="cite"><span>boundaries.  I am quite new to QGIS, looking at version 3.18 (so only know</span><br></blockquote><blockquote type="cite"><span>about ESRI shape files, maybe there are other types of SHP files?), and read</span><br></blockquote><blockquote type="cite"><span>that in QGIS  I can edit the attribute table for a given layer and add</span><br></blockquote><blockquote type="cite"><span>latitude/longitude attributes, but I am hoping to this more</span><br></blockquote><blockquote type="cite"><span>programmatically, using the QGIS Python console.  I gladly welcome any ideas</span><br></blockquote><blockquote type="cite"><span>on this.</span><br></blockquote><span></span><br><span>If you're new to this then I'd suggest skipping the Python part and</span><br><span>instead making a graphical model using Processing tools to do what you</span><br><span>want. The visual aspect of making models will help guide you through</span><br><span>the process, and there's plently of video tutorials on Youtube showing</span><br><span>how to do this.</span><br><span></span><br><span>You can even then take the model and automatically convert it directly</span><br><span>to a Python script with a single button click!</span><br><span></span><br><span>Hope that helps,</span><br><span>Nyall</span><br><span>_______________________________________________</span><br><span>Qgis-user mailing list</span><br><span>Qgis-user@lists.osgeo.org</span><br><span>List info: https://lists.osgeo.org/mailman/listinfo/qgis-user</span><br><span>Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user</span><br></div></blockquote></div></div></body></html>