<div dir="ltr"><span style="font-size:12.8px">Hi phi73,</span><div style="font-size:12.8px">You can get the Lat long for start and endpoints by using the field calculator in the attribute table.</div><div style="font-size:12.8px">create a new field and calculate it with the following:</div><div style="font-size:12.8px">i.g. field "longXstart"  calculate: x(start_point($geometry))</div><div style="font-size:12.8px">"latYstart" calculate: y(start_point($geometry))</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">You can do the same for the endpoint by changing start_point with end_point<br><br>Furthermore the output will be in the same projection/coordinates as your layer, but you can do a transform command on the above command with:</div><div style="font-size:12.8px">x(transform(start_point( $geometry), 'EPSG:25832', 'EPSG:4326')) where the first epsg code is the current projection and the second one is the target projection<br></div><div style="font-size:12.8px">I have moved the x to the front of the command because the transform function only works on coodinate sets and i therefore transform x and y and then extract x.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">_Jack Andersen</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 27, 2017 at 8:17 AM,  <span dir="ltr"><<a href="mailto:phi73@gmx.de" target="_blank">phi73@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div>
<div name="messageBodySection" style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif">Hello
<div><br></div>
<div>i have map based on vector data and in it some street elements.</div>
<div>I would like to pick up a line segment and get the lon/lat for </div>
<div>the start vertex and end vertex. </div>
<div>How could it be done the easiest way in QGIS.</div>
<div><br></div>
<div>thanks</div>
</div>
<div name="messageReplySection" style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif"><br></div>
</div>

<br>______________________________<wbr>_________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">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/<wbr>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/<wbr>mailman/listinfo/qgis-user</a><br></blockquote></div><br></div>