After i did an intersection with two shape using geopandas through the following topic (Intersecting two shape problem using geopandas). But it output a multi geometry type shape,which in futher step will impossible export to polygon. Results show as below:
for i in data:
geom = i['geometry']
print geom
Output:
POLYGON ((139.9125 40.592043, 139.925 40.592043, 139.925 40.58371, 139.9125 40.58371, 139.9125 40.592043))
POINT (139.9125 40.58371)
LINESTRING (139.9125 40.58371, 139.925 40.58371)
How can i exclude Point and LineString from multi-types into a single geometry type as polygon?
df = gpd.GeoDataFrame(data,columns=['geometry','wdspd'])df.to_file('./wdspd_intersection.shp')` – King-Zhao Mar 03 '17 at 00:30