I am new to PostGIS and need to ask for some help here.
I have a polyline from google maps (representing an itinerary) and need to build a polygon (buffer) around it with a specific distance in meters or kilometers.
For input, I have the list of Latitude/Longitude points and the required buffer distance.
Can anyone help me build the query so that the returned result is the polygon in Latitude/Longitude coordinates, ready to be plotted on the map ?
After testing, I found that the polygon buffer produced by postgis is unreliable. That is to say, if I want a 5 kilometre buffer around a polyline, postgis will return a polygon which is AT MOST 5 kilometres, yet at some points less than this.
Abandoning postgis