Changeset 22921


Ignore:
Timestamp:
07/13/18 14:09:16 (7 years ago)
Author:
Eric.Larour
Message:

CHG: option to reverse a shapefile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/shp/shpread.m

    r19183 r22921  
    1 function Struct=shpread(filename)
     1function Struct=shpread(filename,varargin)
    22%SHPREAD - read a shape file and build a Structure
    33%
     
    1818%
    1919%   See also EXPDOC, EXPWRITEASVERTICES
     20
     21%recover options
     22options=pairoptions(varargin{:});
    2023
    2124%some checks
     
    102105end
    103106
     107invert=getfieldvalue(options,'invert',0);
     108if 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
    104113end
     114
     115end
Note: See TracChangeset for help on using the changeset viewer.