[PostGIS] #5596: ST_ASGeoJSONRow: cannot set id directly on feature

PostGIS trac at osgeo.org
Mon Nov 27 16:28:23 PST 2023


#5596: ST_ASGeoJSONRow: cannot set id directly on feature
--------------------------+---------------------------
  Reporter:  jtojnar      |      Owner:  pramsey
      Type:  enhancement  |     Status:  closed
  Priority:  medium       |  Milestone:  PostGIS 3.5.0
 Component:  postgis      |    Version:  3.4.x
Resolution:  fixed        |   Keywords:  json
--------------------------+---------------------------
Changes (by Regina Obe <lr@…>):

 * status:  new => closed
 * resolution:   => fixed

Comment:

 In [changeset:"28853d7b75231f73cf6bfc8d49f9c3f0c2304abd/git" 28853d7/git]:
 {{{#!CommitTicketReference repository="git"
 revision="28853d7b75231f73cf6bfc8d49f9c3f0c2304abd"
 Allow promoting column as an id in ST_AsGeoJsonRow

 As per GeoJSON RFC, the id should go directly to the feature object
 rather than to properties:

 > If a Feature has a commonly used identifier, that identifier
 > SHOULD be included as a member of the Feature object with the name "id"

 Let’s add an argument that will allow designating a column as an
 identifier
 so that people do not have to tediously build the JSON object manually.

 Closes #5596 for PostGIS 3.5.0
 Closes GH-749
 Closes https://git.osgeo.org/gitea/postgis/postgis/pulls/165
 }}}
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5596#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