[QGIS-Developer] Use of WebGL en Javascript (in Qt6 ?)

Gerald Kogler geraldo at servus.at
Thu Oct 3 03:22:55 PDT 2024


Hi ppl,

I see that Allmaps has a Maplibre plugin: 
https://github.com/allmaps/allmaps/tree/main/packages/maplibre

So maybe using "MapLibre native Qt bindings": 
https://github.com/maplibre/maplibre-native-qt could be a way to bring 
it into QGIS.

cheers
Gerald


On 1/10/24 11:49, Martin Dobias via QGIS-Developer wrote:
> Hi Richard
> 
> If I understand correctly, you could probably write a simple QGIS python 
> plugin to do this as well, without any javascript/webgl magic needed - 
> using gdalwarp to georeference the original maps and gdal's VRT to 
> stitch them together. Maybe just with the downside that it would not 
> work "on the fly", and the maps would need to be downloaded beforehand.
> 
> WebGL (or in our case its original desktop counterpart, OpenGL) usage in 
> those maps is to make the map rendering faster - this is something that 
> MapBox/MapLibre has been working on for quite some time. I would also 
> like to have the QGIS' 2D canvas rendered with OpenGL (or DirectX / 
> Metal / Vulkan) for faster map refreshes - but that's going to be a lot 
> of work... maybe QGIS 5.0 :-)
> 
> Cheers
> Martin
> 
> 
> On Mon, Sep 30, 2024 at 8:41 PM Richard Duivenvoorde via QGIS-Developer 
> <qgis-developer at lists.osgeo.org <mailto:qgis-developer at lists.osgeo.org>> 
> wrote:
> 
>     Hi Devs,
> 
>     Anybody an idea about any possibilities to use WebGL and/or
>     java/typescript in Qt6 (QGIS 4)?
> 
>     Context: in the archive/museum world old maps are often made
>     available via de IIIF (triple-I-F) standard.
>     Which nowadays has a georef standard:
>     https://iiif.io/api/extension/georef/
>     <https://iiif.io/api/extension/georef/>
> 
>     A dutch guy, created https://allmaps.org/ <https://allmaps.org/>
>     A site in which you can 'easily' georeference those old images AND
>     which keeps hold of the GCP's created.
> 
>     So having a georeference IIF service/image it is easy to load it,
>     georeferenced via the allmaps url (which is actually a json,
>     referencing the IIIF service AND the GCP info:
> 
>     https://viewer.allmaps.org/?url=https%3A%2F%2Fannotations.allmaps.org%2Fmanifests%2Fc390af06ea724803 <https://viewer.allmaps.org/?url=https%3A%2F%2Fannotations.allmaps.org%2Fmanifests%2Fc390af06ea724803>
> 
>     All this is typescript/nodejs/javascript.
> 
>     Rendering/transformation is done life on a WebGL 'canvas'.
> 
>     In my ideal world, it would be possible to load the same url as
>     above in QGIS, maybe do the realtime transformation in an
>     'offsite/buffered' WebGL canvas?
> 
>     But maybe I'm too eager :-)
> 
>     Regards,
> 
>     Richard Duivenvoorde
> 
> 
>     _______________________________________________
>     QGIS-Developer mailing list
>     QGIS-Developer at lists.osgeo.org <mailto:QGIS-Developer at lists.osgeo.org>
>     List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>     <https://lists.osgeo.org/mailman/listinfo/qgis-developer>
>     Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>     <https://lists.osgeo.org/mailman/listinfo/qgis-developer>
> 
> 
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer



More information about the QGIS-Developer mailing list