12345678910111213 |
- from shapely.geometry import shape
- from shapely import wkt
- polygon1 = wkt.loads(
- 'POLYGON((119.757825964 29.994700644,119.757759991 29.994631079,119.757664084 29.994699986,119.757689324 29.994726602,119.757730057 29.994769558,119.757768634 29.994741839,119.757825964 29.994700644))')
- print(polygon1)
- shapely_polygon = shape(polygon1)
- print(shapely_polygon, type(shapely_polygon))
- print(isinstance(polygon1, type(shapely_polygon)))
- print(isinstance(polygon1, type(polygon1)))
- print(polygon1.wkt)
- import geopandas as gpd
|