Not sure if "what's the best way" questions are frowned on, but before I burn a bunch of cycles fixing this, I figured there might be a capability buried in ArcPy that I'm missing.
I'm attempting to get WKT of what appears to be a simple line feature in ArcGIS Pro.
When I use the SHAPE@WKT token to call it, it returns as
MULTILINESTRING Z ((10.0 20.0 0, 11.0 21.0 0,...))
I would like to return the feature as
LINESTRING((10.0 20.0,11.0 21.0,12.0 22.0,...))
as I am issuing these geometries as query criteria to various web services that are looking for simple OGC WKT.
Is there preprocessing available to me to ensure the SHAPE@WKT returns as a LINESTRING or POLYGON without Z, vs. MULTILINESTRING or MULTIPOLYGON? I can brute force this with re patterns and a dictionary of replacements, but I was hoping for something slicker and more idiomatically "esri."