JMG30/flight_planner

GSD and flight height AGL

olivier72 opened this issue · 4 comments

Hi!
The attributes table of the projection_centers layer contains the ground altitude ASL. I was thinking, given the sensor properties, the GSD value would help calculating the optimal flight height and add it to the ground altitude. I have to use the field calculator to add 25-30m or some.
Did I missed something?
Thanks!
Olivier
Capture

JMG30 commented

Hi Olivier,
attribute table contains Alt. ASL (Altitude Above Sea Level [meters]) of projection centers, so I don't understand why you had to add 25-30m.

If you want to know the formula for these values is as follow:

H = GSD / sensor_size * focal_length

Then H is added to average hight of terrain (Ht average), that depends on the altitude type you chose. For:

  • One alitutde

Ht average = (Hmax + Hmin)/2

Hmax/Hmin is the maximum and minimum terrain height within Area of Interest. You can gain these values by clicking "Get from DTM" button after you selected DTM and AoI layers or just type them in by yourself,

  • Altitude for each strip

Ht average = H max - (Hmax - Hmin)/3

Hmax/Hmin is the maximum and minimum terrain height for each strip of flight - you have to point DTM layer. You can't type them or manipulate in other way - plugin gets them itself.

  • Following terrain

Ht average = (Hmax + Hmin)/2

Hmax/Hmin is the maximum and minimum terrain height for each photo - you have to point DTM layer. You can't type them or manipulate in other way - plugin gets them itself.

Finally, H is added to Ht average, so Alt. ASL = H + Ht average. Hope this explanation helps you.

PS. I plan to add an option for the user to choose between GSD and Alt. AGL (Altitude Above Ground Level) and by the way change the calculation method for the "Terrain Following" mode, but I do not know exactly when.

JMG30 commented

@Eandelin I don't think so

@olivier72 You attached some pictures, but I can't see them.

I would like to understand what you want to ask for (you mentioned "question" at the beginning, but I don't see any question with question mark).

You want to receive height of center points at some height Above Ground Level (to obtain GSD < 1cm/pixel) and then substract from these values the height of Home Point (the point where you start flight?), am I right?

You can do it like you descibed, but in my opinion there is simpler way. You can set whatever GSD value you want and then just use "Sample Raster Values" tool to get the ground heights at centers projection. Then just add your flight height H and substract Home Point's height.

If you wanted to ask if I'll implement something like this in my plugin I can say yes. I'm going to add choosing between GSD/Altitude Above Ground (like your 30m) as well as waypoints as I mentioned in previous post. When it comes to a part with "cvs2djipilot python script" I don't know yet.