1

I am using QGIS 3.5. I have a large shapefile (760 MB) with 1800 polygons representing different bird species ranges (download link)

I have a second shapefile with polygons of district boundaries (download link)

I have ensured the geometries are valid in both shapefiles and their CRS are equal. My goal is to identify the bird species present in each district. The output attribute table should include a column for the district ID (called c_code_11 in the data) of each district where the species exists.

I did a Join Attributes by Location with input layer as the species ranges and join layer as the district boundaries. I put 'intersects' and 'contains' as the geometric predicate, 'fields to add' as c_code_11 (the district ID), 'join type' as one-to-many, and then saved the joined layer as a shapefile to my local machine.

The output shapefile gets created on my computer, but at 3% completion, I get a list of errors saying the features could not be written to the shapefile. The process still runs to 100% completion (takes forever) and outputs a 4GB shapefile, but it is empty.

enter image description here

Any idea what is happening and how I can fix this?

Since the output shapefile is beyond the size limit, I re-ran the join attribute by location and saved the output as a GeoPackage. Now I am getting the following error.enter image description here

  • 3
    Try a different file format. You are hitting the shapefile size limit – JGH Apr 2 at 17:09
  • 1) Your downloaded files are not suitable for analysis, there are no additional files; 2) Break the main files into 2 - 3 equal areas and process them separately, then reassemble them into one ... – Cyril Apr 2 at 17:26
  • Sorry Cyril, I updated the download link -- it has all the files now. – mosquitonomics Apr 2 at 17:52
  • Try outputting to a temporary layer (this is the default output type). Then export the temporary layer to a permanent file. This will allow you to test different export formats without waiting for the algorithm to run each time. – csk Apr 2 at 19:34
  • 1
    Please always provide errors as text rather than pictures. – PolyGeo Apr 2 at 21:40
0

My verdict.

Your geodata is faulty, especially the file with the name india_botw, see the drawing close and no super GIS can work with them normally. Until the file is put in order, you will not be able to see success, in the future, try not to download corrupted large files, don't make me chase you all over india ...:-),

enter image description here

enter image description here

good luck ...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.