ArduPilot / apm_planner

APM Planner Ground Control Station (Qt)
https://ardupilot.org
Other
508 stars 466 forks source link

Add support for WMS mapservers #341

Open sgofferj opened 10 years ago

sgofferj commented 10 years ago

To get more independent of Google and to support local providers, such as e.g. the Finnish Land Survey in Finland or respective services in other countries, support for WMS mapservers (with caching) would be great! There's a ton of open and free WMS-servers in the internet, including OpenStreetMap.

More information about WMS: http://en.wikipedia.org/wiki/Web_Map_Service http://www.opengeospatial.org/standards/wms

Protocol specs: http://portal.opengeospatial.org/files/?artifact_id=14416

billbonney commented 10 years ago

We are considering adding Marble widget to AP2 see http://marble.kde.org It has a Qt plugin that we can add.

Note: You can already use Open Street Map

sgofferj commented 10 years ago

I'm not sure if Marble would work cross-platform... WMS does because it just delivers map tiles. If you already have OSM integrated, chances are, you already use WMS and my suggestions is merely a matter of making the URL user-configurable.

billbonney commented 10 years ago

Qt is cross platform http://qt-project.org and Marble has a Qt plugin see http://marble.kde.org/dev-intro.php (it's written in C++ using Qt as the presentation layer) We get a lot of extar functionality for free using a higher level abtraction

sgofferj commented 10 years ago

Unfortunately, the Marble WMS support is pretty crappy. In my current KDE version, WMS doesn't work at all in Marble. One example what Marble can't do is multiscale maps. If you check e.g. http://tiles.kartat.kapsi.fi/taustakartta?xxxxxxx, that offers several maps under one WMS URL. In Marble you can select only one of those "sub maps". In QGIS2 (just for example), you can select all maps - QGIS2 will request all XML descriptions and then request the different maps (which are different detail levels) based on the zoom/scale the user chose.

Just to explain: The point of my suggestion is to open access to many useful additional map sources, not necessarily additional functionality in the maps.

billbonney commented 10 years ago

I understand the request. The problem is that the current map widget sucks, and modifying it is a project in itself. We are trying to find a widget we can embed that gives us the extra mapping features without reinventing the wheel.

sgofferj commented 10 years ago

I'll try to find something suitable. One of my current projects involves GIS-stuff, so I'm anyways doing lots of research on that currently.