Index: /issm/branches/trunk-larour-NatGeoScience2016/src/m/modules/ContourToNodes.m
===================================================================
--- /issm/branches/trunk-larour-NatGeoScience2016/src/m/modules/ContourToNodes.m	(revision 22037)
+++ /issm/branches/trunk-larour-NatGeoScience2016/src/m/modules/ContourToNodes.m	(revision 22038)
@@ -16,4 +16,15 @@
 end
 
+%Some conversion of files: 
+[path,name,ext]=fileparts(contourname); 
+if strcmpi(ext,'.shp'),
+	%read contour from shapefile:
+	contour=shpread(contourname); 
+
+	%write it to a temporary filename: 
+	contourname=tempname; 
+	expwrite(contour,contourname);
+end
+
 %Call mex module
 [flags] = ContourToNodes_matlab(x,y,contourname,edgevalue);
