qgroundcontrol icon indicating copy to clipboard operation
qgroundcontrol copied to clipboard

Import KML/KMZ and SHP to missions

Open lvale opened this issue 7 years ago • 5 comments

There's already support to export KML files from missions. Would be great to have support to also import KML/KMZ and additionally SHP files either for missions and/or fences

@DonLakeFlyer

lvale avatar Jan 06 '18 00:01 lvale

Importing SHP files would be awesome! There is open source ( "MIT Style" license, or at the option of the licensee under the LGPL) library for reading and writing shapefiles available at: http://shapelib.maptools.org/

ghost avatar Jan 11 '18 11:01 ghost

+1 for shape file support (SHP), especially for survey boundaries. also see: https://github.com/mavlink/qgroundcontrol/issues/5752

Antiheavy avatar Jan 17 '18 15:01 Antiheavy

I have developed a rough implementation of a KML import for a current project of mine. ATM it expects KML files to provide altitude information for the waypoints, so imported files must follow the lon,lat,alt format, or it will crash on import. https://github.com/MAVTech-srl/qgroundcontrol/compare/mavlink%3Aqgroundcontrol%3Amaster...feature/kml-wp-import

I guess the cleanest solution would be letting the "Open" button import a plan from any acceptable format, determining the parsing function internally.

mrschick avatar May 15 '25 14:05 mrschick

I'm somewhat new to the MissionManager code since I don't generally use PlanView, but couldn't you have built on KMLPlanDomDocument?

HTRamsey avatar May 15 '25 14:05 HTRamsey

I believe I looked over it and concluded that its core use was exporting a plan to KML, and so doing a straight port of the .plan import function to KML was more appropriate.

mrschick avatar May 15 '25 14:05 mrschick