function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Matt de CamaraMatt de Camara 

Convert WKT field to point

Hi all,

I have a salesforce object which has a field that contains WKT (well known text) geometry for a shape. I need to convert this to a latitude/longitude point. I would love to do this natively within salesforce somehow if possible. Can anyone suggest how to do this?
PriyaPriya (Salesforce Developers) 

Hey Matt,

Kindly provide more information about your requirement and also  the use case of it.

Regards,

Priya Ranjan

Matt de CamaraMatt de Camara

The field in question has the geometry of a shape on a map. What I would like to do is get the latitude/longitude of the centroid point of this shape. I would like to do this natively within salesforce if possible. If not, I can use another language (such as python) to translate this data to a shape on the map, then get a point in the middle of that shape.

Can this be done natively in salesforce?  Is an extension from the app exchange required? Is that enough information?