ArduPilot / MissionPlanner

Mission Planner Ground Control Station for ArduPilot (c# .net)
http://ardupilot.org/planner/
GNU General Public License v3.0
1.76k stars 2.38k forks source link

Add other vector format support using the OGR library #1785

Open everydayduffy opened 6 years ago

everydayduffy commented 6 years ago

Issue details

Is it possible to add the option to load a polygon from vector formats other than shapefiles please? OGR drivers support many formats, e.g. GeoPackage (see: http://www.gdal.org/ogr_formats.html). It would be a nice addition to be able to use these.

Version

Any

Many thanks

meee1 commented 6 years ago

yes its possible.

what format did you have in mind? as an overlay or waypoints?

everydayduffy commented 6 years ago

The latest QGIS now uses GeoPackage as a default format for vector data, moving away from shapefiles. Thats the format I had in mind since i'm starting to adopt it as well (only one system file per vector and no limit on column name character length among other benefits).

My first thought was being able to import polygons as an overlay, but as you mentioned waypoints, that would also be a useful feature.

meee1 commented 6 years ago

MP already has GDAL support. do you have a sample file I could test with?

everydayduffy commented 6 years ago

Attached a sample geopackage polygon.

testgpkg.zip

kikislater commented 6 years ago

+1 for adding others formats support

meee1 commented 6 years ago

ive added gpkg support, currently miss labeled though as KML Overlay

flightplanner > right click > Map tools > kml overlay