Thank you. Do you have any reference for how can I lookup data from splunk for my QGIS polygons with unique IDs. For example by using python or some other methods if available, kindly share. Thanks
GDAL Retile. There's a tool in QGIS or you can use the commandline. Can be tricky to get all settings right so colors and bit-depth works, but try a smaller sub-set first.
It would be good to add iface.setActiveLayer(...) to the end of the python script to return focus to the index layer so you don't have to reselect it manually after every raster load.
Excelent point! You could capture the active layer to a variable first and then use that variable to "reset" it to the active layer: indexlayer = iface.activeLayer() iface.addRasterLayer(rasterurl, "[%location%]") iface.setActiveLayer(indexlayer)
Very interesting Klas! Just a dude. It's possible include in the python code "something" to the new rasters layers load below vector index layer? Like this, index vector layer always will be in top of the TOC. Thanks!
@@KlasKarlsson There was a plugin with same functionalities years ago so definitively possible. Unfortunately, could not remeber the name as nowaday building a vrt or single geotiff is faster
@@sylvainpoulain5466 In many cases vrt are really fast, but for some cases they are not an option (not even mentioning geotiffs). Trying to make a vrt with thousands (or even hundreds) of hi-res rasters will at best be slow, as will trying to open it. If you have a lot of rasterfiles and you can't put them into a real database, then I've found this method works really well.
@@KlasKarlsson Yes I understand, but the method you have is what I used 13 - 10 years ago in gvSIG and Qgis and that's why I mentionned single big raster files. I prefer compute a whole big raster with proper pyamids than having multiple ones. But I approve your method to do it in PyQgis and better understading how it works ! Plugin I mentionned above : Image Boundary in combination to Show and Hide Image osgeo-org.1560.x6.nabble.com/New-Plugin-Show-Hide-Image-td4100979.html Also in you action, i think you can get name of current layer then at the end of script active this layer in ToC. not tested but I think it could work ! It allows you to not reactivate layer containing tile index @Alejandro Chamizo de Castro : QuickMapServices plugin load layer at the end of ToC. May be getting inspiration from this plugin. Otherwise it's described in documentation : docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/loadlayer.html#qgsproject-instance => # the position is a number starting from 0, with -1 an alias for the end layerTree.insertChildNode(-1, QgsLayerTreeLayer(rlayer)) Edit : method of QMS plugin could be find here => github.com/nextgis/quickmapservices/blob/master/src/qgis_map_helpers.py#L152
Hi Klas, is there a solution yet to export satellite imagery in the print composer? I've done months of work but now I can't export the imagery as it goes blank. Also do you have a patreon account ?
I have a tiff file created from my UAV, anyone has an idea about extracting the features like the buildings? I have classified dense clouds for the features, but it will be great if we could classify it based on the orthomosaic file.
and great job by the way! in addition to that is there anyway to avoid showing labels for example when you want to add polygons of landuse above contours! i want to hide contours labels in that case and show them only when there is no polygons on!
Sorry, I don't use Windows. I actually don't even own a Windows computer. I think you can use a OS-agnostic python function to create the correct path that should work even on Windows: rasterurl = os.path.join(layerpath, "[%location%]") Just replace the rasterurl row in the video with this code.