TransWikia.com

QGIS: No values in field after creating spatial index

Geographic Information Systems Asked on June 3, 2021

I want to join a vectorlayer with a grid using the algorithm "join attributes by location (summary)". It took hours to execute, but it worked. Then I found This thread which told me I have to create a spatial index for the layer first.
So I did that for the vector layer, but after executing the algorithm "join attributes by location (summary)" again, all values in the desired field were zero? It took only 2 seconds to execute, but there were no values? What could be the reason for that?

Update:
I thought I found what was the issue: To speed up the process, I deleted all fields except my value field. There must be an ID-Field which acts as the spatial index though, so my fault was to delete this one as well. So I did it again, leaving this field there, and it worked! But it only worked once, all tries after that executed right away, but once again, I got no values, just zeros…

One Answer

Well, after creating a new vector layer and a new grid, it worked again - I guess once a spatial index is created, it will only work one time?

Answered by Jonas on June 3, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP