<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Hi & welcome...</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
I find this aspect is better addressed as a data management issue rather that a labelling one.</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
If your data is managed in database tables (Postgis, Spatialite, MariaDB/MySQL are the obvious free ones that work well with QGIS) then appending new points to existing lines and making lines from points is simple spatial data management. You can also set up
 a "view" - essentially a stored query acting like a physical table of data - returning, for example, the last point in a linestring.</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
If such a view is opened in QGIS with a label as well as the linestring itself without a label, both set to auto refresh every few seconds, then adding a point to a line in the db will be shown on the map automatically in both map layers as QGIS reloads the
 layer. The labelled point will move across the map as data is added to the db. This mimics the appearance of a GPS point moving on the map, but the data is read from the db instead of a live GPS.</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Cheers,</div>
<div class="elementToProof" id="Signature">
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div class="elementToProof" style="margin-right: 0px; margin-left: 0px; font-family: Calibri, Arial, Helvetica, sans-serif;">
Brent Wood<br>
<br>
Principal Technician, Fisheries<br>
NIWA<br>
DDI:  +64 (4) 3860529</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> QGIS-User <qgis-user-bounces@lists.osgeo.org> on behalf of Phil via QGIS-User <qgis-user@lists.osgeo.org><br>
<b>Sent:</b> Friday, 28 November 2025 10:56<br>
<b>To:</b> qgis-user@lists.osgeo.org <qgis-user@lists.osgeo.org><br>
<b>Subject:</b> [Qgis-user] Applying a label to a point in a series of points</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Hello everyone,<br>
<br>
I'm new to QGIS and started experimenting a couple of days ago.<br>
<br>
I have created three layers in addition to the map layer.<br>
<br>
1. My home location.<br>
<br>
2. A csv file of aircraft locations.<br>
<br>
3. A trail that joins points of the same aircraft to form a line. I have <br>
a label on each of these trails.<br>
<br>
I'm happy with the results so far.<br>
<br>
Ideally, I'd like to label the first and last points in a trail instead <br>
of all points as I have now.  For example, if an aircraft has only been <br>
logged once then that point should be labelled. If I have logged the <br>
same aircraft multiple times then only the first last points should be <br>
labelled.<br>
<br>
My AI friend has tried to help by providing an assortment of label rules <br>
but nothing has worked.<br>
<br>
Here are the first 3 lines of 142 that I'm working with:<br>
<br>
TIMESTAMP,AC_ID,LAT,LON<br>
2025-11-21 23:55:36,71BE35,-33.962925,151.182806<br>
2025-11-22 00:24:00,E80445,-33.958462,151.178686<br>
2025-11-22 00:37:30,A47FDE,-33.971508,151.182120<br>
<br>
I'll be grateful for any advice offered.<br>
<br>
  --<br>
<br>
Regards,<br>
Phil<br>
<br>
_______________________________________________<br>
QGIS-User mailing list<br>
QGIS-User@lists.osgeo.org<br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fqgis-user&data=05%7C02%7Cbrent.wood%40niwa.co.nz%7C4ccac6934600493e42f008de2dffd4e9%7C41caed736a0c468aba499ff6aafd1c77%7C0%7C0%7C638998773984347806%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=0JgXR6dSHm5RbBXD9tQYZKXnKdSZXGHU1k5BBKPSyRs%3D&reserved=0</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fqgis-user&data=05%7C02%7Cbrent.wood%40niwa.co.nz%7C4ccac6934600493e42f008de2dffd4e9%7C41caed736a0c468aba499ff6aafd1c77%7C0%7C0%7C638998773984362785%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=ZBkLUJBEqFZId8%2FdUCEzesHcbH5q4AX%2Fk9gCBG82qQM%3D&reserved=0</a><br>
</div>
</span></font></div>
<br>
<div style="margin-bottom: 16px; line-height: 1.2;"><b>Brent Wood </b><br>
<span style="color: #1822f8;">Principal Technician - GIS and Spatial Data Management
<br>
</span>
<div style="width: 100%; white-space: normal; word-break: keep-all;">+64-4-386-0529
</div>
301 Evans Bay Parade, Greta Point, Hataitai, Wellington, New Zealand<br>
Earth Sciences New Zealand </div>
<a href="https://earthsciences.nz/"><img src="https://webstatic.earthsciences.nz/static/logo/earth-sciences-signature-white.png" alt="Earth Sciences New Zealand" width="217" height="60" style="width: 217px; height: 60px; display: block; border: 0;"></a>
<div style="border-bottom: solid 1px #1822F8; width: 100%; margin-top: 16px; padding: 0px 0px 10px 0px; font-size: 8pt; font-family: Aptos">
The Institute of Geological and Nuclear Sciences Limited and the National Institute of Water and Atmospheric Research Limited joined to become the New Zealand Institute for Earth Science Limited. We are known as Earth Sciences New Zealand. For more information
 on the Earth Sciences transition <a href="https://niwa.co.nz/about-niwa/science-sector-reforms">
click here</a>.<br>
<br>
<b>Notice:</b> This email may contain information which is confidential and/or subject to copyright, and may not be used, published or redistributed without the prior written consent of Earth Sciences New Zealand. If you are not the intended recipient, please
 immediately notify the sender and delete the email and any attachments. Any opinion or views expressed in this email are those of the individual sender and may not represent those of Earth Sciences New Zealand.<br>
<br>
For information about how we process data and monitor communications please see our
<a href="https://niwa.co.nz/about-niwa/privacy-policy">privacy policy</a>. </div>
</body>
</html>