Changeset 21369
- Timestamp:
- 11/12/16 19:33:34 (8 years ago)
- Location:
- issm/branches/trunk-larour-NatGeoScience2016/src/m/shp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/branches/trunk-larour-NatGeoScience2016/src/m/shp/shpread.m
r19183 r21369 1 function Struct=shpread(filename )1 function Struct=shpread(filename,varargin) 2 2 %SHPREAD - read a shape file and build a Structure 3 3 % … … 18 18 % 19 19 % See also EXPDOC, EXPWRITEASVERTICES 20 21 %recover options 22 options=pairoptions(varargin{:}); 20 23 21 24 %some checks … … 102 105 end 103 106 107 invert=getfieldvalue(options,'invert',0); 108 if invert, 109 for i=1:length(Struct), 110 Struct(i).x=flipud(Struct(i).x); 111 Struct(i).y=flipud(Struct(i).y); 112 end 104 113 end 114 115 end -
issm/branches/trunk-larour-NatGeoScience2016/src/m/shp/shpwrite.m
r16718 r21369 18 18 if strcmpi(shp(i).Geometry,'Point'), 19 19 contours(i).Geometry='Point'; 20 else strcmpi(shp(i).Geometry,'Polygon'),20 elseif strcmpi(shp(i).Geometry,'Polygon'), 21 21 contours(i).Geometry='Polygon'; 22 elseif strcmpi(shp(i).Geometry,'Line'), 23 contours(i).Geometry='Line'; 22 24 end 23 25 contours(i).id=i;
Note:
See TracChangeset
for help on using the changeset viewer.