Skip to content
Advertisement

WKB string to WKT, GeoJSON in Python

I have a number of WKB strings, couple of examples given below:

JavaScript

I want to convert them to WKT or GeoJSON type as I am able to do using the following online tool: https://rodic.fr/blog/online-conversion-between-geometric-formats/

Is there a way for me to do the same on Python?

Advertisement

Answer

You can use shapely for this:

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement