I have a Geo-Django project in which i am using postgres as database. I have a table with geometry column. I am filtering data and getting results which is working fine.
Problem is I want the geometry results in text form so i am trying to use ST_AsText in it. The Issue is I tried passing this function multiple ways and using annotations as well but I am not able to do that due to multiple errors.
As suggestion or successful implementation of applying ST_ functions would help me.
pointsArr = ScrapedArea.objects.filter(geom__intersects=poly).values('geom', 'url')