New answers tagged wkt
GDAL has methods for that. From http://www.gdal.org/classOGRSpatialReference.html: "contains methods for converting between this object organization and well known text (WKT) format". ExportToWkt is probably what you need "Convert this SRS into WKT format. Note that the returned WKT string should be freed with OGRFree() or CPLFree() when no longer ...
I usually look at http://epsg.io or http://spatialreference.org for all my WKT needs.
Try to update your script and use ST_AsGeoJSON(). You can also choose the number of digits with this function. http://postgis.net/docs/ST_AsGeoJSON.html
Top 50 recent answers are included