<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">Hi Herbert,</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">I haven't tested it but you could try
      something like this:</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">1) Load the csv file into QGIS using
      the "Add Delimited Text Layer" tool (Shift + Ctrl + T)</div>
    <div class="moz-cite-prefix">2) Use the "Minimum bounding geometry"
      tool to create a polygon around each cluster (Processing Toolbox
      > Vector geometry > Minimum bounding geometry)</div>
    <div class="moz-cite-prefix">3) Generate centroids for each polygon
      (Processing Toolbox > Vector geometry > Centroids)</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">Hope this helps.</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">Regards, Frank.<br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">On 2021/03/01 13:04, Herbert Chitate
      via qgis-za-user wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CABsnB=BV6C2_jASBqkj5_WNKrONKPRpmj1PY9AYBev9m871ioQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Good afternoon All,
        <div><br>
        </div>
        <div>I am new to QGIS and was wondering if someone might be able
          to assist me on an extraction I am trying to do.</div>
        <div><br>
        </div>
        <div>I have lat and lon details for about 1,500 locations, which
          using python (kmeans), I have clustered the data into 20
          clusters of which I have the details of the
          constituent members (+ gps locations) that make up the 20
          clusters. Info now in a CSV file.</div>
        <div><br>
        </div>
        <div>How can I use QGIS to establish the lat and lon of the
          centroids for each of the clusters?</div>
        <div><br>
        </div>
        <div>Thank you for the assistance.</div>
        <div><br>
        </div>
        <div>Regards</div>
        <div><br>
        </div>
        <div>Herbert</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
qgis-za-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:qgis-za-user@lists.osgeo.org">qgis-za-user@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-za-user">https://lists.osgeo.org/mailman/listinfo/qgis-za-user</a>
</pre>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>