mavlink / qgroundcontrol

Cross-platform ground control station for drones (Android, iOS, Mac OS, Linux, Windows)
http://qgroundcontrol.io
3.15k stars 3.5k forks source link

Not able to add ArcGIS Maptype in Q ground control #5710

Open lakshaydang opened 6 years ago

lakshaydang commented 6 years ago

How to add the GIS map in QGC. Also there are other Esri maps but i am not able to build it. Anyone can help me with this?

DonLakeFlyer commented 6 years ago

Support for ESRI is not fully plumbed through QGC.

DonLakeFlyer commented 6 years ago

@dogmaphobic The token is there, but you can't pick the map type right?

lakshaydang commented 6 years ago

yes, i was trying for it but qt shows the error. Do you know how to do that i am not able to do that. Also there is one ArcGIS sdk, can we integrate that with the qt?

dogmaphobic commented 6 years ago

You need your own ESRI account and your own token. Just like MapBox. With that said, QGC only supports "tile" maps. There is no support for the GIS api.

lakshaydang commented 6 years ago

So any way is there how can i integrate it or you know any person who can help me with that. Also is there any work going on for GIS integration in QGC and upto when it will be done? Can we import the shp file in the QGC as GIS maps comes in that format

dogmaphobic commented 6 years ago

So any way is there how can i integrate it

Yes, because it's all software after all. The question is how much work will be involved. This is a rather fundamental architectural change around how maps work in Qt. QGC has its own Qt Location plugin, providing Qt the map tiles using Qt's own API. This API is all tile based. A new map engine would have to be built and ultimately produce "tiles" that can be passed on to Qt.

Can we import the shp file in the QGC as GIS maps comes in that format

Same as above. Qt only understands "tiles". Yes, you can write code to import anything, provided you split the map into tiles using the X, Y, Zoom Level grid interface.

dogmaphobic commented 6 years ago

Forgot to mention, all tiles are bitmaps. Either PNG or Jpeg and usually 256x256 or 512x512 for high density displays (QGC uses 512x512).

lakshaydang commented 6 years ago

Ok there is an app in Qt i.e QGIS any how we can use that with q ground control ?

dogmaphobic commented 6 years ago

QGIS is a desktop application. It uses a rather different API and it won't ever work on mobile. I would imagine there could be a way to make both applications interoperable so each can do what they are supposed to do best. It all depends what the needs are, which I don't know.

kikislater commented 6 years ago

Qgis uses gdal/ogr as a data driver. Gdal is now available in Mission planner. May be it's a good way to implement gdal in QGC.... Don't know if it works under mobile platform

A first good option IMO, would be kml/kmz support because most GIS users know how to convert various GIS data to kml. But here it's possible to save kml, why not open ? : https://github.com/mavlink/qgroundcontrol/pull/5499 (I mean opening a polygon of an area to be survey)

@lakshaydang : Which format is it ? In GIS we have geometry data file, not map ! Map is a final product. Why want you use proprietary format whereas there is a standard exchange format (still proprietary but documented) : shapefile ?