Changeset 17612
- Timestamp:
- 03/31/14 22:49:47 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/shp/shp2exp.py
r17542 r17612 28 28 expdict=dict(closed=1,density=1) 29 29 30 30 x=[] 31 y=[] 31 32 for i in range(len(shp.shapes())): 32 33 geom=shp.shapes()[i].shapeType … … 46 47 expdict['nods']=len(x) 47 48 elif geom==1: # point 48 x =[p[0] for p in shp.shapes()[i].points]49 y =[q[1] for q in shp.shapes()[i].points]49 x.append(shp.shapes()[i].points[0][0]) 50 y.append(shp.shapes()[i].points[0][1]) 50 51 expdict['x']=x 51 52 expdict['y']=y
Note:
See TracChangeset
for help on using the changeset viewer.