Changeset 22929


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

CHG: better detect presence of polygon vs open contour.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk-jpl/src/m/exp/exp2shp.m ΒΆ

    r21652 r22929  
    3535                elseif length(shp(1).x) < 3
    3636                        geometry = 'Line';
    37                 else
    38                         geometry = 'Polygon';
     37                else
     38                        if (shp(1).x(end)==shp(1).x(1) && shp(1).y(end)==shp(1).y(1)),
     39                                geometry = 'Polygon';
     40                        else
     41                                geometry = 'Line';
     42                        end
    3943                end
    4044        end
Note: See TracChangeset for help on using the changeset viewer.