Re: [Qgis-user] Labeling Lines with Bearings

2022-02-11 Thread Springfield Harrison

Hi Kirk,

Yes, that worked well.  I added the code from the processing toolbox and 
it worked fine.


Very helpful, thanks very much . . . .


Cheers, Spring



On 10/Feb/2022 05:09, Kirk Schmidt wrote:


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 
Date: 2022-02-03 5:55 a.m. (GMT-04:00)
To: Springfield Harrison , 
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 
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


Re: [Qgis-user] Labeling Lines with Bearings

2022-02-10 Thread Kirk Schmidt

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 
Date: 2022-02-03 5:55 a.m. (GMT-04:00)
To: Springfield Harrison , 
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 
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


Re: [Qgis-user] Labeling Lines with Bearings

2022-02-10 Thread Springfield Harrison

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 
Date: 2022-02-03 5:55 a.m. (GMT-04:00)
To: Springfield Harrison , 
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 
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
___
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


Re: [Qgis-user] Labeling Lines with Bearings

2022-02-04 Thread C Hamilton
With the Shape Tools measurement layer, there is an option that you can
check to retain the original attribute information and copy it to the
output file, but it looks like you have a solution that you like. There are
usually multiple ways to solve a problem.

Best of luck,

Calvin

On Thu, Feb 3, 2022 at 3:37 AM Springfield Harrison 
wrote:

> Hello Phil & Calvin,
>
> Thanks very much to you both for those tips.
>
> The Vector Shake Tools options were good but required some extra work to
> transfer the new information to the existing layer.  I think I could have
> made it work but then found one of the options in Stack Exchange to be
> exactly what was needed.
>
> This is it:
>
> "And now it is even easier than Kay's answer -first use 'explode lines'
> tool, yielding all line segments, then calculate azimuth with field
> calculator: *main_angle($geometry)*".
>
> This is brilliant, it can be used to populate an attribute field in the
> table or directly in a label formula as desired.  Exactly the solution I
> was looking for!
>
> Thanks very much to you both, this is a great resource…
>
> 
> Cheers, Spring
>
>
>
> On 02/Feb/2022 16:58, Phil Wyatt wrote:
>
> Hi Spring,
>
> Bottom  couple of posts in this stackexchange question should get you started
> https://gis.stackexchange.com/questions/55449/how-do-i-find-vector-line-bearing-in-qgis-or-grass
>
> Cheers - Phil
>
> -Original Message-
> From: Qgis-user  
>  On Behalf Of Springfield Harrison
> Sent: Thursday, 3 February 2022 10:30 AM
> 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 listqgis-u...@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


Re: [Qgis-user] Labeling Lines with Bearings

2022-02-03 Thread kirk
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 SchmidtSent from my Galaxy
 Original message From: Springfield Harrison 
 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 listQgis-user@lists.osgeo.orgList info: 
https://lists.osgeo.org/mailman/listinfo/qgis-userUnsubscribe: 
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


Re: [Qgis-user] Labeling Lines with Bearings

2022-02-03 Thread Springfield Harrison

Hello Phil & Calvin,

Thanks very much to you both for those tips.

The Vector Shake Tools options were good but required some extra work to 
transfer the new information to the existing layer.  I think I could 
have made it work but then found one of the options in Stack Exchange to 
be exactly what was needed.


This is it:

"And now it is even easier than Kay's answer -first use 'explode lines' 
tool, yielding all line segments, then calculate azimuth with field 
calculator: *main_angle($geometry)*".


This is brilliant, it can be used to populate an attribute field in the 
table or directly in a label formula as desired.  Exactly the solution I 
was looking for!


Thanks very much to you both, this is a great resource…


Cheers, Spring



On 02/Feb/2022 16:58, Phil Wyatt wrote:

Hi Spring,

Bottom  couple of posts in this stackexchange question should get you started

https://gis.stackexchange.com/questions/55449/how-do-i-find-vector-line-bearing-in-qgis-or-grass

Cheers - Phil

-Original Message-
From: Qgis-user  On Behalf Of Springfield 
Harrison
Sent: Thursday, 3 February 2022 10:30 AM
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


Re: [Qgis-user] Labeling Lines with Bearings

2022-02-02 Thread C Hamilton
Hi Spring,

The Shape Tools plugin has several tools for doing this. Once it is
installed here are the options. 1) If you already have a line layer you can
run the following from the QGIS menu "Vector->Shape Tools->Geodesic
measurement layer". Deselect "Measure total length rather than each line
segment" and when you run the algorithm it will give you a table that has
the bearing from the first point to the second point. It automatically
labels it with the distance, but you can click in properties and change it
to the heading_to attribute which is your azimuth.

2) The second method is to use the "Vector->Shape Tools->Geodesic measure
tool". This is a measurement tool like the QGIS measurement tool, but it
also includes "Heading To" and "Heading From". If you click on the "Save to
Layer" button, it saves this to a measurement layer with the azimuths and
distances in the attributes.

I probably should provide an option for the user to select what automatic
labeling displays. Right now it is just the distance, but I could also
allow for azimuth.

I hope that helps.

Calvin

On Wed, Feb 2, 2022 at 6:30 PM Springfield Harrison 
wrote:

> 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


Re: [Qgis-user] Labeling Lines with Bearings

2022-02-02 Thread Phil Wyatt
Hi Spring,

Bottom  couple of posts in this stackexchange question should get you started

https://gis.stackexchange.com/questions/55449/how-do-i-find-vector-line-bearing-in-qgis-or-grass

Cheers - Phil

-Original Message-
From: Qgis-user  On Behalf Of Springfield 
Harrison
Sent: Thursday, 3 February 2022 10:30 AM
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