Changeset 16340
- Timestamp:
- 10/08/13 12:08:09 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/shp/shpread.m
r16339 r16340 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'), … … 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
Note:
See TracChangeset
for help on using the changeset viewer.