Changeset 22946
- Timestamp:
- 07/13/18 15:27:33 (7 years ago)
- Location:
- issm/trunk-jpl/src/m/modules
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/modules/ContourToMesh.m
r22940 r22946 26 26 27 27 %Some conversion of files: 28 [path,name,ext]=fileparts(contourname); 29 if strcmpi(ext,'.shp'), 30 %read contour from shapefile: 31 contour=shpread(contourname); 28 if ischar(contourname), 29 [path,name,ext]=fileparts(contourname); 30 if strcmpi(ext,'.shp'), 31 %read contour from shapefile 32 contourname=shpread(contourname); 32 33 33 %write it to a temporary filename: 34 contourname=[tempname '.exp']; 35 expwrite(contour,contourname); 34 %FIXME: I don't think we need to convert it to a file, ContourToMesh_matlab should be able to take a structure 35 %write it to a temporary filename: 36 %contourname=[tempname '.exp']; 37 %expwrite(contour,contourname); 38 end 36 39 end 37 40 -
issm/trunk-jpl/src/m/modules/ContourToNodes.m
r22940 r22946 21 21 if strcmpi(ext,'.shp'), 22 22 %read contour from shapefile: 23 contour =shpread(contourname);23 contourname=shpread(contourname); 24 24 25 %FIXME: I don't think we need to convert it to a file, ContourToMesh_matlab should be able to take a structure 25 26 %write it to a temporary filename: 26 contourname=tempname;27 expwrite(contour,contourname);27 %contourname=[tempname '.exp']; 28 %expwrite(contour,contourname); 28 29 end 29 30 end
Note:
See TracChangeset
for help on using the changeset viewer.