Hi Springfield:

You can place the python code in the C:\Users\User\AppData\Roaming\QGIS\QGIS3\profiles\default\processing\scripts folder on your local machine and then it will show up under scripts in the processing toolbox.

Kirk Schmidt

On 2/10/2022 4:03 AM, Springfield Harrison wrote:

Hello Everyone,

Thanks very much for the suggestions.  The main_angle option seem to do the trick.

I didn't try the Python code.  Not familiar with that side of things although it is probably simple enough.  Could not find the recipe for adding it to the plug-in list, which I presume is where it is supposed to go.

Thanks again, very helpful…

--------
Cheers, Spring


On 04/Feb/2022 07:10, Kirk Schmidt wrote:

Hi Springfield:


Sure it would , I have attached my little convergence tool. Just create a point in the area where you want to know the convergence at let her rip.  The vary last column is the convergence in minutes.  So, depending on what side of the central meridian of your coordinate system you are, it will either be negative or positive. SO, I just used it yesterday for and area that is east of the meridian, UTM easting > 500,000,   therefore the resulting convergence was 22 minutes, which need to be subtracted from the grid north value to obtain true north.  It is not a sophisticated workflow, but I only require it intermittently.

I usually use NRCAN magnetic declination calculator (online) to verify the magnetic declination for the day.  But it seems to be offline. I convert everything to magnetic for field work and then there are no mistakes due to declination calculations and settings.

Have fun

Kirk

On 2/4/2022 6:34 AM, Springfield Harrison wrote:

Aha, thanks Kirk.  That's why my lines are not as I intended.  This probably affects making the lines with the Shape Tool.

Yes, it seems to draw in grid north, angle_main reports in True DD.  The map is 26907, UTM 7N.

I calculated the difference between as drawn and as reported and used that to change the input figure.  It works OK, not exact as the convergence varies with longitude, I believe.

Thanks Kirk . . . .

--------
Cheers, Spring
On 03/Feb/2022 02:59, kirk wrote:




Sent from my Galaxy


-------- Original message --------
From: kirk <k...@nortekresources.com>
Date: 2022-02-03 5:55 a.m. (GMT-04:00)
To: Springfield Harrison <stellar...@gmail.com>, qgis-user@lists.osgeo.org
Subject: RE: [Qgis-user] Labeling Lines with Bearings

Hi Spingfield.

I use a little routine and the core if it is:

main_angle($geometry) which you can use in field calculator.

Note this will give you the azimuth in relation to grid north for the coordinate system you are using.  For projections, you will need to lookup or calculate convergence to get the adjustment to true north.

Kirk Schmidt



Sent from my Galaxy


-------- Original message --------
From: Springfield Harrison <stellar...@gmail.com>
Date: 2022-02-02 7:30 p.m. (GMT-04:00)
To: qgis-user@lists.osgeo.org
Subject: [Qgis-user] Labeling Lines with Bearings

Hello,

I need to put the line direction (azimuth) into a line label. Some
searching has not come up with anything.

Is there a way?  Thanks very much . . . .

--------
Cheers, Spring



_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info:https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe:https://lists.osgeo.org/mailman/listinfo/qgis-user
--
Kirk Schmidt, MScF, BScF, RPF
General Manager
Nortek Resource Solutions Inc.
26 Church Road
Sutherlands River, NS
B0K 1W0
Tel (902) 922.3607
Email:k...@nortekresources.com
Web:www.nortekresources.com

--
Kirk Schmidt, MScF, BScF, RPF
General Manager
Nortek Resource Solutions Inc.
26 Church Road
Sutherlands River, NS
B0K 1W0
Tel (902) 922.3607
Email:k...@nortekresources.com
Web:www.nortekresources.com
_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to