Index: /issm/trunk-jpl/src/m/shp/shpread.m
===================================================================
--- /issm/trunk-jpl/src/m/shp/shpread.m	(revision 22920)
+++ /issm/trunk-jpl/src/m/shp/shpread.m	(revision 22921)
@@ -1,3 +1,3 @@
-function Struct=shpread(filename)
+function Struct=shpread(filename,varargin)
 %SHPREAD - read a shape file and build a Structure
 %
@@ -18,4 +18,7 @@
 %
 %   See also EXPDOC, EXPWRITEASVERTICES
+
+%recover options
+options=pairoptions(varargin{:});
 
 %some checks
@@ -102,3 +105,11 @@
 end
 
+invert=getfieldvalue(options,'invert',0);
+if invert,
+	for i=1:length(Struct),
+		Struct(i).x=flipud(Struct(i).x);
+		Struct(i).y=flipud(Struct(i).y);
+	end
 end
+
+end
