Hi team,
I'm connecting to a Postgis database containing spatial polygons. I'm trying to import them into Alteryx and create centroids. It still recognises the geometry as polygons but when I try to create centroids as X and Y fields from them, they come out reversed. So I end up getting the Longitude as Y and Latitude as X. Of course when I try to build a centroid from this, it errors telling me my coordinates are out of range. I have to manually rename the fields so the latitudes and longitudes are actually correct and create points in order for them to generate a valid centroid.
I've attached a workflow containing a sample of the data as it imports into Alteryx. I can't for the life if me figure out why Lat and Long coordinates from a Postgis database are being interpreted by Alteryx the wrong way around.
Anyone have any idea what's going on and how I can fix this?
UPDATE: The format for coordinates in Postgis is Long/Lat but Alteryx is looking for Lat/Long. Not sure if this is a regional thing or an application thing. Is there a way to tell Alteryx which order to read the coordinates?