Re: [gdal-dev] Concurrent and efficient access to features in OGRLayer

2018-03-23 Thread Even Rouault
Julien, > That is pretty much what I did, however I was looking for a way to avoid > extra copies of features (maybe I am doing this wrong). > In your case, you don't need to copy the features (in the CreateFeature() case I mentionned, I need too since ownership of the passed feature belongs to

Re: [gdal-dev] Concurrent and efficient access to features in OGRLayer

2018-03-23 Thread Julien Michel
Hi Even, Thank you very much for your answers. Please find some comments enclosed. Regards, Julien Le 21/03/2018 à 11:09, Even Rouault a écrit : I am writing some code that processes features from a Layer, and I am facing two distinct problems : 1) Since the processing of features might be h

Re: [gdal-dev] Concurrent and efficient access to features in OGRLayer

2018-03-21 Thread Even Rouault
Hi Julien, > > I am writing some code that processes features from a Layer, and I am > facing two distinct problems : > > 1) Since the processing of features might be heavy, I would like to do > some parallel processing, but I did not find any way to iterate on > features in parallel, even for r

[gdal-dev] Concurrent and efficient access to features in OGRLayer

2018-03-21 Thread Julien Michel
Dear all, I am writing some code that processes features from a Layer, and I am facing two distinct problems : 1) Since the processing of features might be heavy, I would like to do some parallel processing, but I did not find any way to iterate on features in parallel, even for read-only /