Changeset 16718


Ignore:
Timestamp:
11/12/13 14:14:04 (11 years ago)
Author:
Eric.Larour
Message:

CHG: more involved shp write shapes, polygon, line, etc ...

File:
1 edited

Legend:

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

    r16339 r16718  
    1414count=0;
    1515
    16 
    1716contours=struct([]);
    1817for i=1:length(shp),
    19         contours(i).Geometry='Polygon';
     18        if strcmpi(shp(i).Geometry,'Point'),
     19                contours(i).Geometry='Point';
     20        else strcmpi(shp(i).Geometry,'Polygon'),
     21                contours(i).Geometry='Polygon';
     22        end
    2023        contours(i).id=i;
    2124        contours(i).X=shp(i).x;
Note: See TracChangeset for help on using the changeset viewer.