Hi,
I have some polygon data in a feature class that I want to get as a spatial dataframe. In the attribute table the shape type is listed as Polygon.
in a notebook inside arc I used:
import pandas as pd
input_poly="mypolys" #featurelayer currently on map
sdf=pd.DataFrame.spatial.from_featureclass(input_poly)
when I print sdf I get an OBJECTID column and a SHAPE column, but the shape column comes back containing a dictionary of "rings", e.g. {"rings":[[[111.69, 16.45],... which is disgusting and not usable. Rings is a geometry/shape type I've never seen in arc- I was expecting POLYGON or at worst MULTIPOLYGON.
So how to I get the WKT representation of my geometries as a column in my spatial dataframe (e.g. proper POLYGON type instead of "rings"). I know that under the hood there is a column called SHAPE@WKT, so how can I expose that data and get it into the spatial dataframe. I don't want to have to get it with a searchcursor- it feels very inefficient when that information already exists.