Is there a way to change ST_asGeoJSON return values?

المشرف العام

Administrator
طاقم الإدارة
The function ST_asGeoJSON returns something like:

"st_asgeojson": { "type":"MultiLineString", "coordinates":[ [ [-3.13512629299993,39.7174353130001], [-19.13510345099996,2.7174767110001] ] ] }And I wonder if there's a way to simplify or customize the JSON it returns, as I only need the coordinates, to something like:

{ coordinates: [ [-9.13512629299993,38.7174353130001], [-9.13510345099996,38.7174767110001] ]}

أكثر...
 
أعلى