Timeline for How to return WKT of entire polygon with shapely?
Current License: CC BY-SA 4.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 17, 2023 at 21:58 | comment | added | Eric Duminil |
This looks needlessly complex. All you need is some_shape.wkt , as explained in @Atihska's answer.
|
|
S Feb 14, 2021 at 11:52 | history | suggested | awadhesh14 | CC BY-SA 4.0 |
"pol.exterior.coords" THROWS "AttributeError: 'LineString' object has no attribute 'exterior' ", so replaced with the correct code
|
Feb 14, 2021 at 6:29 | review | Suggested edits | |||
S Feb 14, 2021 at 11:52 | |||||
Jul 24, 2017 at 22:42 | comment | added | xunilk | As you have issues to install fiona, I modified my first code to obtain same result (see my Editing Note) but, by using org python module. | |
Jul 24, 2017 at 22:39 | history | edited | xunilk | CC BY-SA 3.0 |
adding an alternative code
|
Jul 24, 2017 at 18:56 | comment | added | Alex R | Thanks. This looks like a good solution and I've been trying all day to get Fiona to no avail. I've been able to successfully install it using pip, but can't import it in python. | |
Jul 24, 2017 at 15:13 | comment | added | sgillies | This is very close to what I suggest: iterate over all records in the shapefile as above, get the individual polygon geometries, and make a multipolygon geometry from them. You can then compare this multipolygon to other geometries or dissolve it into a single polygon using the unary_union function. | |
Jul 24, 2017 at 0:58 | history | answered | xunilk | CC BY-SA 3.0 |