Skip to main content
update
Source Link
martinfleis
  • 2.4k
  • 11
  • 17

UPDATE: As of GeoPandas 0.9, there is a to_wkt method.

mydf['wkt'] = mydf.geometry.to_wkt()

Yes, there is to_wkt functionmethod in semi-private array module. I think it should be public in future, will have a look into that.

Use it as following to get an array of WKTs.

wkt_array = gpd.array.to_wkt(mydf.geometry.values)
mydf['wkt'] = wkt_array

Yes, there is to_wkt function in semi-private array module. I think it should be public in future, will have a look into that.

Use it as following to get an array of WKTs.

wkt_array = gpd.array.to_wkt(mydf.geometry.values)
mydf['wkt'] = wkt_array

UPDATE: As of GeoPandas 0.9, there is a to_wkt method.

mydf['wkt'] = mydf.geometry.to_wkt()

Yes, there is to_wkt method in semi-private array module. I think it should be public in future, will have a look into that.

Use it as following to get an array of WKTs.

wkt_array = gpd.array.to_wkt(mydf.geometry.values)
mydf['wkt'] = wkt_array
assign
Source Link
martinfleis
  • 2.4k
  • 11
  • 17

Yes, there is to_wkt function in semi-private array module. I think it should be public in future, will have a look into that.

Use it as following to get an array of WKTs.

wkt_array = gpd.array.to_wkt(mydf.geometry.values)
mydf['wkt'] = wkt_array

Yes, there is to_wkt function in semi-private array module. I think it should be public in future, will have a look into that.

Use it as following to get an array of WKTs.

wkt_array = gpd.array.to_wkt(mydf.geometry.values)

Yes, there is to_wkt function in semi-private array module. I think it should be public in future, will have a look into that.

Use it as following to get an array of WKTs.

wkt_array = gpd.array.to_wkt(mydf.geometry.values)
mydf['wkt'] = wkt_array
Source Link
martinfleis
  • 2.4k
  • 11
  • 17

Yes, there is to_wkt function in semi-private array module. I think it should be public in future, will have a look into that.

Use it as following to get an array of WKTs.

wkt_array = gpd.array.to_wkt(mydf.geometry.values)