I have vessel heading, angle and distance to the animal sighting (С) and distance to point B. I need the coordinates for both points C and B.
How do I go about this for many marine mammal sightings in QGIS?
I have vessel heading, angle and distance to the animal sighting (С) and distance to point B. I need the coordinates for both points C and B.
How do I go about this for many marine mammal sightings in QGIS?
Here's a layer (New Scratch Layer) with three points with an attribute table. There are two bearings and two distances. This is your A data, which should look something like this, right?
Using the "project points" tool from the toolbox and setting the bearing and distance to come from the fields "bearing" and "distance" returns the Projected layer above the Scratch layer. This is your points B.
Here's the dialog for that. Note the yellowed drop-downs where I've overridden the constant value with the field name.
B still has the d2 and b2 attributes from A, so we now run "Project" on that layer, and specify the distance and bearing to come from those fields, resulting in the Projected layer at the top, which I should rename C.
Note it keeps all the attributes from the A layer, so if you have times or species IDs etc they're all preserved.
This all assumes your directions are all angles from grid North, and not relative to the boat heading or anything like that. If magnetic bearings you will need to correct to grid north first. You will also need to transform to a grid coordinate system if you have lat-long data. Also you may need to flip some bearing directions (ie use 180-bearing
) if your directions are inverted. Hard to tell from your diagram because that boat doesn't look like its really going East. Some sample data always helps with questions here (even if its not real data, similar simulated data is very useful).