[PostGIS] #5775: ST_AsGeoJSONAgg which is aggregate version of ST_AsGeoJSON

PostGIS trac at osgeo.org
Fri Sep 13 06:58:13 PDT 2024


#5775: ST_AsGeoJSONAgg which is aggregate version of ST_AsGeoJSON
----------------------+---------------------------
  Reporter:  robe     |      Owner:  pramsey
      Type:  defect   |     Status:  new
  Priority:  medium   |  Milestone:  PostGIS 3.5.0
 Component:  postgis  |    Version:  master
Resolution:           |   Keywords:
----------------------+---------------------------
Comment (by robe):

 Replying to [comment:2 pramsey]:
 > I mean, it removes one level of functions, but it will be at core mostly
 just copying pgsql core code. Why is the pgsql solution so unacceptable?

 It's not that unacceptable I guess, just hard to remember.

 Much easier to remember


 {{{
 SELECT ST_AsGeoJSONAgg(t, id_column => 'id')
 FROM t;
 }}}

 But yah it has the annoyance of adding an extra function is my only issue.
 But it would mean it would be in line with the others

 ST_AsMVT , ST_AsFlatGeoJSON

 cause honestly everytime I am doing ST_AsGeoJSON, what I really want is an
 aggregate function, not this row thing that requires me to do more work.
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5775#comment:3>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list