Prev: ICNAAM 2010 Mini-Symposium on Computational Bioimaging and Visualization
Next: Sound is heard with PLAYBLOCKING and not with PLAY... WHY?
From: Jonathan on 9 Mar 2010 14:29 I continued to be puzzled with this problem of trying to convert a matrix using the shapewrite function. I have the following matrix... A = [1,2,3,4]; lon = [-123.412482300000, -123.349197000000, -123.387645500000,-123.499196100000]; lat = [48.1177411000000,48.1170438000000,48.1850616000000,48.2661300000000]; [test2.Geometry] = deal('MultiPoint'); test2.id = A; test2.lon = lon; test2.lat = lat; shapewrite(test2, 'test2'); when I run shapewrite I get the following error... ??? Error using ==> makedbfspec at 116 Attribute field id of geographic data structure S contains at least one value that is not a scalar double. Error in ==> shapewrite>parseInputs at 555 dbfspec = makedbfspec(S); Error in ==> shapewrite at 77 [S, basename, dbfspec] = parseInputs(varargin{:}); If I eliminate id I still get the same error, now using the lon matrix and so on. I would really appreciate any help on this problem. Thanks Jon |