Changeset 22038


Ignore:
Timestamp:
09/05/17 10:00:05 (8 years ago)
Author:
Eric.Larour
Message:

CHG: allow for shape files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/branches/trunk-larour-NatGeoScience2016/src/m/modules/ContourToNodes.m

    r20811 r22038  
    1616end
    1717
     18%Some conversion of files:
     19[path,name,ext]=fileparts(contourname);
     20if strcmpi(ext,'.shp'),
     21        %read contour from shapefile:
     22        contour=shpread(contourname);
     23
     24        %write it to a temporary filename:
     25        contourname=tempname;
     26        expwrite(contour,contourname);
     27end
     28
    1829%Call mex module
    1930[flags] = ContourToNodes_matlab(x,y,contourname,edgevalue);
Note: See TracChangeset for help on using the changeset viewer.