Prev: matlab crashes (win 7 64 bit) without messages, logs or dumps while using mex-files linked with itpp library and compiled with mingw
Next: Reading a CSV File with Non-Numerical Entries
From: Jon Reades on 20 Jul 2010 10:26 I think you'll find that there's a NULL value of some sort, or that your struct isn't populated in the way that you expect -- I had the same issue with outputting the results of a clustering operation to a shape file and it was only when I printed out everything in the geographical object that I noticed this: S(8).CLUSTER_ID = 1 S(9).CLUSTER_ID = 2 S(10).CLUSTER_ID = S(11).CLUSTER_ID = S(12).CLUSTER_ID = .... S(28).CLUSTER_ID = 3 Changing my code so that the output now looked like: S(8).CLUSTER_ID = 1 S(9).CLUSTER_ID = 2 S(10).CLUSTER_ID = 0 S(11).CLUSTER_ID = 0 S(12).CLUSTER_ID = 0 .... S(26).CLUSTER_ID = 0 S(27).CLUSTER_ID = 0 S(28).CLUSTER_ID = 3 allowed me to write the shape file without an error. Since some types of NULL values/non-values are (as I understand it) technically allowed in DBF files (and, moreover, since this field had already been populated in the original shape file) this seems to be a small quirk of the Geographic Toolbox. |