source:
issm/oecreview/Archive/16133-16554/ISSM-16339-16340.diff@
16556
Last change on this file since 16556 was 16556, checked in by , 11 years ago | |
---|---|
File size: 667 bytes |
-
TabularUnified ../trunk-jpl/src/m/shp/shpread.m
28 28 shp=shaperead(filename); 29 29 30 30 Struct=struct([]); 31 fields=fieldnames(shp); 31 32 for i=1:length(shp), 32 33 if strcmpi(shp(i).Geometry,'Polygon'), 33 34 x=shp(i).X'; y=shp(i).Y'; … … 44 45 else 45 46 Struct(end).name=''; 46 47 end 48 for j=1:length(fields), 49 field=fields{j}; 50 if ~(strcmpi(field,'X') | strcmpi(field,'Y') | strcmpi(field,'id')), 51 Struct(end).(field)=shp(i).(field); 52 end 53 end 47 54 end 48 55 end 49 56
Note:
See TracBrowser
for help on using the repository browser.