Changeset 19423


Ignore:
Timestamp:
07/03/15 02:05:57 (10 years ago)
Author:
cborstad
Message:

BUG: fixed shp2exp for line shapefiles

File:
1 edited

Legend:

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

    r19422 r19423  
    3535                        tmpx=[p[0] for p in shp.shapes()[i].points]
    3636                        tmpy=[q[1] for q in shp.shapes()[i].points]
    37                         #x.extend(tmpx)
    38                         #y.extend(tmpy)
    39                         x.append(tmpx)
    40                         y.append(tmpy)
     37                        x.append(tmpx)
     38                        y.append(tmpy)
    4139                elif geom==3: # line
    42                         x=[p[0] for p in shp.shapes()[i].points]
    43                         y=[q[1] for q in shp.shapes()[i].points]
    44                         x.append(x[0])
    45                         y.append(y[0])
     40                        tmpx=[p[0] for p in shp.shapes()[i].points]
     41                        tmpy=[q[1] for q in shp.shapes()[i].points]
     42                        x.append(tmpx)
     43                        y.append(tmpy)
    4644                elif geom==1: # point
    4745                        x.append(shp.shapes()[i].points[0][0])
Note: See TracChangeset for help on using the changeset viewer.