Changeset 19423
- Timestamp:
- 07/03/15 02:05:57 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/shp/shp2exp.py
r19422 r19423 35 35 tmpx=[p[0] for p in shp.shapes()[i].points] 36 36 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) 41 39 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) 46 44 elif geom==1: # point 47 45 x.append(shp.shapes()[i].points[0][0])
Note:
See TracChangeset
for help on using the changeset viewer.