Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [multithreading]

Sharing a single CPU between multiple tasks (or "threads") in a way designed to minimise the time required to switch threads.

1
vote
0answers
74 views

pyqgis - Code stops working when called using threading.Thread()

I am trying to troubleshoot a threading problem. QGIS version is 3.4. I want to move a processing-intensive task (importing xyz data, applying hillshading, and saving as TIFF) to a separate thread. I ...
1
vote
0answers
105 views

Custom QGIS maptool to return current event

This is what I am trying to do. I designed an interface which can switch between selection mode and placement mode. Selection mode activates the selection tool. Placement mode is what I am ...
1
vote
1answer
123 views

pyqgis threading - Exception when using QgsTask.fromFunction

I am trying to implement threading to some pyqgis code. I have been trying to use QgsTask.fromFunction. I have implemented code from this article but it isn't working. I used the first of the three ...
1
vote
0answers
125 views

gdal cannot work when using openMP in c++ for reading a dataset?

void generate( GDALDataset *ds) { int tcount = (1 + abs(tmaxx - tminx))*(1 + abs(tmaxy - tminy)); GDALDriver* jpegDriver = GetGDALDriverManager()->GetDriverByName("PNG"); int tz = ...
2
votes
0answers
44 views

Enable multiple GDAL threads for qgis2web?

I'm using qgis2web plugin for a project that has a raster base map and many layers. It works well but exporting is slow, taking 16 minutes. gdalwarp.exe seems to use only one thread (the CPU has eight)...
2
votes
1answer
460 views

QGIS plugin multithreading and loading memory layers

I've been working on a small plugin recently and I wanted to add a progress bar to it, since there are tasks in this plugin that take some time to complete. I looked at this and this, but so far I've ...
3
votes
0answers
139 views

Will core functionality in QGIS 3.0 exploit multi-threading? [duplicate]

As mentioned in a recent QGIS blog by Tim Sutton, the major changes to QGIS 3.0 are: Updating Qt4 to Qt5 Updating PyQt4 to PyQt5 Updating Python 2.7 to Python 3 Improving the QGIS API Also, a couple ...
2
votes
0answers
612 views

qgis crash using QThread in a plugin script

I recently wrote a python script that works with raster data and makes some time-consuming operations. My script uses QThread to update a QList and a QProgressBar and everithing works fine if I run ...
7
votes
1answer
5k views

Is QGIS multi-threaded? [duplicate]

Is QGIS (2.16) multi-threaded? I do not see multiple processes on the console while running it on Ubuntu. It only uses one CPU. Is there anything to do to enable it?
2
votes
1answer
535 views

Using PyQGIS to create images from the QGIS print composer each showing a different layer?

I have many vector layers which I want to display and print, one at a time. The following script works well for producing an image from the map canvas, but I want to produce an image from a print ...
2
votes
0answers
265 views

Is GDAL/OGR (specifically CoordinateTransformation) thread-safe?

I'm using the Java bindings if it matters. I have a heavily multi-threaded program and this is one of the bottlenecks that I have in a synchronization block. If I could remove the synchronization, it ...
2
votes
1answer
492 views

QGIS not interacting with iface from python class

So I'm working on something where i need to use threads from python console of QGIS. The following line of code adds layer successfully iface.addVectorLayer("D:\ArcGIS Misc\Atlas\points.shp", 'Points'...
2
votes
0answers
741 views

CPUs to process lidar data using ArcGIS for Desktop? [closed]

I am looking to build a computer to process data in ArcGIS 10.2.2. The main use will be to rasterize 10-100's GBs of lidar data. However, I am unclear as to the capabilities of ArcGIS 10.2.2 to ...
1
vote
1answer
327 views

ArcMap Crashes when inserting new feature in multi-Threading add-in

I'm developing a ArcMap add-in that get dynamic feeds from the network and append the newly arrived data to a suitable featurelayer. I'm using InMemoryWorkspace, FeatureBuffer, FeatureCursor, Thread. ...
10
votes
2answers
1k views

Will core functions in QGIS exploit multi-threading?

After reading Enabling multithreaded processing in QGIS?, I was wondering if QGIS 2.6 will include this when running various processes. I checked online and I could only find that multi-threaded ...
0
votes
1answer
229 views

ArcGIS / .Net - Load pyramids in thread

I need to display a large raster with ArcGIS. To do so, I'm using pyramids, and it is working, but they can be long to build. So I would like to build the pyramids in a separate thread. When doing so, ...
3
votes
0answers
677 views

Why does multi-threaded rendering not use all the CPU potential in QGIS 2.4?

I have just downloaded QGIS 2.4 which is great and ran some tests. I have enabled the multi-threaded rendering but it seems that the program do not use all the potential of my CPU. Attached pic shows ...
10
votes
3answers
6k views

Enabling multithreaded processing in QGIS?

I have found multiple links that appear to say that this now exists in QGIS 2.2, but it appears that it's only using one core to full capacity. This is running on Ubuntu 14.04 The current process is ...
4
votes
1answer
1k views

Multithreading in Arcpy

I am learning multithreading and thinking about using it with Arcpy. The example I am working on doesn't have much practical reasons. However, I don't know why it fails on the line "arcpy.Exists(...
2
votes
1answer
940 views

Adding FeatureLayer on a thread crashes ArcMap

I asked this question on the ESRI forums but got nothing so I thought I would try it here (hope that is consider ok). I am creating an extension for ArcMap 10.2 using Visual Studio 2012 C# WPF. ...
1
vote
0answers
170 views

qgis 1.8.0 crash when starting qthread

I am trying to update a vector layer attribute table using QThread. i connect a pushbutton click with a slot to start the thread: def EGSupdateAttributeTable(self): AttUpdateEGSThread = ...
6
votes
2answers
660 views

What is the algorithm used by ESRI for finding loops in a geometric network?

I've been trying to develop some code for ArcMap (VB .net) that would take a river network, identify and label the loops. These loops can be simple bifurcations or highly thread braided channels. I ...
2
votes
0answers
819 views

Problem with multi-threading and geoprocessor tool in c# [closed]

What I am doing: I am trying to run a geoprocessor tool in a background thread other than UI thread. I am passing string path of arcObjects and creating that arcObject in my background thread. Then I ...
3
votes
2answers
2k views

Accessing ArcGIS layers from separate thread using ArcGIS Engine?

I've got an ArcEngine application, referencing a MXD for it's data (and map display). I'm running a query against all layers, so can take quite some time. I would normally run the query in a ...