Changeset 21659
- Timestamp:
- 04/04/17 05:29:54 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/shp/shp2exp.py
r21349 r21659 33 33 geom=shp.shapes()[i].shapeType 34 34 if geom==5: # polygon 35 35 expdict['closed']=1 36 36 tmpx=[p[0] for p in shp.shapes()[i].points] 37 37 tmpy=[q[1] for q in shp.shapes()[i].points] … … 39 39 y.append(tmpy) 40 40 elif geom==3: # line 41 41 expdict['closed']=0 42 42 tmpx=[p[0] for p in shp.shapes()[i].points] 43 43 tmpy=[q[1] for q in shp.shapes()[i].points] … … 45 45 y.append(tmpy) 46 46 elif geom==1: # point 47 47 expdict['closed']=0 48 48 x.append(shp.shapes()[i].points[0][0]) 49 49 y.append(shp.shapes()[i].points[0][1])
Note:
See TracChangeset
for help on using the changeset viewer.