Changed geom-A to input wkt_data. Also modified the wkt_data with st_setsrid(wkt_data,4326). Successfully tested as well.