Which yields the following output: gdal memory mesh_memory ogrĭo I have to manually add the OSM/WSM provider in my. QgsRasterLayer *ras = new QgsRasterLayer(url,'OpenStreetMap','wms') Ĭout << plist.at(i).toStdString() << endl Ras = QgsRasterLayer(url,'OpenStreetMap','wms')Ĭ++ version: QString url = "type=xyz&url=" As a legend can be responsive to the scale it is updated on every change of the resolution. This example demonstrates the use of the getLegendUrl method. I am able to do this successfully by loading online tiles via URL as a raster layer in Python using WMS provider however the same URL does not work when using the C++ API, despite being able to load other raster files (e.g. WMS supports the getLegendGraphic request. I am trying to write a C++ version of a custom QGIS (v 3.10) application I initially wrote in Python that overlays data onto OpenStreetMap.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |