I've got a CSV file with 29 rows and 2146 columns including coordinates and a number of reflectance for each wavelength starting from 350 up to 2500. I imported the CSV file in QGIS without any problems. But when I want to write my data as a new shapefile, I got the following error:

(OGR-Fehler: Can't create field W2392 in Shape DBF file, reason unknown.)

Is there field number limitation of attribute table for exporting it as new shapefile using QGIS?

  • Welcome to GIS SE! As a new user be sure to take the Tour to learn about the site and its protocols. By asking how to do the same thing in either of two products you are effectively asking two questions which makes this too broad. Please use the edit button beneath your question to focus your question on one or other. I recommend asking about the one you are most likely to use. You can always ask about the other one in a separate question. – PolyGeo Jul 22 '19 at 10:30
  • 3
    You can't get any GIS product to do this, because it is impossible. Technically, the dBase-III+ specification states that dBase files are limited to 100 columns, but most implementations permit the physical maximum of 255 (one byte is allocated). In order to exceed 255 colums you need a different format. – Vince Jul 22 '19 at 11:06
  • 2
    You could try postgis, geopackage or spatiallite. But think about what you are trying to achieve - you want to save an array of values, maybe an array field would work better? – vinh Jul 22 '19 at 15:53
  • Not possible, check this en.wikipedia.org/wiki/Shapefile in particular the data storage limitations section... – Gerardo Jimenez Jul 23 '19 at 3:10

Your Answer

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

Browse other questions tagged or ask your own question.